summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccharon <christian.charon@mailbox.org>2022-07-06 14:24:03 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-07-10 22:09:59 +0200
commitdaaf99b856d1a6395d98d6bf691209df90958f6b (patch)
treef66f6a40033fc70e004caae86b657bda5c9864be /games-fps
parentdev-python/sphinx-pytest: Stabilize 0.0.4 arm, #857330 (diff)
downloadgentoo-daaf99b856d1a6395d98d6bf691209df90958f6b.tar.gz
gentoo-daaf99b856d1a6395d98d6bf691209df90958f6b.tar.bz2
gentoo-daaf99b856d1a6395d98d6bf691209df90958f6b.zip
eduke version 20220702.10113
Signed-off-by: Christian Charon <christian.charon@mailbox.org> Closes: https://github.com/gentoo/gentoo/pull/26242 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/eduke32/Manifest1
-rw-r--r--games-fps/eduke32/eduke32-20220702.10113.ebuild218
2 files changed, 219 insertions, 0 deletions
diff --git a/games-fps/eduke32/Manifest b/games-fps/eduke32/Manifest
index eb88cc015b64..631203f47101 100644
--- a/games-fps/eduke32/Manifest
+++ b/games-fps/eduke32/Manifest
@@ -6,3 +6,4 @@ DIST duke3d_voxels-1.21.zip 2997999 BLAKE2B dcb3103a82b45cfcf906d00147a57fe47997
DIST duke3d_xxx-1.33.zip 26586453 BLAKE2B 7e3c46172d3db1b2eb49eb07f243a9ead4f260d6b1dcae9f8bd599b8e9ba3a19068032afeb4ec2cf61742b6216e3a06c24f2b7e8903f9636f9d00f4d57ada47f SHA512 4783d159610fc178e748446b7a5f9c13d90e1aca3cef34deb82e99655b7f4a254f1130e16dbcfad9013b95bc07161d5c5dccfcc552fbb7a88404b4b9cedbadbf
DIST eduke32_classic.png 5129 BLAKE2B 332ad44b7f6b4f51362387aa6870e7db54423ca5a1f0586cb5019322fb72317d8e88e0bbf46ac89b56290db7e2e4a8442179a6eb87a615fd741b5f00ce96a1c8 SHA512 b41dece8f1ddcadde3367a83f6029ffdc5805811b40380e270169684fb3b368258bd8caeb55623dadffb6fb9d72faf9a3d75907722623f4fac94a4347f8ce833
DIST eduke32_src_20220422-10033-3927367ba.tar.xz 20777836 BLAKE2B 7c62a831c8daa5ba2f30e4dd80261aad87cb808eca28d0036f116c537de4d14b3fc2ca6fd325379aca21e7a2a6ab01dccce16907e108d932d5d62e3e0228aca5 SHA512 aac039500e9babc85d50d616868abff145ea145b3f53e9512c905acc084e9a193a7e0bbbd18c9976ad8ad306deccf6e23a66686edb06970b4b943a31938f0229
+DIST eduke32_src_20220702-10113-e27a7b621.tar.xz 20787584 BLAKE2B 977dddf96f54fd2e30de148de16e62a27b736acdb0d17e1d4fef7991b601c141c1242257bb7bed25d50baba4dff04aa3bdc060d4f83ba98fd724342de588c0dc SHA512 fe9ff5444934a4a0c10db9723a3ef317ac7aab55ccbdaf62ffabbd557e91537b92127d16231afff3a4bd9baadae559ff8cd8c3f2d02909a0d8267352fcac01fa
diff --git a/games-fps/eduke32/eduke32-20220702.10113.ebuild b/games-fps/eduke32/eduke32-20220702.10113.ebuild
new file mode 100644
index 000000000000..7af7c7289a38
--- /dev/null
+++ b/games-fps/eduke32/eduke32-20220702.10113.ebuild
@@ -0,0 +1,218 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop toolchain-funcs xdg-utils
+
+EGIT_COMMIT="e27a7b621"
+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
+ https://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}-20190820.8043-search-duke3d-path.patch"
+ "${FILESDIR}/${PN}-20200505.8904-gcc10.patch"
+ "${FILESDIR}/${PN}-20220204.9957-log-to-tmpdir.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=""
+ 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[@]}"
+
+ 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
+}