commit: 377d884ea95e4494bb9980229161a41a59ed42e2 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Nov 11 00:06:44 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Nov 11 00:07:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=377d884e
games-simulation/openttd: fix build w/ icu-76 This is needed even with 5de097998a3ed84e9af43fce547aa143b5e61c14. Signed-off-by: Sam James <sam <AT> gentoo.org> .../openttd/files/openttd-13.4-icu-76.1.patch | 27 ++++++++++++++++++++++ games-simulation/openttd/openttd-13.4.ebuild | 1 + 2 files changed, 28 insertions(+) diff --git a/games-simulation/openttd/files/openttd-13.4-icu-76.1.patch b/games-simulation/openttd/files/openttd-13.4-icu-76.1.patch new file mode 100644 index 000000000000..840942c01a67 --- /dev/null +++ b/games-simulation/openttd/files/openttd-13.4-icu-76.1.patch @@ -0,0 +1,27 @@ +https://github.com/OpenTTD/OpenTTD/commit/14fac2ad37bfb9cec56b4f9169d864f6f1c7b96e (rebased) + +From 14fac2ad37bfb9cec56b4f9169d864f6f1c7b96e Mon Sep 17 00:00:00 2001 +From: fundawang <[email protected]> +Date: Tue, 5 Nov 2024 19:12:34 +0800 +Subject: [PATCH] Fix: build with icu >= 76 where icu-i18n and icu-uc become + separated (#13048) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -135,7 +135,7 @@ if(NOT OPTION_DEDICATED) + endif() + find_package(Fluidsynth) + find_package(Fontconfig) +- find_package(ICU OPTIONAL_COMPONENTS i18n lx) ++ find_package(ICU OPTIONAL_COMPONENTS i18n lx uc) + endif() + endif() + endif() +@@ -267,6 +267,7 @@ if(NOT OPTION_DEDICATED) + link_package(Fontconfig TARGET Fontconfig::Fontconfig) + link_package(ICU_lx) + link_package(ICU_i18n) ++ link_package(ICU_uc) + + if(SDL2_FOUND AND OPENGL_FOUND AND UNIX) + # SDL2 dynamically loads OpenGL if needed, so do not link to OpenGL when diff --git a/games-simulation/openttd/openttd-13.4.ebuild b/games-simulation/openttd/openttd-13.4.ebuild index 11d583b49c7f..c647f80d4818 100644 --- a/games-simulation/openttd/openttd-13.4.ebuild +++ b/games-simulation/openttd/openttd-13.4.ebuild @@ -65,6 +65,7 @@ DOCS=( docs/directory_structure.md ) PATCHES=( "${FILESDIR}/${PN}-1.11.2_dont_compress_man.patch" "${FILESDIR}/${PN}-13.4-gcc15.patch" + "${FILESDIR}/${PN}-13.4-icu-76.1.patch" ) src_prepare() {
