From f1af93971b7490792d8541bc790e0d8c6d787059 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 6 Sep 2019 10:28:05 +0100 Subject: gentoo resync : 06.08.2019 --- games-fps/eduke32/Manifest | 8 +- games-fps/eduke32/eduke32-20190719.7814.ebuild | 247 --------------------- games-fps/eduke32/eduke32-20190820.8043.ebuild | 247 +++++++++++++++++++++ .../eduke32-20190820.8043-log-to-tmpdir.patch | 11 + .../eduke32-20190820.8043-search-duke3d-path.patch | 11 + games-fps/eduke32/files/log-to-tmpdir.patch | 11 - games-fps/eduke32/files/search-duke3d-path.patch | 11 - 7 files changed, 273 insertions(+), 273 deletions(-) delete mode 100644 games-fps/eduke32/eduke32-20190719.7814.ebuild create mode 100644 games-fps/eduke32/eduke32-20190820.8043.ebuild create mode 100644 games-fps/eduke32/files/eduke32-20190820.8043-log-to-tmpdir.patch create mode 100644 games-fps/eduke32/files/eduke32-20190820.8043-search-duke3d-path.patch delete mode 100644 games-fps/eduke32/files/log-to-tmpdir.patch delete mode 100644 games-fps/eduke32/files/search-duke3d-path.patch (limited to 'games-fps/eduke32') diff --git a/games-fps/eduke32/Manifest b/games-fps/eduke32/Manifest index 91b1dc86a7aa..67dfb05ab3aa 100644 --- a/games-fps/eduke32/Manifest +++ b/games-fps/eduke32/Manifest @@ -1,7 +1,7 @@ AUX eduke32-20190419.7615-wad2map-buildfix.patch 539 BLAKE2B 92fe0ec1c1d126eee7f48b4c403194e8b375f28dc9581cb20b393ea4e7464938aacea760075e6c845d45edcf98df476bb3254026d3304f3c52a98f32cf7f7b00 SHA512 983f847af630456ae61dfa65a6fcd890a04e2b14722efd11bc25a3f9e3ac33b9bd5559b6a1e3927471a45196c417a1e17c0b2dd7f177c44b7aa81aa7e224fa92 +AUX eduke32-20190820.8043-log-to-tmpdir.patch 356 BLAKE2B 9cdb65c0e15270b4970144d57e126bef5c5b468c8142b797717536852c71f5f8183f63c5a6adffd6d411b2972831320d5a4f214e05d54bca67129ab84c3b0608 SHA512 f1ac030d0d9bed2cc4e67d33563dc7d2f34d2cda75835ec875ce0c3957191c7a61b8d9a16a1d040ee7d5ca8e98e8a2660fe9ff1d8047bbd86953425124140512 +AUX eduke32-20190820.8043-search-duke3d-path.patch 485 BLAKE2B 5a21dec8abc4cc13922a306107d968d1ad6341e5a0c62802d3069a6ad9d2378ae8d19ab6018c86b9e9ec9553a053bbbd45a04d9dd32eb5a31bc1dd1afb4aa757 SHA512 2c3fa40564bfd8c99090f46aaa03f0ff38f965a65e6e03c93f5c469dbcb1feb32c0092ff7aa13b15f5a531731045ab2cbeb6ec746ca56197d28439b36f591a96 AUX eduke32-bin 268 BLAKE2B 20941b736b5062f237a39d769a28bbbe1442116259bfe8ff5de4e4c5d9ea2a6139a10efcfd687ee681f56a99382e817f9ad00c2eb2da9c0f1e817912b783261e SHA512 f7a472eb7225800f09d22b617aa12d75dca50892a462a128f901f8df1efc3684d324948f553e1fb44a1e9b786aa60279311ee52d1a6d695cdac0b457a8eee937 -AUX log-to-tmpdir.patch 356 BLAKE2B 9cdb65c0e15270b4970144d57e126bef5c5b468c8142b797717536852c71f5f8183f63c5a6adffd6d411b2972831320d5a4f214e05d54bca67129ab84c3b0608 SHA512 f1ac030d0d9bed2cc4e67d33563dc7d2f34d2cda75835ec875ce0c3957191c7a61b8d9a16a1d040ee7d5ca8e98e8a2660fe9ff1d8047bbd86953425124140512 -AUX search-duke3d-path.patch 485 BLAKE2B 5a21dec8abc4cc13922a306107d968d1ad6341e5a0c62802d3069a6ad9d2378ae8d19ab6018c86b9e9ec9553a053bbbd45a04d9dd32eb5a31bc1dd1afb4aa757 SHA512 2c3fa40564bfd8c99090f46aaa03f0ff38f965a65e6e03c93f5c469dbcb1feb32c0092ff7aa13b15f5a531731045ab2cbeb6ec746ca56197d28439b36f591a96 DIST duke3d_hrp-5.4.zip 933440151 BLAKE2B 20749d6e1bdd07d0e5f28ac2f7e3aff60e8638223b934795320046922311533d6ecaefa3923650568aaa4e026927b53087032415d2d343fc4bd179c9e9ddd640 SHA512 fd5aba0a09193ccd49781d3f06a040000a134ad90f099ab7bf10a8abe474c3a742f922f8fa31522b8993828d516bdd0b5ded327e9c4615c2c101fe655d533f4d DIST duke3d_music-sc55-4.02.zip 155441427 BLAKE2B 7fa0c98927dd9a18411ad473269a795d1bc809fa8f9479deef06e12cd0dc97953680e7519c9d22e2d32b6ff79726682746820f78429ad11cb5edf1b64d2e4fe7 SHA512 70d3d7b4705e30cdb19ddc95e11a88afff1dc01dfc6495a488ea665f8097c1200695ec67246ac47a2480d0e68cd7d74e1d61c2120485f53bb93d9c0fb16ba9b2 DIST duke3d_musopl-2.01.zip 266444823 BLAKE2B 5255c671782279c7723fb1f848a331645a89fdc8dd5336250d06e6eed5b63511c37bfbb07d22d7e7ce29707efe2c55406f2ee81522374de3633f2b448c7dbd6b SHA512 08308b672516a6f3a3b9b85fd836f2a29a24c8fa5f353953f5f55a281dea370046817ccfb8467b4ce25385277ced8afd83c00882e8a246b03afa5e0e349efd35 @@ -9,6 +9,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_20190719-7814.tar.xz 14751836 BLAKE2B 95017d0fbb4a3d4db3bb64657671bad58f368af5f4c1d52cfc805d99bbfc77019dfc372d3aa82e9c216a783a41993d6c8e539b2861b72604c0397cfc52f046c4 SHA512 cf8783e36b73ee76ba7c824d9322a64b87ae48ddb7002e3e4b61120c03c03a03bb0205f790483421c5992e536adee0be1c497cd7aa8357fa0aa518f50a4ba861 -EBUILD eduke32-20190719.7814.ebuild 5972 BLAKE2B a212513a58223dfc35ef3cdb50937a3d6294ed5fafe6fd6ed5804d5c27b479c34b9e4b2a39431b1272848cf547b1275cb5b295b8efe6a2b1c5009d0906573391 SHA512 df0fbf71fe5ee81e75f476f5baa42e6fffccb314928b1ba563683ba431bc040a20866ccafb8edde4ccf1bc7f177b48cfcdf3f235a80687b143836e22b90a629d +DIST eduke32_src_20190820-8043.tar.xz 15922344 BLAKE2B 5414087f8c88c04438b2db5f5323bf82853353f05e00481be596de0e6c981bd651d53515f674d8c128865aba79d6d62a530e3346d215fc67caa36e8afb10c22e SHA512 5bfb6134acbb33e3c4c702306dfe2b005766910efe78b38e9ab1aa3221ccccf6b1e97ddc193222f25b8cd8b23a0f6fd6e13a4b4ae48589e24d8a0de958b5616a +EBUILD eduke32-20190820.8043.ebuild 6012 BLAKE2B 118c08659973f2cdbfba5b22cfa3df3771344d4d838b2974a17bdc732af0e58cbce5fb651a3c59a3de11b5c5ba1c3a27aca20f049cc484bf9600c812ca44a8fd SHA512 3311884582e9ededa714dfd8a53cabbffc15b750879a87d06ea05db4804e8e583d843812af30e05ca14ca5d3091597691cb9d9fd448788d7f5e1743151018373 MISC metadata.xml 1727 BLAKE2B 3448f8633a915311ffb9ccc6d53bf8a94928df2625eaba9e21952dab0c6eb6ec1d5da514c8ad6f810a94005571e69d1d00d1d4ecc2e2afc6ea99ee5aa9de73f5 SHA512 8aeb500968ff3b161f244cc0374f9d6b2261ad11104f92f496ab501675cc50e68981a28f0482b06845a2e058ac63464db92c0250373d2036c249739e2954063a diff --git a/games-fps/eduke32/eduke32-20190719.7814.ebuild b/games-fps/eduke32/eduke32-20190719.7814.ebuild deleted file mode 100644 index 196f0653f812..000000000000 --- a/games-fps/eduke32/eduke32-20190719.7814.ebuild +++ /dev/null @@ -1,247 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit desktop toolchain-funcs xdg-utils - -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}/${PN}_src_${MY_DATE}-${MY_BUILD}.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? ( http://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 ) -" - -LICENSE="BUILDLIC GPL-2 HRP" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~x86" -IUSE="cdinstall demo flac fluidsynth gtk hrp offensive opengl opl png psx sc-55 server sdk timidity tools vorbis voxels vpx xmp" -REQUIRED_USE=" - cdinstall? ( !demo ) - demo? ( !cdinstall ) - hrp? ( ^^ ( demo cdinstall ) - !voxels ) - offensive? ( ^^ ( demo cdinstall ) ) - opl? ( ^^ ( demo cdinstall ) - !sc-55 ) - psx? ( ^^ ( demo cdinstall ) ) - sc-55? ( ^^ ( demo cdinstall ) - !opl ) - voxels? ( !hrp ) - vpx? ( opengl ) -" - -S="${WORKDIR}/${PN}_${MY_DATE}-${MY_BUILD}" - -MY_DEPEND_RDEPEND=" - media-libs/libsdl2[joystick,opengl?,sound,video] - media-libs/sdl2-mixer[flac?,fluidsynth?,midi,timidity?,vorbis?] - sys-libs/zlib:= - flac? ( media-libs/flac ) - gtk? ( x11-libs/gtk+:2 ) - opengl? ( virtual/glu - virtual/opengl ) - png? ( media-libs/libpng:0= ) - timidity? ( media-sound/timidity-freepats ) - vpx? ( media-libs/libvpx:= ) - vorbis? ( media-libs/libogg - media-libs/libvorbis ) - xmp? ( media-libs/exempi:= ) -" - -RDEPEND=" - ${MY_DEPEND_RDEPEND} - cdinstall? ( games-fps/duke3d-data ) - demo? ( games-fps/duke3d-demodata ) -" - -DEPEND=" - ${MY_DEPEND_RDEPEND} - app-arch/unzip - x86? ( dev-lang/nasm ) -" - -PATCHES=( - "${FILESDIR}/${PN}-20190419.7615-wad2map-buildfix.patch" - "${FILESDIR}/log-to-tmpdir.patch" - "${FILESDIR}/search-duke3d-path.patch" -) - -src_unpack() { - # Extract only the eduke32 archive - unpack ${PN}_src_${MY_DATE}-${MY_BUILD}.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=$(usex flac 1 0) - HAVE_GTK2=$(usex gtk 1 0) - HAVE_VORBIS=$(usex vorbis 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="" - TANDALONE=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[@]}" - - if use tools; then - emake utils "${myemakeopts[@]}" - fi -} - -src_test() { - # There are no tests - # Instead it tries to build a test game, which does not compile - :; -} - -src_install() { - dobin eduke32 mapster32 "${FILESDIR}"/eduke32-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 - if use hrp; then - doins "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip - fi - if use offensive; then - doins "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip - fi - if use opl; then - doins "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip - fi - if use psx; then - doins "${DISTDIR}"/duke3d_psx-${MY_PV_PSX}.zip - fi - if use sc-55; then - doins "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip - fi - if use sdk; then - doins -r package/sdk - fi - if use voxels; then - doins "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip - fi - - newicon "${DISTDIR}"/eduke32_classic.png eduke32.png - - make_desktop_entry eduke32-bin EDuke32 eduke32 Game - make_desktop_entry mapster32 Mapster32 eduke32 Game - - local DOCS=( package/sdk/samples/*.txt source/build/doc/*.txt source/duke3d/src/lunatic/doc/*.txt ) - if use hrp; then - DOCS+=( "${WORKDIR}"/hrp_readme.txt "${WORKDIR}"/hrp_todo.txt ) - fi - if use offensive; then - DOCS+=( "${WORKDIR}"/xxx_readme.txt ) - fi - if use opl; then - DOCS+=( "${WORKDIR}"/opl_readme.txt ) - fi - if use sc-55; then - DOCS+=( "${WORKDIR}"/readme/music_readme.txt ) - fi - if use voxels; then - DOCS+=( "${WORKDIR}"/voxelpack_readme.txt ) - fi - einstalldocs -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/games-fps/eduke32/eduke32-20190820.8043.ebuild b/games-fps/eduke32/eduke32-20190820.8043.ebuild new file mode 100644 index 000000000000..9f03ea77a4ef --- /dev/null +++ b/games-fps/eduke32/eduke32-20190820.8043.ebuild @@ -0,0 +1,247 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop toolchain-funcs xdg-utils + +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}/${PN}_src_${MY_DATE}-${MY_BUILD}.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? ( http://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 ) +" + +LICENSE="BUILDLIC GPL-2 HRP" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="cdinstall demo flac fluidsynth gtk hrp offensive opengl opl png psx sc-55 server sdk timidity tools vorbis voxels vpx xmp" +REQUIRED_USE=" + cdinstall? ( !demo ) + demo? ( !cdinstall ) + hrp? ( ^^ ( demo cdinstall ) + !voxels ) + offensive? ( ^^ ( demo cdinstall ) ) + opl? ( ^^ ( demo cdinstall ) + !sc-55 ) + psx? ( ^^ ( demo cdinstall ) ) + sc-55? ( ^^ ( demo cdinstall ) + !opl ) + voxels? ( !hrp ) + vpx? ( opengl ) +" + +S="${WORKDIR}/${PN}_${MY_DATE}-${MY_BUILD}" + +MY_DEPEND_RDEPEND=" + media-libs/libsdl2[joystick,opengl?,sound,video] + media-libs/sdl2-mixer[flac?,fluidsynth?,midi,timidity?,vorbis?] + sys-libs/zlib:= + flac? ( media-libs/flac ) + gtk? ( x11-libs/gtk+:2 ) + opengl? ( virtual/glu + virtual/opengl ) + png? ( media-libs/libpng:0= ) + timidity? ( media-sound/timidity-freepats ) + vpx? ( media-libs/libvpx:= ) + vorbis? ( media-libs/libogg + media-libs/libvorbis ) + xmp? ( media-libs/exempi:= ) +" + +RDEPEND=" + ${MY_DEPEND_RDEPEND} + cdinstall? ( games-fps/duke3d-data ) + demo? ( games-fps/duke3d-demodata ) +" + +DEPEND=" + ${MY_DEPEND_RDEPEND} + app-arch/unzip + x86? ( dev-lang/nasm ) +" + +PATCHES=( + "${FILESDIR}/${PN}-20190419.7615-wad2map-buildfix.patch" + "${FILESDIR}/${PN}-20190820.8043-log-to-tmpdir.patch" + "${FILESDIR}/${PN}-20190820.8043-search-duke3d-path.patch" +) + +src_unpack() { + # Extract only the eduke32 archive + unpack ${PN}_src_${MY_DATE}-${MY_BUILD}.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=$(usex flac 1 0) + HAVE_GTK2=$(usex gtk 1 0) + HAVE_VORBIS=$(usex vorbis 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="" + TANDALONE=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[@]}" + + if use tools; then + emake utils "${myemakeopts[@]}" + fi +} + +src_test() { + # There are no tests + # Instead it tries to build a test game, which does not compile + :; +} + +src_install() { + dobin eduke32 mapster32 "${FILESDIR}"/eduke32-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 + if use hrp; then + doins "${DISTDIR}"/duke3d_hrp-${MY_PV_HRP}.zip + fi + if use offensive; then + doins "${DISTDIR}"/duke3d_xxx-${MY_PV_OFFENSIVE_XXX}.zip + fi + if use opl; then + doins "${DISTDIR}"/duke3d_musopl-${MY_PV_OPL}.zip + fi + if use psx; then + doins "${DISTDIR}"/duke3d_psx-${MY_PV_PSX}.zip + fi + if use sc-55; then + doins "${DISTDIR}"/duke3d_music-sc55-${MY_PV_SC55}.zip + fi + if use sdk; then + doins -r package/sdk + fi + if use voxels; then + doins "${DISTDIR}"/duke3d_voxels-${MY_PV_VOXELS}.zip + fi + + newicon "${DISTDIR}"/eduke32_classic.png eduke32.png + + make_desktop_entry eduke32-bin EDuke32 eduke32 Game + make_desktop_entry mapster32 Mapster32 eduke32 Game + + local DOCS=( package/sdk/samples/*.txt source/build/doc/*.txt source/duke3d/src/lunatic/doc/*.txt ) + if use hrp; then + DOCS+=( "${WORKDIR}"/hrp_readme.txt "${WORKDIR}"/hrp_todo.txt ) + fi + if use offensive; then + DOCS+=( "${WORKDIR}"/xxx_readme.txt ) + fi + if use opl; then + DOCS+=( "${WORKDIR}"/opl_readme.txt ) + fi + if use sc-55; then + DOCS+=( "${WORKDIR}"/readme/music_readme.txt ) + fi + if use voxels; then + DOCS+=( "${WORKDIR}"/voxelpack_readme.txt ) + fi + einstalldocs +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-fps/eduke32/files/eduke32-20190820.8043-log-to-tmpdir.patch b/games-fps/eduke32/files/eduke32-20190820.8043-log-to-tmpdir.patch new file mode 100644 index 000000000000..24cec1b00af1 --- /dev/null +++ b/games-fps/eduke32/files/eduke32-20190820.8043-log-to-tmpdir.patch @@ -0,0 +1,11 @@ +--- a/source/duke3d/src/game.cpp 2018-05-08 19:32:19.000000000 +0200 ++++ b/source/duke3d/src/game.cpp 2018-05-10 23:46:21.540213019 +0200 +@@ -6234,7 +6234,7 @@ + } + else + #endif +- OSD_SetLogFile(APPBASENAME ".log"); ++ OSD_SetLogFile("/tmp/" APPBASENAME ".log"); + + OSD_SetFunctions(GAME_drawosdchar, + GAME_drawosdstr, diff --git a/games-fps/eduke32/files/eduke32-20190820.8043-search-duke3d-path.patch b/games-fps/eduke32/files/eduke32-20190820.8043-search-duke3d-path.patch new file mode 100644 index 000000000000..c35af40c749e --- /dev/null +++ b/games-fps/eduke32/files/eduke32-20190820.8043-search-duke3d-path.patch @@ -0,0 +1,11 @@ +--- a/source/duke3d/src/common.cpp 2018-04-12 23:03:47.000000000 +0200 ++++ b/source/duke3d/src/common.cpp 2018-05-11 00:04:36.590712915 +0200 +@@ -794,6 +794,8 @@ + + addsearchpath("/usr/share/games/jfduke3d"); + addsearchpath("/usr/local/share/games/jfduke3d"); ++ addsearchpath("/usr/share/games/duke3d"); ++ addsearchpath("/usr/share/duke3d"); + addsearchpath("/usr/share/games/eduke32"); + addsearchpath("/usr/local/share/games/eduke32"); + #elif defined EDUKE32_OSX diff --git a/games-fps/eduke32/files/log-to-tmpdir.patch b/games-fps/eduke32/files/log-to-tmpdir.patch deleted file mode 100644 index 24cec1b00af1..000000000000 --- a/games-fps/eduke32/files/log-to-tmpdir.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/source/duke3d/src/game.cpp 2018-05-08 19:32:19.000000000 +0200 -+++ b/source/duke3d/src/game.cpp 2018-05-10 23:46:21.540213019 +0200 -@@ -6234,7 +6234,7 @@ - } - else - #endif -- OSD_SetLogFile(APPBASENAME ".log"); -+ OSD_SetLogFile("/tmp/" APPBASENAME ".log"); - - OSD_SetFunctions(GAME_drawosdchar, - GAME_drawosdstr, diff --git a/games-fps/eduke32/files/search-duke3d-path.patch b/games-fps/eduke32/files/search-duke3d-path.patch deleted file mode 100644 index c35af40c749e..000000000000 --- a/games-fps/eduke32/files/search-duke3d-path.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/source/duke3d/src/common.cpp 2018-04-12 23:03:47.000000000 +0200 -+++ b/source/duke3d/src/common.cpp 2018-05-11 00:04:36.590712915 +0200 -@@ -794,6 +794,8 @@ - - addsearchpath("/usr/share/games/jfduke3d"); - addsearchpath("/usr/local/share/games/jfduke3d"); -+ addsearchpath("/usr/share/games/duke3d"); -+ addsearchpath("/usr/share/duke3d"); - addsearchpath("/usr/share/games/eduke32"); - addsearchpath("/usr/local/share/games/eduke32"); - #elif defined EDUKE32_OSX -- cgit v1.2.3