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})