From 9173ac495b70d91abace8e732906b844522cdb3b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 28 Mar 2024 19:13:18 +0000 Subject: gentoo auto-resync : 28:03:2024 - 19:13:18 --- games-fps/Manifest.gz | Bin 12214 -> 12209 bytes games-fps/eduke32/Manifest | 6 +- games-fps/eduke32/eduke32-20231007.10494.ebuild | 218 ------------------------ games-fps/eduke32/eduke32-20231224.10548.ebuild | 218 ------------------------ games-fps/eduke32/eduke32-20240316.10564.ebuild | 218 ++++++++++++++++++++++++ 5 files changed, 220 insertions(+), 440 deletions(-) delete mode 100644 games-fps/eduke32/eduke32-20231007.10494.ebuild delete mode 100644 games-fps/eduke32/eduke32-20231224.10548.ebuild create mode 100644 games-fps/eduke32/eduke32-20240316.10564.ebuild (limited to 'games-fps') diff --git a/games-fps/Manifest.gz b/games-fps/Manifest.gz index 88bf858c8cf4..62a27edaccef 100644 Binary files a/games-fps/Manifest.gz and b/games-fps/Manifest.gz differ diff --git a/games-fps/eduke32/Manifest b/games-fps/eduke32/Manifest index e6394a0a95e2..8be0191239c7 100644 --- a/games-fps/eduke32/Manifest +++ b/games-fps/eduke32/Manifest @@ -10,8 +10,6 @@ DIST duke3d_psx-1.11.zip 7636016 BLAKE2B 63094c0eb2343e443f98844675ddc23a138d87c DIST duke3d_voxels-1.21.zip 2997999 BLAKE2B dcb3103a82b45cfcf906d00147a57fe47997680ff7550973ed9741e62e78f9a099c1a13f65eaa133076d6551fcdfbf34e28ff59f2ad59f91ece98753e7d39523 SHA512 4b55dcc192cb2aa8830250fd222664272176bea8f6c6e4ac6d488abfecb1332b5793986c164fde78901904e2bde37e6ee4aa020c5eb578002de8f6102f44df15 DIST duke3d_xxx-1.33.zip 26586453 BLAKE2B 7e3c46172d3db1b2eb49eb07f243a9ead4f260d6b1dcae9f8bd599b8e9ba3a19068032afeb4ec2cf61742b6216e3a06c24f2b7e8903f9636f9d00f4d57ada47f SHA512 4783d159610fc178e748446b7a5f9c13d90e1aca3cef34deb82e99655b7f4a254f1130e16dbcfad9013b95bc07161d5c5dccfcc552fbb7a88404b4b9cedbadbf DIST eduke32_classic.png 5129 BLAKE2B 332ad44b7f6b4f51362387aa6870e7db54423ca5a1f0586cb5019322fb72317d8e88e0bbf46ac89b56290db7e2e4a8442179a6eb87a615fd741b5f00ce96a1c8 SHA512 b41dece8f1ddcadde3367a83f6029ffdc5805811b40380e270169684fb3b368258bd8caeb55623dadffb6fb9d72faf9a3d75907722623f4fac94a4347f8ce833 -DIST eduke32_src_20231007-10494-17844a2f6.tar.xz 19190776 BLAKE2B 87652f3705efb66d7777427307de0fa91e3b4bc221e75bb16d8cecdeb91e1f9f26addbc2c49dcc703bc4589f747854c4978cbd53ac4fc954d2e0eb8e45218472 SHA512 4f3cea4e84630a8ec9c125d7b3b0cba12da8d4b6879a757165a59a7fa7bcda32dd16a471560859f7ea5951d8e475fe5d1414bdc3eec05ec765f79fed405a8a9d -DIST eduke32_src_20231224-10548-842047589.tar.xz 19149340 BLAKE2B 28fad72a934b1f8b008d949c447fe5180496acb8aa6d511a071c82119c8aa094fa1ee0d990c7ed58999ab67c3887c38d3f1d410bc983aea4766c7ee9b68032c1 SHA512 bfbaf9c4529d8e187b277f1fb4a93d56b7480fc54ebfdc1773c20e8d6e562192b7256a9b3f470d42687cdf0b2225537a3a17f96cb7a3e7a638898545073943b2 -EBUILD eduke32-20231007.10494.ebuild 5798 BLAKE2B c176ec7a55887e4d6080d98ed1fed8b042e97848a3ef1c833f3332b096258f0a6cab88bf00874f9a338f628f55bcd8c742dee10e9356177ae234edb3cce3d322 SHA512 528eca8d5c2a21eab8354d1d0e8d64de74f0375eb401ebba1079c093d28eae8fe3edeaa664bd9ef9898015cb6baad9e7dcda14d14627c9a4e3afc0ad114bf22d -EBUILD eduke32-20231224.10548.ebuild 5798 BLAKE2B 9c0ddbebe1409e0f2470d7ab1f30a7ee78cb2331d6fa6ebb40c561c2d6920f6a14ded6db11582fa6eee1490922d0b92c3b8e42e6dbe9fccb8a27e0ec57df9c17 SHA512 72aa799f50159df2ec50b6859569d518ec0bfbd13f56f071731403f5274eae20c17490cfa409073072ec3dc9228016400aa18cacef3784d1f76a2dc3411f5edc +DIST eduke32_src_20240316-10564-0bc78c53d.tar.xz 19232976 BLAKE2B 321183f3c41edcdcff1b72b91974e1a338eabaa42a7b34abff562b2f22c69fcd3cb5bacef9a5776328d6c66dba7267cd94b4c57ad642c29a23d20039bc0702d7 SHA512 111a86be4a516638b2e54883cc4af1a99346cdd410acaecc3ab5feed25a5799c8531b64a56f10e10efc987611801c1c807fd6161098f9e36674071d4cdaf648b +EBUILD eduke32-20240316.10564.ebuild 5798 BLAKE2B dbeedee128bf2a2bbff935aa24a4bc11dca167a2235534926c529c548109cc37c2140d36b02faf13059f432f53865bf14cf8560517fe54f2468bfde61fee3a26 SHA512 0899b886d1791b775419f2ed66f6c97c280f13126b68ac527094dfeab194d2c4e222e74dd32df46c894c8d90aff7d0d37d8522d0a4ed198d427ab20c24a326f9 MISC metadata.xml 1696 BLAKE2B 76d8cb27f0b64251519778ed51c1497807772d552eef3972312b8971e606087f4d44e4fda17499fea766233c1b7aa25ccf1467e76cc74bf1aee58d8cd21f158c SHA512 46dbbacbdcc05ef6907431f8d6bf1385af78c2d717653026ae565a26db2d0c8f05f242aaa78f4b14791c16c40862dc2e4d9a02892f650e222ee8fb4222603a8d diff --git a/games-fps/eduke32/eduke32-20231007.10494.ebuild b/games-fps/eduke32/eduke32-20231007.10494.ebuild deleted file mode 100644 index 49426ee30c6d..000000000000 --- a/games-fps/eduke32/eduke32-20231007.10494.ebuild +++ /dev/null @@ -1,218 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop toolchain-funcs xdg-utils - -EGIT_COMMIT="17844a2f6" -MY_BUILD="$(ver_cut 2)" -MY_DATE="$(ver_cut 1)" -MY_PV_HRP="5.4" -MY_PV_OFFENSIVE_XXX="1.33" -MY_PV_OPL="2.01" -MY_PV_PSX="1.11" -MY_PV_SC55="4.02" -MY_PV_VOXELS="1.21" - -DESCRIPTION="An open source engine port of the classic PC first person shooter Duke Nukem 3D" -HOMEPAGE="http://www.eduke32.com/" -SRC_URI=" - http://dukeworld.com/eduke32/synthesis/${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}/${PN}_src_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}.tar.xz - http://www.eduke32.com/images/eduke32_classic.png - hrp? ( http://www.duke4.org/files/nightfright/hrp/duke3d_hrp.zip -> duke3d_hrp-${MY_PV_HRP}.zip ) - offensive? ( http://www.duke4.org/files/nightfright/related/duke3d_xxx.zip -> duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip ) - opl? ( https://www.moddb.com/downloads/mirror/95750/102/ce9e8f422c6cccdb297852426e96740a -> duke3d_musopl-${MY_PV_OPL}.zip ) - psx? ( http://www.duke4.org/files/nightfright/related/duke3d_psx.zip -> duke3d_psx-${MY_PV_PSX}.zip ) - sc-55? ( http://www.duke4.org/files/nightfright/music/duke3d_music-sc55.zip -> duke3d_music-sc55-${MY_PV_SC55}.zip ) - voxels? ( https://www.dropbox.com/s/yaxfahyvskyvt4r/duke3d_voxels.zip -> duke3d_voxels-${MY_PV_VOXELS}.zip ) -" -S="${WORKDIR}/${PN}_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}" - -LICENSE="BUILDLIC GPL-2 HRP" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" -IUSE="duke3d fluidsynth gtk hrp offensive opengl opl png psx sc-55 server sdk timidity tools voidsw voxels vpx xmp" -REQUIRED_USE=" - hrp? ( duke3d !voxels ) - offensive? ( duke3d ) - opl? ( duke3d !sc-55 ) - psx? ( duke3d ) - sc-55? ( duke3d !opl ) - voxels? ( !hrp ) - vpx? ( opengl ) -" - -# There are no tests, -# instead it tries to build a test game, which does not compile -RESTRICT="bindist test" - -RDEPEND=" - media-libs/flac:= - media-libs/libogg - media-libs/libsdl2[alsa,joystick,opengl?,sound,video] - media-libs/libvorbis - media-libs/sdl2-mixer[flac,fluidsynth?,midi,timidity?,vorbis] - sys-libs/zlib - gtk? ( x11-libs/gtk+:2 ) - opengl? ( - virtual/glu - virtual/opengl - ) - png? ( media-libs/libpng:0= ) - vpx? ( media-libs/libvpx:= ) - xmp? ( media-libs/exempi:2= ) -" - -DEPEND=" - ${RDEPEND} - timidity? ( media-sound/timidity++ ) -" - -BDEPEND=" - app-arch/unzip - x86? ( dev-lang/nasm ) -" - -PDEPEND="duke3d? ( games-fps/duke3d-data )" - -PATCHES=( - "${FILESDIR}/${PN}-20200505.8904-gcc10.patch" - "${FILESDIR}/${PN}-20220204.9957-log-to-tmpdir.patch" - "${FILESDIR}/${PN}-20230926.10459-search-duke3d-path.patch" -) - -src_unpack() { - # Extract only the eduke32 archive - unpack ${PN}_src_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}.tar.xz - - # Unpack only the documentation - if use hrp; then - unzip -q "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip hrp_readme.txt hrp_todo.txt || die - fi - if use offensive; then - unzip -q "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip xxx_readme.txt || die - fi - if use opl; then - unzip -q "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip readme.txt || die - mv readme.txt opl_readme.txt || die - fi - if use sc-55; then - unzip -q "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip readme/music_readme.txt || die - fi - if use voxels; then - unzip -q "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip voxelpack_readme.txt || die - fi -} - -src_compile() { - local myemakeopts=( - ALLOCACHE_AS_MALLOC=0 - AS="$(tc-getAS)" - CC="$(tc-getCC)" - CXX="$(tc-getCXX)" - CLANG=0 - CPLUSPLUS=1 - CUSTOMOPT="" - DEBUGANYWAY=0 - F_JUMP_TABLES="" - FORCEDEBUG=0 - HAVE_FLAC=1 - HAVE_GTK2=$(usex gtk 1 0) - HAVE_XMP=$(usex xmp 1 0) - LINKED_GTK=$(usex gtk 1 0) - LTO=1 - LUNATIC=0 - KRANDDEBUG=0 - MEMMAP=0 - MIXERTYPE=SDL - NETCODE=$(usex server 1 0) - NOASM=0 - OPTLEVEL=0 - OPTOPT="" - PACKAGE_REPOSITORY=1 - POLYMER=$(usex opengl 1 0) - PRETTY_OUTPUT=0 - PROFILER=0 - RELEASE=1 - RENDERTYPE=SDL - SDL_TARGET=2 - SIMPLE_MENU=0 - STRIP="" - STANDALONE=0 - STARTUP_WINDOW=$(usex gtk 1 0) - USE_OPENGL=$(usex opengl 1 0) - USE_LIBVPX=$(usex vpx 1 0) - USE_LIBPNG=$(usex png 1 0) - USE_LUAJIT_2_1=0 - WITHOUT_GTK=$(usex gtk 0 1) - ) - - emake "${myemakeopts[@]}" - - use tools && emake utils "${myemakeopts[@]}" - use voidsw && emake sw "${myemakeopts[@]}" -} - -src_install() { - dobin eduke32 mapster32 "${FILESDIR}"/eduke32-bin - use voidsw && dobin voidsw "${FILESDIR}"/voidsw-bin - - if use tools; then - local tools=( - arttool - bsuite - cacheinfo - generateicon - givedepth - ivfrate - kextract - kgroup - kmd2tool - makesdlkeytrans - map2stl - md2tool - mkpalette - transpal - unpackssi - wad2art - wad2map - ) - - dobin "${tools[@]}" - fi - - keepdir /usr/share/games/eduke32 - insinto /usr/share/games/eduke32 - - use hrp && doins "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip - use offensive && doins "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip - use opl && doins "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip - use psx && doins "${DISTDIR}"/duke3d_psx-${MY_PV_PSX}.zip - use sc-55 && doins "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip - use sdk && doins -r package/sdk - use voxels && doins "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip - - newicon "${DISTDIR}"/eduke32_classic.png eduke32.png - - make_desktop_entry eduke32-bin EDuke32 eduke32 Game - make_desktop_entry mapster32 Mapster32 eduke32 Game - use voidsw && make_desktop_entry voidsw-bin VoidSW voidsw Game - - local DOCS=( package/sdk/samples/*.txt source/build/doc/*.txt ) - use hrp && DOCS+=( "${WORKDIR}"/hrp_readme.txt "${WORKDIR}"/hrp_todo.txt ) - use offensive && DOCS+=( "${WORKDIR}"/xxx_readme.txt ) - use opl && DOCS+=( "${WORKDIR}"/opl_readme.txt ) - use sc-55 && DOCS+=( "${WORKDIR}"/readme/music_readme.txt ) - use voxels && DOCS+=( "${WORKDIR}"/voxelpack_readme.txt ) - - einstalldocs -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/games-fps/eduke32/eduke32-20231224.10548.ebuild b/games-fps/eduke32/eduke32-20231224.10548.ebuild deleted file mode 100644 index 5d6821bb3e34..000000000000 --- a/games-fps/eduke32/eduke32-20231224.10548.ebuild +++ /dev/null @@ -1,218 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop toolchain-funcs xdg-utils - -EGIT_COMMIT="842047589" -MY_BUILD="$(ver_cut 2)" -MY_DATE="$(ver_cut 1)" -MY_PV_HRP="5.4" -MY_PV_OFFENSIVE_XXX="1.33" -MY_PV_OPL="2.01" -MY_PV_PSX="1.11" -MY_PV_SC55="4.02" -MY_PV_VOXELS="1.21" - -DESCRIPTION="An open source engine port of the classic PC first person shooter Duke Nukem 3D" -HOMEPAGE="http://www.eduke32.com/" -SRC_URI=" - http://dukeworld.com/eduke32/synthesis/${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}/${PN}_src_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}.tar.xz - http://www.eduke32.com/images/eduke32_classic.png - hrp? ( http://www.duke4.org/files/nightfright/hrp/duke3d_hrp.zip -> duke3d_hrp-${MY_PV_HRP}.zip ) - offensive? ( http://www.duke4.org/files/nightfright/related/duke3d_xxx.zip -> duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip ) - opl? ( https://www.moddb.com/downloads/mirror/95750/102/ce9e8f422c6cccdb297852426e96740a -> duke3d_musopl-${MY_PV_OPL}.zip ) - psx? ( http://www.duke4.org/files/nightfright/related/duke3d_psx.zip -> duke3d_psx-${MY_PV_PSX}.zip ) - sc-55? ( http://www.duke4.org/files/nightfright/music/duke3d_music-sc55.zip -> duke3d_music-sc55-${MY_PV_SC55}.zip ) - voxels? ( https://www.dropbox.com/s/yaxfahyvskyvt4r/duke3d_voxels.zip -> duke3d_voxels-${MY_PV_VOXELS}.zip ) -" -S="${WORKDIR}/${PN}_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}" - -LICENSE="BUILDLIC GPL-2 HRP" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" -IUSE="duke3d fluidsynth gtk hrp offensive opengl opl png psx sc-55 server sdk timidity tools voidsw voxels vpx xmp" -REQUIRED_USE=" - hrp? ( duke3d !voxels ) - offensive? ( duke3d ) - opl? ( duke3d !sc-55 ) - psx? ( duke3d ) - sc-55? ( duke3d !opl ) - voxels? ( !hrp ) - vpx? ( opengl ) -" - -# There are no tests, -# instead it tries to build a test game, which does not compile -RESTRICT="bindist test" - -RDEPEND=" - media-libs/flac:= - media-libs/libogg - media-libs/libsdl2[alsa,joystick,opengl?,sound,video] - media-libs/libvorbis - media-libs/sdl2-mixer[flac,fluidsynth?,midi,timidity?,vorbis] - sys-libs/zlib - gtk? ( x11-libs/gtk+:2 ) - opengl? ( - virtual/glu - virtual/opengl - ) - png? ( media-libs/libpng:0= ) - vpx? ( media-libs/libvpx:= ) - xmp? ( media-libs/exempi:2= ) -" - -DEPEND=" - ${RDEPEND} - timidity? ( media-sound/timidity++ ) -" - -BDEPEND=" - app-arch/unzip - x86? ( dev-lang/nasm ) -" - -PDEPEND="duke3d? ( games-fps/duke3d-data )" - -PATCHES=( - "${FILESDIR}/${PN}-20200505.8904-gcc10.patch" - "${FILESDIR}/${PN}-20220204.9957-log-to-tmpdir.patch" - "${FILESDIR}/${PN}-20230926.10459-search-duke3d-path.patch" -) - -src_unpack() { - # Extract only the eduke32 archive - unpack ${PN}_src_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}.tar.xz - - # Unpack only the documentation - if use hrp; then - unzip -q "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip hrp_readme.txt hrp_todo.txt || die - fi - if use offensive; then - unzip -q "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip xxx_readme.txt || die - fi - if use opl; then - unzip -q "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip readme.txt || die - mv readme.txt opl_readme.txt || die - fi - if use sc-55; then - unzip -q "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip readme/music_readme.txt || die - fi - if use voxels; then - unzip -q "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip voxelpack_readme.txt || die - fi -} - -src_compile() { - local myemakeopts=( - ALLOCACHE_AS_MALLOC=0 - AS="$(tc-getAS)" - CC="$(tc-getCC)" - CXX="$(tc-getCXX)" - CLANG=0 - CPLUSPLUS=1 - CUSTOMOPT="" - DEBUGANYWAY=0 - F_JUMP_TABLES="" - FORCEDEBUG=0 - HAVE_FLAC=1 - HAVE_GTK2=$(usex gtk 1 0) - HAVE_XMP=$(usex xmp 1 0) - LINKED_GTK=$(usex gtk 1 0) - LTO=1 - LUNATIC=0 - KRANDDEBUG=0 - MEMMAP=0 - MIXERTYPE=SDL - NETCODE=$(usex server 1 0) - NOASM=0 - OPTLEVEL=0 - OPTOPT="" - PACKAGE_REPOSITORY=1 - POLYMER=$(usex opengl 1 0) - PRETTY_OUTPUT=0 - PROFILER=0 - RELEASE=1 - RENDERTYPE=SDL - SDL_TARGET=2 - SIMPLE_MENU=0 - STRIP="" - STANDALONE=0 - STARTUP_WINDOW=$(usex gtk 1 0) - USE_OPENGL=$(usex opengl 1 0) - USE_LIBVPX=$(usex vpx 1 0) - USE_LIBPNG=$(usex png 1 0) - USE_LUAJIT_2_1=0 - WITHOUT_GTK=$(usex gtk 0 1) - ) - - emake "${myemakeopts[@]}" - - use tools && emake utils "${myemakeopts[@]}" - use voidsw && emake sw "${myemakeopts[@]}" -} - -src_install() { - dobin eduke32 mapster32 "${FILESDIR}"/eduke32-bin - use voidsw && dobin voidsw "${FILESDIR}"/voidsw-bin - - if use tools; then - local tools=( - arttool - bsuite - cacheinfo - generateicon - givedepth - ivfrate - kextract - kgroup - kmd2tool - makesdlkeytrans - map2stl - md2tool - mkpalette - transpal - unpackssi - wad2art - wad2map - ) - - dobin "${tools[@]}" - fi - - keepdir /usr/share/games/eduke32 - insinto /usr/share/games/eduke32 - - use hrp && doins "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip - use offensive && doins "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip - use opl && doins "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip - use psx && doins "${DISTDIR}"/duke3d_psx-${MY_PV_PSX}.zip - use sc-55 && doins "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip - use sdk && doins -r package/sdk - use voxels && doins "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip - - newicon "${DISTDIR}"/eduke32_classic.png eduke32.png - - make_desktop_entry eduke32-bin EDuke32 eduke32 Game - make_desktop_entry mapster32 Mapster32 eduke32 Game - use voidsw && make_desktop_entry voidsw-bin VoidSW voidsw Game - - local DOCS=( package/sdk/samples/*.txt source/build/doc/*.txt ) - use hrp && DOCS+=( "${WORKDIR}"/hrp_readme.txt "${WORKDIR}"/hrp_todo.txt ) - use offensive && DOCS+=( "${WORKDIR}"/xxx_readme.txt ) - use opl && DOCS+=( "${WORKDIR}"/opl_readme.txt ) - use sc-55 && DOCS+=( "${WORKDIR}"/readme/music_readme.txt ) - use voxels && DOCS+=( "${WORKDIR}"/voxelpack_readme.txt ) - - einstalldocs -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/games-fps/eduke32/eduke32-20240316.10564.ebuild b/games-fps/eduke32/eduke32-20240316.10564.ebuild new file mode 100644 index 000000000000..b4ffbd52df70 --- /dev/null +++ b/games-fps/eduke32/eduke32-20240316.10564.ebuild @@ -0,0 +1,218 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop toolchain-funcs xdg-utils + +EGIT_COMMIT="0bc78c53d" +MY_BUILD="$(ver_cut 2)" +MY_DATE="$(ver_cut 1)" +MY_PV_HRP="5.4" +MY_PV_OFFENSIVE_XXX="1.33" +MY_PV_OPL="2.01" +MY_PV_PSX="1.11" +MY_PV_SC55="4.02" +MY_PV_VOXELS="1.21" + +DESCRIPTION="An open source engine port of the classic PC first person shooter Duke Nukem 3D" +HOMEPAGE="http://www.eduke32.com/" +SRC_URI=" + http://dukeworld.com/eduke32/synthesis/${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}/${PN}_src_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}.tar.xz + http://www.eduke32.com/images/eduke32_classic.png + hrp? ( http://www.duke4.org/files/nightfright/hrp/duke3d_hrp.zip -> duke3d_hrp-${MY_PV_HRP}.zip ) + offensive? ( http://www.duke4.org/files/nightfright/related/duke3d_xxx.zip -> duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip ) + opl? ( https://www.moddb.com/downloads/mirror/95750/102/ce9e8f422c6cccdb297852426e96740a -> duke3d_musopl-${MY_PV_OPL}.zip ) + psx? ( http://www.duke4.org/files/nightfright/related/duke3d_psx.zip -> duke3d_psx-${MY_PV_PSX}.zip ) + sc-55? ( http://www.duke4.org/files/nightfright/music/duke3d_music-sc55.zip -> duke3d_music-sc55-${MY_PV_SC55}.zip ) + voxels? ( https://www.dropbox.com/s/yaxfahyvskyvt4r/duke3d_voxels.zip -> duke3d_voxels-${MY_PV_VOXELS}.zip ) +" +S="${WORKDIR}/${PN}_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}" + +LICENSE="BUILDLIC GPL-2 HRP" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="duke3d fluidsynth gtk hrp offensive opengl opl png psx sc-55 server sdk timidity tools voidsw voxels vpx xmp" +REQUIRED_USE=" + hrp? ( duke3d !voxels ) + offensive? ( duke3d ) + opl? ( duke3d !sc-55 ) + psx? ( duke3d ) + sc-55? ( duke3d !opl ) + voxels? ( !hrp ) + vpx? ( opengl ) +" + +# There are no tests, +# instead it tries to build a test game, which does not compile +RESTRICT="bindist test" + +RDEPEND=" + media-libs/flac:= + media-libs/libogg + media-libs/libsdl2[alsa,joystick,opengl?,sound,video] + media-libs/libvorbis + media-libs/sdl2-mixer[flac,fluidsynth?,midi,timidity?,vorbis] + sys-libs/zlib + gtk? ( x11-libs/gtk+:2 ) + opengl? ( + virtual/glu + virtual/opengl + ) + png? ( media-libs/libpng:0= ) + vpx? ( media-libs/libvpx:= ) + xmp? ( media-libs/exempi:2= ) +" + +DEPEND=" + ${RDEPEND} + timidity? ( media-sound/timidity++ ) +" + +BDEPEND=" + app-arch/unzip + x86? ( dev-lang/nasm ) +" + +PDEPEND="duke3d? ( games-fps/duke3d-data )" + +PATCHES=( + "${FILESDIR}/${PN}-20200505.8904-gcc10.patch" + "${FILESDIR}/${PN}-20220204.9957-log-to-tmpdir.patch" + "${FILESDIR}/${PN}-20230926.10459-search-duke3d-path.patch" +) + +src_unpack() { + # Extract only the eduke32 archive + unpack ${PN}_src_${MY_DATE}-${MY_BUILD}-${EGIT_COMMIT}.tar.xz + + # Unpack only the documentation + if use hrp; then + unzip -q "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip hrp_readme.txt hrp_todo.txt || die + fi + if use offensive; then + unzip -q "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip xxx_readme.txt || die + fi + if use opl; then + unzip -q "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip readme.txt || die + mv readme.txt opl_readme.txt || die + fi + if use sc-55; then + unzip -q "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip readme/music_readme.txt || die + fi + if use voxels; then + unzip -q "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip voxelpack_readme.txt || die + fi +} + +src_compile() { + local myemakeopts=( + ALLOCACHE_AS_MALLOC=0 + AS="$(tc-getAS)" + CC="$(tc-getCC)" + CXX="$(tc-getCXX)" + CLANG=0 + CPLUSPLUS=1 + CUSTOMOPT="" + DEBUGANYWAY=0 + F_JUMP_TABLES="" + FORCEDEBUG=0 + HAVE_FLAC=1 + HAVE_GTK2=$(usex gtk 1 0) + HAVE_XMP=$(usex xmp 1 0) + LINKED_GTK=$(usex gtk 1 0) + LTO=1 + LUNATIC=0 + KRANDDEBUG=0 + MEMMAP=0 + MIXERTYPE=SDL + NETCODE=$(usex server 1 0) + NOASM=0 + OPTLEVEL=0 + OPTOPT="" + PACKAGE_REPOSITORY=1 + POLYMER=$(usex opengl 1 0) + PRETTY_OUTPUT=0 + PROFILER=0 + RELEASE=1 + RENDERTYPE=SDL + SDL_TARGET=2 + SIMPLE_MENU=0 + STRIP="" + STANDALONE=0 + STARTUP_WINDOW=$(usex gtk 1 0) + USE_OPENGL=$(usex opengl 1 0) + USE_LIBVPX=$(usex vpx 1 0) + USE_LIBPNG=$(usex png 1 0) + USE_LUAJIT_2_1=0 + WITHOUT_GTK=$(usex gtk 0 1) + ) + + emake "${myemakeopts[@]}" + + use tools && emake utils "${myemakeopts[@]}" + use voidsw && emake sw "${myemakeopts[@]}" +} + +src_install() { + dobin eduke32 mapster32 "${FILESDIR}"/eduke32-bin + use voidsw && dobin voidsw "${FILESDIR}"/voidsw-bin + + if use tools; then + local tools=( + arttool + bsuite + cacheinfo + generateicon + givedepth + ivfrate + kextract + kgroup + kmd2tool + makesdlkeytrans + map2stl + md2tool + mkpalette + transpal + unpackssi + wad2art + wad2map + ) + + dobin "${tools[@]}" + fi + + keepdir /usr/share/games/eduke32 + insinto /usr/share/games/eduke32 + + use hrp && doins "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip + use offensive && doins "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip + use opl && doins "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip + use psx && doins "${DISTDIR}"/duke3d_psx-${MY_PV_PSX}.zip + use sc-55 && doins "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip + use sdk && doins -r package/sdk + use voxels && doins "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip + + newicon "${DISTDIR}"/eduke32_classic.png eduke32.png + + make_desktop_entry eduke32-bin EDuke32 eduke32 Game + make_desktop_entry mapster32 Mapster32 eduke32 Game + use voidsw && make_desktop_entry voidsw-bin VoidSW voidsw Game + + local DOCS=( package/sdk/samples/*.txt source/build/doc/*.txt ) + use hrp && DOCS+=( "${WORKDIR}"/hrp_readme.txt "${WORKDIR}"/hrp_todo.txt ) + use offensive && DOCS+=( "${WORKDIR}"/xxx_readme.txt ) + use opl && DOCS+=( "${WORKDIR}"/opl_readme.txt ) + use sc-55 && DOCS+=( "${WORKDIR}"/readme/music_readme.txt ) + use voxels && DOCS+=( "${WORKDIR}"/voxelpack_readme.txt ) + + einstalldocs +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} -- cgit v1.2.3