From 2504baebd78b35f792fa0ef9ce41e5a472bc25dd Mon Sep 17 00:00:00 2001 From: Sebastian Engel Date: Sun, 30 Aug 2026 01:12:49 +0200 Subject: [PATCH] games-simulation/corsix-th: sync live, readded keyword for ppc64 Signed-off-by: Sebastian Engel Part-of: https://codeberg.org/gentoo/gentoo/pulls/1764 Merges: https://codeberg.org/gentoo/gentoo/pulls/1764 Signed-off-by: Sam James --- .../corsix-th/corsix-th-9999.ebuild | 4 +-- .../corsix-th-9999-cmake_lua_detection.patch | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 games-simulation/corsix-th/files/corsix-th-9999-cmake_lua_detection.patch diff --git a/games-simulation/corsix-th/corsix-th-9999.ebuild b/games-simulation/corsix-th/corsix-th-9999.ebuild index edfad85e4901d..a87d3a2e459f2 100644 --- a/games-simulation/corsix-th/corsix-th-9999.ebuild +++ b/games-simulation/corsix-th/corsix-th-9999.ebuild @@ -21,7 +21,7 @@ else S="${WORKDIR}/${MY_P}" if [[ ${PV} != *_beta* && ${PV} != *_rc* ]] ; then - KEYWORDS="~amd64 ~arm64 ~x86" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" fi fi @@ -68,7 +68,7 @@ BDEPEND=" " PATCHES=( - "${FILESDIR}"/${PN}-0.67-cmake_lua_detection.patch + "${FILESDIR}"/${PN}-9999-cmake_lua_detection.patch ) lua_enable_tests busted diff --git a/games-simulation/corsix-th/files/corsix-th-9999-cmake_lua_detection.patch b/games-simulation/corsix-th/files/corsix-th-9999-cmake_lua_detection.patch new file mode 100644 index 0000000000000..4ae0dbd8fe74f --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-9999-cmake_lua_detection.patch @@ -0,0 +1,26 @@ +diff --git a/CMake/GenerateDoc.cmake b/CMake/GenerateDoc.cmake +index f8b9ec8b..ac90134d 100644 +--- a/CMake/GenerateDoc.cmake ++++ b/CMake/GenerateDoc.cmake +@@ -19,7 +19,7 @@ endif() + + find_program( + LUA_PROGRAM_PATH +- ${LUA_PROGRAM_NAMES} ++ lua${LUA_VERSION} + PATHS + ENV LUA_DIR + /opt +diff --git a/CorsixTH/CMakeLists.txt b/CorsixTH/CMakeLists.txt +index b0695a78..06467177 100644 +--- a/CorsixTH/CMakeLists.txt ++++ b/CorsixTH/CMakeLists.txt +@@ -125,7 +125,7 @@ if(VCPKG_TARGET_TRIPLET) + target_include_directories(CorsixTH_lib PUBLIC ${LUA_INCLUDE_DIRS}) + target_link_libraries(CorsixTH_lib PUBLIC ${LUA_LIBRARIES}) + else() +- find_package(Lua REQUIRED) ++ find_package(Lua ${LUA_VERSION} EXACT REQUIRED) + if(Lua_FOUND OR LUA_FOUND) + target_link_libraries(CorsixTH_lib PUBLIC ${LUA_LIBRARY}) + include_directories(${LUA_INCLUDE_DIR})