From 83ebb477861172671f6796999e016400b659d65f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Feb 2023 15:53:45 +0000 Subject: gentoo auto-resync : 25:02:2023 - 15:53:45 --- games-arcade/Manifest.gz | Bin 20923 -> 20924 bytes games-arcade/commandergenius/Manifest | 2 +- .../commandergenius-2.4.0-r1.ebuild | 90 ++++++++++++++++++++ .../commandergenius/commandergenius-2.4.0.ebuild | 91 --------------------- 4 files changed, 91 insertions(+), 92 deletions(-) create mode 100644 games-arcade/commandergenius/commandergenius-2.4.0-r1.ebuild delete mode 100644 games-arcade/commandergenius/commandergenius-2.4.0.ebuild (limited to 'games-arcade') diff --git a/games-arcade/Manifest.gz b/games-arcade/Manifest.gz index 21bd1de85114..e99fef7766ef 100644 Binary files a/games-arcade/Manifest.gz and b/games-arcade/Manifest.gz differ diff --git a/games-arcade/commandergenius/Manifest b/games-arcade/commandergenius/Manifest index ac19f4a277f7..5f4db796f143 100644 --- a/games-arcade/commandergenius/Manifest +++ b/games-arcade/commandergenius/Manifest @@ -1,5 +1,5 @@ AUX commandergenius-2.3.1-build.patch 451 BLAKE2B 5c82e9919262fd55ec89069c55de2ba0f18eea2af4587776c353345aef7fb1657763abfcf0956856dae3707a65f0e33210dc521f95d3a0c863461bdb851667d6 SHA512 7b567072137af294b876da4d3701deddc5bf80c52c7a9bf7f0e266885f2a5cc61b7f495725e9d3fdaf3527cf92da0437c8ed1b90f34f9925579c2fe5da8484fb AUX commandergenius-2.3.1-paths.patch 528 BLAKE2B 0d3362d1f5099206a352c47c8625fc8bf7c5bcc371576340209eb4ef978c9cd7dfe0d13206fa2fe3f25dac094fd93e33a957d942a432080c77d50bab21b0a42e SHA512 f447166227566fe914c3d50f6f8c7b1dab6161b9ff633824c8feea0cc441872cd6245572e8cb2929a9f8345c0b8592cd3b3a7d77224ed9f5bc0076d82415f66a DIST Commander-Genius-v2.4.0.tar.bz2 62351265 BLAKE2B 0a3338bee2e494f415ce5072978f050766fff16e5df5e7b27824fb4d4c699d2e5a690924f339189325383bee273cbfa5424f43aa9dc87ae4abf63c7cbf1ea6cd SHA512 76eda96fade00d164d3ea5b95acadfb28a3b24864a5ce3f2c9317837a1027cd8d0282a474b8d25bacc26008a26a6adc5062ee655f9abd350d44db58aa70d3b3b -EBUILD commandergenius-2.4.0.ebuild 2185 BLAKE2B 87219a3fa20fe8cf841bde1d2cf808eeab7698d411e12742d6c9c711a9fefa7ae283f321234416eda6df9e05181c65d3708aa74a95eaf25387bbc03d924a5190 SHA512 653844b6a37456c27c3ee7639acdf9c4c88963b92ed91174ae2610bb164d758e74a693bb5e85baa162aa43a8736030d29b32d88ccb1a4f8cc61dc857731ce9a4 +EBUILD commandergenius-2.4.0-r1.ebuild 2378 BLAKE2B 1a4bb6122624bdc89dfa998e4eef39019e8353c43ce5a40a21ff59e519589e4303a868f0fdacad1a7bff691601f0f79dd7ee10a696ecdad77a0f3f803e9951a5 SHA512 90b28652aff3d660f80d07643a2e22dd15af645354a81a82e15d621915b6a37d17d9d06483824d5c6cf685064c4728a57b177cda6c4a8f58558f638168c367b1 MISC metadata.xml 507 BLAKE2B bd158aecbbb8bf56cccd4564dc6a0d2e615e6d54bce9c0a4d826c42905056199256f7b03ff2c720a6c3c1543d983375dfa18769e299415461fa0262160735b8f SHA512 e4ec4b7b99da2d83d42450f552973a899d3f637d802658b2b90b0225f4087ee05acea913567a86777c7e96379af5d6282c935a9ec754d5ef57626feb1aab6836 diff --git a/games-arcade/commandergenius/commandergenius-2.4.0-r1.ebuild b/games-arcade/commandergenius/commandergenius-2.4.0-r1.ebuild new file mode 100644 index 000000000000..f263f3a77456 --- /dev/null +++ b/games-arcade/commandergenius/commandergenius-2.4.0-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# note: version >=2.5.0 switches from python to lua +PYTHON_COMPAT=( python3_{9..11} ) +inherit cmake flag-o-matic python-single-r1 xdg + +MY_P="Commander-Genius-v${PV}" + +DESCRIPTION="Open Source Commander Keen clone (needs original game files)" +HOMEPAGE="https://clonekeenplus.sourceforge.io/" +SRC_URI="https://gitlab.com/Dringgstein/Commander-Genius/-/archive/v${PV}/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+downloader opengl +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="mirror" # contains keen files, but we do not install them + +RDEPEND=" + media-libs/libsdl2[opengl?,video] + media-libs/sdl2-image + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-ttf + sys-libs/zlib[minizip] + downloader? ( net-misc/curl ) + opengl? ( virtual/opengl ) + python? ( ${PYTHON_DEPS} )" +DEPEND=" + ${RDEPEND} + dev-libs/boost" +BDEPEND="python? ( ${PYTHON_DEPS} )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.3.1-build.patch + "${FILESDIR}"/${PN}-2.3.1-paths.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + filter-lto #858530 + + local mycmakeargs=( + -DAPPDIR="${EPREFIX}"/usr/bin + -DDOCDIR="${EPREFIX}"/usr/share/doc/${PF} + -DGAMES_SHAREDIR="${EPREFIX}"/usr/share + -DDOWNLOADER=$(usex downloader) + -DUSE_OPENGL=$(usex opengl) + -DUSE_PYTHON3=$(usex python) + -DUSE_SDL2=yes + -DUSE_SDL_TTF=yes # crashes when disabled + $(usev python -DPython3_EXECUTABLE="${PYTHON}") + ) + + cmake_src_configure +} + +src_install() { + local DOCS=() # skip .in template file, can drop this on bump + cmake_src_install + + # default executable name is weird + dosym CGeniusExe /usr/bin/${PN} + + # game data can be manually installed here + keepdir /usr/share/${PN}/games +} + +pkg_postinst() { + xdg_pkg_postinst + + elog "Run ${PN} to start the game. It will search for game data" + elog "in ~/.CommanderGenius/games and ${EPREFIX}${GAMESDIR}." + elog "You can also specify paths in cgenius.cfg or pass paths as an" + elog "argument." + elog + use downloader && elog "Data for some games can be downloaded from the menu." + elog + elog "Check your settings in ~/.CommanderGenius/cgenius.cfg after you have" + elog "started the game for the first time." + elog + use opengl && elog "You may also want to set \"OpenGL = true\"." +} diff --git a/games-arcade/commandergenius/commandergenius-2.4.0.ebuild b/games-arcade/commandergenius/commandergenius-2.4.0.ebuild deleted file mode 100644 index 976c50c53abb..000000000000 --- a/games-arcade/commandergenius/commandergenius-2.4.0.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{9,10} ) - -inherit python-single-r1 xdg cmake - -MY_PN="Commander-Genius" -MY_P="${MY_PN}-v${PV}" -DESCRIPTION="Open Source Commander Keen clone (needs original game files)" -HOMEPAGE="https://clonekeenplus.sourceforge.io" -SRC_URI="https://gitlab.com/Dringgstein/${MY_PN}/-/archive/v${PV}/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+downloader opengl +python" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RESTRICT="mirror" # contains keen files, but we do not install them - -RDEPEND=" - media-libs/libsdl2[opengl?,video] - media-libs/sdl2-image - media-libs/sdl2-mixer[vorbis] - media-libs/sdl2-ttf - sys-libs/zlib[minizip] - downloader? ( net-misc/curl ) - opengl? ( virtual/opengl ) - python? ( ${PYTHON_DEPS} ) -" - -DEPEND=" - ${RDEPEND} - dev-libs/boost -" - -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${PN}-2.3.1-build.patch - "${FILESDIR}"/${PN}-2.3.1-paths.patch -) - -S="${WORKDIR}/${MY_P}" - -SHAREDIR="/usr/share" -GAMESDIR="${SHAREDIR}/${PN}/games" -DOCS=() - -src_configure() { - local mycmakeargs=( - -DAPPDIR="${EPREFIX}/usr/bin" - -DGAMES_SHAREDIR="${EPREFIX}${SHAREDIR}" - -DDOCDIR="${EPREFIX}/usr/share/doc/${PF}" - -DDOWNLOADER=$(usex downloader) - -DUSE_OPENGL=$(usex opengl) - -DUSE_PYTHON3=$(usex python) - -DUSE_SDL2=ON - -DUSE_SDL_TTF=ON # Crashes when disabled. - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - # The normal executable name is weird. - dosym CGeniusExe /usr/bin/${PN} - - # Game data can be manually installed here. - keepdir "${GAMESDIR}" -} - -pkg_postinst() { - xdg_pkg_postinst - - elog "Run ${PN} to start the game. It will search for game data" - elog "in ~/.CommanderGenius/games and ${EPREFIX}${GAMESDIR}." - elog "You can also specify paths in cgenius.cfg or pass paths as an" - elog "argument." - elog - use downloader && elog "Data for some games can be downloaded from the menu." - elog - elog "Check your settings in ~/.CommanderGenius/cgenius.cfg after you have" - elog "started the game for the first time." - elog - use opengl && elog "You may also want to set \"OpenGL = true\"." -} -- cgit v1.2.3