diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2007-07-02 19:59:26 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2007-07-02 19:59:26 +0000 |
commit | da0a2542dbfd2a0965feb207da54a9a037cd3551 (patch) | |
tree | 5d15989aec5cc2073d78049d523a59f99790a0a5 /games-fps | |
parent | Adding demo to duke3d (diff) | |
download | historical-da0a2542dbfd2a0965feb207da54a9a037cd3551.tar.gz historical-da0a2542dbfd2a0965feb207da54a9a037cd3551.tar.bz2 historical-da0a2542dbfd2a0965feb207da54a9a037cd3551.zip |
Adding demo. Bug #161684
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/duke3d/ChangeLog | 7 | ||||
-rw-r--r-- | games-fps/duke3d/Manifest | 26 | ||||
-rw-r--r-- | games-fps/duke3d/duke3d-20040817-r2.ebuild | 134 | ||||
-rw-r--r-- | games-fps/duke3d/files/digest-duke3d-20040817-r2 | 6 |
4 files changed, 168 insertions, 5 deletions
diff --git a/games-fps/duke3d/ChangeLog b/games-fps/duke3d/ChangeLog index 2828eb6e0afd..d6728b360737 100644 --- a/games-fps/duke3d/ChangeLog +++ b/games-fps/duke3d/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-fps/duke3d # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.26 2007/03/12 14:37:15 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.27 2007/07/02 19:59:26 tupone Exp $ + +*duke3d-20040817-r2 (02 Jul 2007) + + 02 Jul 2007; <tupone@gentoo.org> +duke3d-20040817-r2.ebuild: + Adding demo. Bug #161684 by Paul Bredbury 12 Mar 2007; Marius Mauch <genone@gentoo.org> duke3d-20040817.ebuild, duke3d-20040817-r1.ebuild: diff --git a/games-fps/duke3d/Manifest b/games-fps/duke3d/Manifest index 6f8b290eb2e3..2c7cd06adef4 100644 --- a/games-fps/duke3d/Manifest +++ b/games-fps/duke3d/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX 20040817-credits.patch 1267 RMD160 bef48612e6e7176e1f7a252bfd837f177814e80b SHA1 2ec3f180611c45c7fe29ab2ccaa2d35822dc1ef3 SHA256 ea4d7540790ea937d97d5e87abdfa893e58b699fcb16abb30e84529edce061a9 MD5 6ba6bae3aa96076fbb7dc72e06d93d3d files/20040817-credits.patch 1267 RMD160 bef48612e6e7176e1f7a252bfd837f177814e80b files/20040817-credits.patch 1267 @@ -30,15 +33,20 @@ AUX network.cfg 398 RMD160 4452e8b8a99f0e08b192f2418ff8324c4bce8a7e SHA1 e9e81a2 MD5 d9b4e6eca1f10d7502ce7c8b360ba16b files/network.cfg 398 RMD160 4452e8b8a99f0e08b192f2418ff8324c4bce8a7e files/network.cfg 398 SHA256 fe5806712207d39812906034b76191effc96d7c6efa9c8bd9081e18fab76d7b5 files/network.cfg 398 +DIST 3dduke13.zip 5924374 RMD160 b2788f0ef7e8e88bcd1c4e56d22cd741109ea59a SHA1 72b832734d72c829cecaffd8d8ae0eb38995aeb3 SHA256 c67efd179022bc6d9bde54f404c707cbcbdc15423c20be72e277bc2bdddf3d0e DIST duke3d-20040817.tar.bz2 1509273 RMD160 d6d4896c6357e21543d68e322f18e8c0c00224d4 SHA1 795b4616c6840023d2f790de3aff2342ef40fa25 SHA256 c0dd72030f9c5b84aea3e4989831311c94ef21641d6a1fdb0f557d04076f641f EBUILD duke3d-20040817-r1.ebuild 3460 RMD160 6f7267887f4708b787c3dd170cd5eae230e11b50 SHA1 07a64a5f167d940e3dacce5830060c0e14e19ebf SHA256 77899d80e85cdf68b2a1f1ad7b060519f37a1ca633d8486d9fcbdba994adac5f MD5 bdb7fc3ed5f825c4c1976e40a6900645 duke3d-20040817-r1.ebuild 3460 RMD160 6f7267887f4708b787c3dd170cd5eae230e11b50 duke3d-20040817-r1.ebuild 3460 SHA256 77899d80e85cdf68b2a1f1ad7b060519f37a1ca633d8486d9fcbdba994adac5f duke3d-20040817-r1.ebuild 3460 -MISC ChangeLog 4120 RMD160 6e4c09229fb0b5dd95074165ae4cafdc52e2c60b SHA1 8ba86a382f8b12b9f97af06c8f4f99c515b25b6f SHA256 a30a92e0e85c7330fb87d816d16890763ace6473c18d1b79969000dc22a1bb03 -MD5 a9b6b02b339be8b573243b08f088d66c ChangeLog 4120 -RMD160 6e4c09229fb0b5dd95074165ae4cafdc52e2c60b ChangeLog 4120 -SHA256 a30a92e0e85c7330fb87d816d16890763ace6473c18d1b79969000dc22a1bb03 ChangeLog 4120 +EBUILD duke3d-20040817-r2.ebuild 3520 RMD160 5fd0eb0f8cfd70903a3b3a0c4e452da66f814537 SHA1 fee83141d4be0454388a6670705e1b5c7a877a5c SHA256 710e2194f50cad397e51ff578ab19688229f8eeeb2c1f8b4db18fafe7aa318c8 +MD5 e3042f1fb779131b25deec18ea6146d7 duke3d-20040817-r2.ebuild 3520 +RMD160 5fd0eb0f8cfd70903a3b3a0c4e452da66f814537 duke3d-20040817-r2.ebuild 3520 +SHA256 710e2194f50cad397e51ff578ab19688229f8eeeb2c1f8b4db18fafe7aa318c8 duke3d-20040817-r2.ebuild 3520 +MISC ChangeLog 4263 RMD160 47beabb2d049f444be017d23597d24fd48d4f943 SHA1 054103771b03507449ce111a21609196f3505e3e SHA256 eab3765c8c5b1a0e64f528439272bcd5dc5d4dc8447e031cfb9f77b074110233 +MD5 5efcecca722bf57c45e828f34bcac68e ChangeLog 4263 +RMD160 47beabb2d049f444be017d23597d24fd48d4f943 ChangeLog 4263 +SHA256 eab3765c8c5b1a0e64f528439272bcd5dc5d4dc8447e031cfb9f77b074110233 ChangeLog 4263 MISC metadata.xml 2594 RMD160 03b8a770a9e33a078974b028df60891c1d9f27ae SHA1 ab4714b9dcb1fa837c19e8432d6257c34784678c SHA256 1f9ff9ce704c510d6893b20e9db8bdeff02beae7076d8eb2d48e5a6344ac116a MD5 ecc5dda531ee4b1b2bba02e1e17d180e metadata.xml 2594 RMD160 03b8a770a9e33a078974b028df60891c1d9f27ae metadata.xml 2594 @@ -46,3 +54,13 @@ SHA256 1f9ff9ce704c510d6893b20e9db8bdeff02beae7076d8eb2d48e5a6344ac116a metadata MD5 cb2ae6358edd17a006e2710cff1c51ef files/digest-duke3d-20040817-r1 253 RMD160 6bd0909ebd86c76dfd263bb4a9ff8a5a3e2b18fc files/digest-duke3d-20040817-r1 253 SHA256 77b6a97da9f5c6344f9c509c52e44f28446e76b135c0d7bcc2fd6fc4031ba91d files/digest-duke3d-20040817-r1 253 +MD5 7921b49b0441eb3565959a67be1a1135 files/digest-duke3d-20040817-r2 473 +RMD160 00c84a0a50c848d46d067183c735b9d4f838ac35 files/digest-duke3d-20040817-r2 473 +SHA256 5e8a450cf2193e3ae6f449646123cba95a8a23069fd1d8ec60b63d804358d072 files/digest-duke3d-20040817-r2 473 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.7 (GNU/Linux) + +iD8DBQFGiVklRmMZkarFlIwRAsyaAKC+XMENjTFlTN6IxhrF0A+A94nCmwCgoRXN +zjo5BaPP1bTXkqQY9rz5vxw= +=mLvU +-----END PGP SIGNATURE----- diff --git a/games-fps/duke3d/duke3d-20040817-r2.ebuild b/games-fps/duke3d/duke3d-20040817-r2.ebuild new file mode 100644 index 000000000000..996a669d0b8d --- /dev/null +++ b/games-fps/duke3d/duke3d-20040817-r2.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20040817-r2.ebuild,v 1.1 2007/07/02 19:59:26 tupone Exp $ + +fromcvs=0 +ECVS_MODULE="duke3d" +if [[ ${fromcvs} -eq 1 ]] ; then + ECVS_PASS="anonymous" + ECVS_SERVER="icculus.org:/cvs/cvsroot" + inherit cvs eutils flag-o-matic games +else + inherit eutils flag-o-matic games +fi + +DEMO="3dduke13.zip" + +DESCRIPTION="Port of the original Duke Nukem 3D" +HOMEPAGE="http://icculus.org/projects/duke3d/" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + demo? ( + ftp://ftp.3drealms.com/share/${DEMO} + ftp://ftp.planetmirror.com/pub/gameworld/downloads/${DEMO} + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="hppa ppc x86" +IUSE="demo pic perl opengl" + +RDEPEND="media-libs/libsdl + media-libs/sdl-mixer + media-sound/timidity++ + media-sound/timidity-eawpatches + perl? ( dev-lang/perl ) + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + demo? ( app-arch/unzip ) + !pic? ( x86? ( dev-lang/nasm ) )" + +S="${WORKDIR}/${PN}" + +use_tf() { useq ${1} && echo "true" || echo "false"; } + +pkg_setup() { + if built_with_use dev-lang/perl ithreads ; then + eerror "${PN} needs perl compiled with ithreads use-flag disabled!" + die "perl with ithreads detected" + fi + games_pkg_setup +} + +src_unpack() { + if [[ ${fromcvs} -eq 1 ]] ; then + cvs_src_unpack + cd duke3d/source + ECVS_MODULE="buildengine" + cvs_src_unpack + else + unpack ${A} + fi + + if use demo ; then + unzip -qo DN3DSW13.SHR || die "unzip DN3DSW13.SHR failed" + fi + + # configure buildengine + cd "${S}/source/buildengine" + sed -i \ + -e "/^useperl := / s:=.*:= $(use_tf perl):" \ + -e "/^useopengl := / s:=.*:= $(use_tf opengl):" \ + -e "/^usephysfs := / s:=.*:= false:" \ + -e 's:-O3::' -e 's: -g : :' \ + -e 's:/usr/lib/perl5/i386-linux/CORE/libperl.a::' \ + Makefile \ + || die "sed build Makefile failed" + epatch "${FILESDIR}/${PV}-endian.patch" + + # configure duke3d + cd "${S}/source" + epatch "${FILESDIR}/${PV}-credits.patch" + # need to sync features with build engine + epatch "${FILESDIR}/${PV}-duke3d-makefile-opts.patch" + epatch "${FILESDIR}/${PV}-gcc34.patch" # compile fixes for GCC 3.4 + epatch "${FILESDIR}"/${P}-gcc4.patch + sed -i \ + -e "/^use_opengl := / s:=.*:= $(use_tf opengl):" \ + -e "/^use_physfs := / s:=.*:= false:" \ + Makefile \ + || die "sed duke3d Makefile failed" + if ! use pic && use x86 ; then + sed -i \ + -e 's:^#USE_ASM:USE_ASM:' buildengine/Makefile \ + || die "sed failed" + sed -i \ + -e '/^#use_asm := /s:#::' Makefile \ + || die "sed failed" + fi + + # causes crazy redefine errors with gcc-3.[2-4].x + replace-flags -O3 -O2 +} + +src_compile() { + emake -C source/buildengine OPTFLAGS="${CFLAGS}" || die "buildengine failed" + emake -C source OPTIMIZE="${CFLAGS}" || die "duke3d failed" +} + +src_install() { + games_make_wrapper duke3d "${GAMES_BINDIR}/duke3d.bin" "${GAMES_DATADIR}/${PN}" + newgamesbin source/duke3d duke3d.bin || die "newgamesbin failed" + + dodoc readme.txt + + cd testdata + insinto "${GAMES_DATADIR}/${PN}" + newins defs.con DEFS.CON + newins game.con GAME.CON + newins user.con USER.CON + newins "${FILESDIR}/network.cfg" network.cfg.template + if use demo ; then + doins "${WORKDIR}/DUKE3D.GRP" || die "doins DUKE3D.GRP failed" + fi + + insinto "${GAMES_SYSCONFDIR}" + doins "${FILESDIR}/duke3d.cfg" + dosym "${GAMES_SYSCONFDIR}/duke3d.cfg" "${GAMES_DATADIR}/${PN}/DUKE3D.CFG" + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + use demo || elog "Put the data files in ${GAMES_DATADIR}/${PN} before playing" +} diff --git a/games-fps/duke3d/files/digest-duke3d-20040817-r2 b/games-fps/duke3d/files/digest-duke3d-20040817-r2 new file mode 100644 index 000000000000..a69340056c46 --- /dev/null +++ b/games-fps/duke3d/files/digest-duke3d-20040817-r2 @@ -0,0 +1,6 @@ +MD5 04e4ca70b8a2d59ed56c451c5c1d5d39 3dduke13.zip 5924374 +RMD160 b2788f0ef7e8e88bcd1c4e56d22cd741109ea59a 3dduke13.zip 5924374 +SHA256 c67efd179022bc6d9bde54f404c707cbcbdc15423c20be72e277bc2bdddf3d0e 3dduke13.zip 5924374 +MD5 0f16c909d56dc9c7b3f8bdbd80b8ab45 duke3d-20040817.tar.bz2 1509273 +RMD160 d6d4896c6357e21543d68e322f18e8c0c00224d4 duke3d-20040817.tar.bz2 1509273 +SHA256 c0dd72030f9c5b84aea3e4989831311c94ef21641d6a1fdb0f557d04076f641f duke3d-20040817.tar.bz2 1509273 |