games-simulation/corsix-th: drop 0.68.0, 0.70.0-r4

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-10-31 22:14:06 +00:00
parent b821fe0be7
commit d21e339ceb
3 changed files with 0 additions and 241 deletions
-1
View File
@@ -1,3 +1,2 @@
DIST corsix-th-0.68.0.tar.gz 4240659 BLAKE2B 9823e90927a63591384de49dde3cdcaced9fd1221931dacad0a5d115d0fcee2c9616b1a6785e91170c23a653f4bccbf6438fe352afdda9777078cdbfd84f0fda SHA512 087c20d79d249cff77e037561fb978290af75ff13c02e24c52699fd7b4e8a542e23806b7fde93cfff7d47bd98ee1eda4878cd0d4585e12775a2e6337655a5bbf
DIST corsix-th-0.70.0.tar.gz 4414049 BLAKE2B dd81c8a36b4200b9ae12a033e2d0bdb79a9aceeccf2902868b176d534bb294132bf8e439bfd19b1741fc26a86cb7a5bd4183e4543e98547998d3e3b93ea80632 SHA512 9c428b8914f36524b772f340b3e7b6205272a052a4c05dee2631cbab7191c716ebf2ba83de40887efa15ed90607d7ab1b6a888e87ebfa9b889f2b94dc0bff02f
DIST corsix-th-0.70.1.tar.gz 4416633 BLAKE2B 3ef0fdafeaff282edbf469a25fb5c2e870a07a96fae3bbfd2be1dfd5bd615c3c52c5ac673086e64a1c660ce39fe173ba0ae7114dd0c255696ba920aa85d44fc7 SHA512 04d418b37b7c9b72b70f05766e39b45a36a2ccb516fd3d674ae29982ba36d4d31522cce3f8744d8112f6232db224f5386a56626a3dba76b977d69bae2b02c002
@@ -1,106 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-{1..4} )
inherit cmake edo lua-single xdg
MY_PN="CorsixTH"
MY_PV="${PV/_/-}"
MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="Open source clone of Theme Hospital"
HOMEPAGE="https://corsixth.com"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}"
inherit git-r3
else
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_P}"
if [[ ${PV} != *_beta* && ${PV} != *_rc* ]] ; then
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
fi
fi
LICENSE="MIT"
SLOT="0"
IUSE="doc +midi +sound test tools +truetype +videos"
RESTRICT="!test? ( test )"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="${LUA_DEPS}
$(lua_gen_cond_dep '
>=dev-lua/luafilesystem-1.5[${LUA_USEDEP}]
>=dev-lua/lpeg-0.9[${LUA_USEDEP}]
>=dev-lua/luasocket-3.0_rc1-r4[${LUA_USEDEP}]
')
media-libs/libsdl2[opengl,video]
sound? ( media-libs/sdl2-mixer[midi?] )
truetype? ( >=media-libs/freetype-2.5.3:2 )
videos? ( >=media-video/ffmpeg-2.2.3:0= )
"
DEPEND="${RDEPEND}"
# Although the docs could potentially be built with nearly any Lua version,
# we need to ensure the necessary Lua modules are installed, so pin to the
# same single version as runtime.
BDEPEND="
virtual/pkgconfig
doc? (
app-text/doxygen[dot]
${LUA_DEPS}
$(lua_gen_cond_dep '
>=dev-lua/luafilesystem-1.5[${LUA_USEDEP}]
>=dev-lua/lpeg-0.9[${LUA_USEDEP}]
')
)
test? (
>=dev-cpp/catch-3:0
)
"
PATCHES=(
"${FILESDIR}"/${PN}-0.67-cmake_lua_detection.patch
)
lua_enable_tests busted
src_configure() {
local mycmakeargs=(
-DLUA_VERSION=$(lua_get_version)
-DBUILD_TOOLS=$(usex tools)
-DENABLE_UNIT_TESTS=$(usex test)
-DWITH_AUDIO=$(usex sound)
-DWITH_FREETYPE2=$(usex truetype)
-DWITH_MOVIES=$(usex videos)
-DWITH_UPDATE_CHECK=OFF
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
use doc && cmake_src_compile doc
}
src_test() {
# https://github.com/CorsixTH/CorsixTH/blob/master/.github/workflows/Linux.yml#L88
# C++ tests
BUILD_DIR="${BUILD_DIR}"/CorsixTH cmake_src_test
# Lua tests
edo busted --lua="${ELUA}" --output="TAP" --verbose --directory=CorsixTH/Luatest
}
src_install() {
cmake_src_install
dodoc changelog.txt CONTRIBUTING.md
docinto html
use doc && dodoc -r "${BUILD_DIR}"/doc/*
}
@@ -1,134 +0,0 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-1 lua5-4 luajit )
inherit cmake edo lua-single xdg
MY_PN="CorsixTH"
MY_PV="${PV/_/-}"
MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="Open source clone of Theme Hospital"
HOMEPAGE="https://corsixth.com"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}"
inherit git-r3
else
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_P}"
if [[ ${PV} != *_beta* && ${PV} != *_rc* ]] ; then
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
fi
fi
LICENSE="MIT"
SLOT="0"
IUSE="doc +midi test tools +videos"
RESTRICT="!test? ( test )"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
${LUA_DEPS}
$(lua_gen_cond_dep '
>=dev-lua/luafilesystem-1.5[${LUA_USEDEP}]
>=dev-lua/lpeg-0.9[${LUA_USEDEP}]
>=dev-lua/luasocket-3.0_rc1-r4[${LUA_USEDEP}]
')
media-libs/libsdl2[opengl,video]
media-libs/libpng:=
>=media-libs/freetype-2.5.3:2
media-libs/sdl2-mixer[midi?]
virtual/zlib:=
midi? (
media-libs/rtmidi
)
videos? ( >=media-video/ffmpeg-2.2.3:0= )
"
DEPEND="${RDEPEND}"
# Although the docs could potentially be built with nearly any Lua version,
# we need to ensure the necessary Lua modules are installed, so pin to the
# same single version as runtime.
BDEPEND="
virtual/pkgconfig
doc? (
app-text/doxygen[dot]
${LUA_DEPS}
$(lua_gen_cond_dep '
>=dev-lua/luafilesystem-1.5[${LUA_USEDEP}]
>=dev-lua/lpeg-0.9[${LUA_USEDEP}]
')
)
test? (
>=dev-cpp/catch-3:0
)
"
PATCHES=(
"${FILESDIR}"/${PN}-0.67-cmake_lua_detection.patch
)
lua_enable_tests busted
src_configure() {
local mycmakeargs=(
-DBUILD_TOOLS=$(usex tools)
-DENABLE_UNIT_TESTS=$(usex test)
-DFETCH_SOUNDFONT=OFF
-DFETCH_UNICODE_FONT=OFF
-DWITH_MIDI_DEVICE=$(usex midi)
-DWITH_MOVIES=$(usex videos)
-DWITH_UPDATE_CHECK=OFF
)
if use lua_single_target_luajit ; then
mycmakeargs+=(
-DLUA_VERSION=5.1
-DLUA_LIBRARY=$(lua_get_shared_lib)
-DWITH_LUAJIT=ON
)
else
mycmakeargs+=(
-DLUA_VERSION=$(lua_get_version)
)
fi
if use test ; then
mycmakeargs+=(
-DFETCH_CATCH2=OFF
)
fi
cmake_src_configure
}
src_compile() {
cmake_src_compile
use doc && cmake_src_compile doc
}
src_test() {
# https://github.com/CorsixTH/CorsixTH/blob/master/.github/workflows/Linux.yml#L88
# C++ tests
BUILD_DIR="${BUILD_DIR}"/CorsixTH cmake_src_test
# Lua tests
# vip_spec.lua fails with luajit
edo busted \
--lua="${ELUA}" \
--output="TAP" \
--verbose \
--directory=CorsixTH/Luatest \
--filter-out='VIP.*rating'
}
src_install() {
cmake_src_install
dodoc changelog.txt CONTRIBUTING.md
docinto html
use doc && dodoc -r "${BUILD_DIR}"/doc/*
}