summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2007-12-07 04:58:32 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2007-12-07 04:58:32 +0000
commit54cc171f8fdc7891ce018ae99d1609124663d617 (patch)
tree1a51ca9171ad336c5307b630d3032bf5aa62a612 /games-fps
parentIn the main portage tree (diff)
downloadje_fro-54cc171f8fdc7891ce018ae99d1609124663d617.tar.gz
je_fro-54cc171f8fdc7891ce018ae99d1609124663d617.tar.bz2
je_fro-54cc171f8fdc7891ce018ae99d1609124663d617.zip
etqw ebuilds shamelessly stolen from wolf31o2's overlay
svn path=/; revision=140
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/etqw-bin/Manifest8
-rw-r--r--games-fps/etqw-bin/etqw-bin-1.2.5.ebuild119
-rw-r--r--games-fps/etqw-bin/files/digest-etqw-bin-1.2.53
-rw-r--r--games-fps/etqw-data/Manifest14
-rw-r--r--games-fps/etqw-data/etqw-data-1.0.ebuild58
-rw-r--r--games-fps/etqw-data/etqw-data-1.1-r8.ebuild78
-rw-r--r--games-fps/etqw-data/files/digest-etqw-data-1.00
7 files changed, 195 insertions, 85 deletions
diff --git a/games-fps/etqw-bin/Manifest b/games-fps/etqw-bin/Manifest
new file mode 100644
index 0000000..a563767
--- /dev/null
+++ b/games-fps/etqw-bin/Manifest
@@ -0,0 +1,8 @@
+DIST ETQW-client-1.2-full.r5.x86.run 286138270 RMD160 d898e0ef81e62d3ec68a60274974df762da70f4b SHA1 bc2abcdd7e773fe5234de305ca36e96fe467f686 SHA256 9cb1f1f4c9d60d5891a37dcfba711db0c3de6793a4a6017e6fc66e062620e7f0
+EBUILD etqw-bin-1.2.5.ebuild 3063 RMD160 fce3e59a258861f0a86fb9e7175fd74bb21ea5ff SHA1 c6511df7931d28caf35a4a24c5c8317ae796cf82 SHA256 e63f2f30b51fc21c468288554edf055f6314e35abb8f054817e392bac51d32cc
+MD5 653c6159cf6a56706a915f6c49dd8140 etqw-bin-1.2.5.ebuild 3063
+RMD160 fce3e59a258861f0a86fb9e7175fd74bb21ea5ff etqw-bin-1.2.5.ebuild 3063
+SHA256 e63f2f30b51fc21c468288554edf055f6314e35abb8f054817e392bac51d32cc etqw-bin-1.2.5.ebuild 3063
+MD5 73b9de8cd38c54c091a94c6924d6737f files/digest-etqw-bin-1.2.5 283
+RMD160 15ede824712bae8f4fe43aa9aab209cd78172557 files/digest-etqw-bin-1.2.5 283
+SHA256 b8a8bb041ddeafaae3a0335bfff73c34c00b2dd551d17b958805b642c84df58f files/digest-etqw-bin-1.2.5 283
diff --git a/games-fps/etqw-bin/etqw-bin-1.2.5.ebuild b/games-fps/etqw-bin/etqw-bin-1.2.5.ebuild
new file mode 100644
index 0000000..6f136f0
--- /dev/null
+++ b/games-fps/etqw-bin/etqw-bin-1.2.5.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2.ebuild,v 1.2 2007/08/20 17:23:52 wolf31o2 Exp $
+
+# Shamelessly stolen from wolf31o2's overlay
+
+inherit eutils versionator games
+
+VER="$(get_version_component_range 1-2)"
+REV="$(get_version_component_range 3-3)"
+MY_PV="${VER}-full.r${REV}"
+MY_BODY="ETQW-client-${MY_PV}.x86"
+
+DESCRIPTION="Enemy Territory"
+HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
+SRC_URI="ftp://ftp.idsoftware.com/idstuff/etqw/${MY_BODY}.run"
+
+#LICENSE="ETQW"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="alsa cdinstall dedicated opengl"
+
+RESTRICT="strip"
+
+UIDEPEND="virtual/opengl
+ x86? (
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ media-libs/libsdl )
+ amd64? (
+ app-emulation/emul-linux-x86-compat
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-xlibs
+ || (
+ >=app-emulation/emul-linux-x86-xlibs-7.0
+ x11-drivers/nvidia-drivers
+ >=x11-drivers/ati-drivers-8.8.25-r1 ) )
+ alsa? ( >=media-libs/alsa-lib-1.0.6 )"
+
+RDEPEND="sys-libs/glibc
+ dedicated? ( app-misc/screen !games-server/etqw-ded )
+ amd64? ( app-emulation/emul-linux-x86-baselibs )
+ cdinstall? ( games-fps/etqw-data )
+ opengl? ( ${UIDEPEND} )
+ !dedicated? ( !opengl? ( ${UIDEPEND} ) )"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/etqw
+Ddir=${D}/${dir}
+
+#GAMES_CHECK_LICENSE="yes"
+
+QA_TEXTRELS="${dir:1}/pb/pbag.so
+ ${dir:1}/pb/pbags.so
+ ${dir:1}/pb/pbcl.so
+ ${dir:1}/pb/pbcls.so
+ ${dir:1}/pb/pbsv.so"
+QA_EXECSTACK="${dir:1}/etqw.x86
+ ${dir:1}/etqwded.x86
+ ${dir:1}/libgcc_s.so.1
+ ${dir:1}/libjpeg.so.62
+ ${dir:1}/libstdc++.so.6
+ ${dir:1}/libCgx86.so"
+
+src_unpack() {
+ # There is a warning which changes the exit code and causes "unzip" to not
+ # return an exit code of "0", so there's no || die here. If anybody wants
+ # to take the time to look into this and actually fix it, I'm open to
+ # suggestions. Otherwise, this is staying like this.
+ unzip -qq ${DISTDIR}/${A}
+ mv data/* . || die
+
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r pb base || die "doins pb base"
+
+ exeinto "${dir}"
+ doexe openurl.sh || die "openurl.sh"
+ doexe {etqw.x86,libCgx86.so,*.so.?} \
+ || die "doexe x86 exes/libs"
+
+ insinto "${dir}"/base
+ doins base/* || die "doins base"
+
+ if use dedicated ; then
+ doexe etqwded.x86 || die "doexe etqwded.x86"
+ games_make_wrapper etqw-ded ./etqwded.x86 "${dir}" "${dir}"
+ fi
+
+ if use opengl || ! use dedicated ; then
+ newicon etqw_icon.png etqw.png || die "doicon"
+ games_make_wrapper etqw "./etqw.x86" "${dir}" "${dir}"
+ make_desktop_entry etqw "Enemy Territory: Quake Wars" etqw.png
+ fi
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if ! use cdinstall
+ then
+ elog "You need to copy pak00*.pk4, zpak_english000.pk4 and the megatextures"
+ elog "directory from either your installation media or your hard drive"
+ elog "to ${dir}/base before running the game."
+ echo
+ fi
+
+ if use opengl || !use dedicated ; then
+ elog "To play the game, run: etqw"
+ echo
+ fi
+}
+
diff --git a/games-fps/etqw-bin/files/digest-etqw-bin-1.2.5 b/games-fps/etqw-bin/files/digest-etqw-bin-1.2.5
new file mode 100644
index 0000000..0fcbf12
--- /dev/null
+++ b/games-fps/etqw-bin/files/digest-etqw-bin-1.2.5
@@ -0,0 +1,3 @@
+MD5 35200bbfc7737fdeb24432ec6085c1fc ETQW-client-1.2-full.r5.x86.run 286138270
+RMD160 d898e0ef81e62d3ec68a60274974df762da70f4b ETQW-client-1.2-full.r5.x86.run 286138270
+SHA256 9cb1f1f4c9d60d5891a37dcfba711db0c3de6793a4a6017e6fc66e062620e7f0 ETQW-client-1.2-full.r5.x86.run 286138270
diff --git a/games-fps/etqw-data/Manifest b/games-fps/etqw-data/Manifest
index 6589db7..f843731 100644
--- a/games-fps/etqw-data/Manifest
+++ b/games-fps/etqw-data/Manifest
@@ -1,7 +1,7 @@
-EBUILD etqw-data-1.1-r8.ebuild 2317 RMD160 aaf9095677d0ed59f709e7bb9dfc20dccd2b6c53 SHA1 f5bf140d91e4848433a1251d497634d51a68c142 SHA256 6d11da47e7e44edd8b00f14d27f28dd86ac4dbe876511e136bf3827daca53c99
-MD5 811b196c41285cf59ce878bfe0ea6727 etqw-data-1.1-r8.ebuild 2317
-RMD160 aaf9095677d0ed59f709e7bb9dfc20dccd2b6c53 etqw-data-1.1-r8.ebuild 2317
-SHA256 6d11da47e7e44edd8b00f14d27f28dd86ac4dbe876511e136bf3827daca53c99 etqw-data-1.1-r8.ebuild 2317
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-etqw-data-1.1-r8 0
-RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-etqw-data-1.1-r8 0
-SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-etqw-data-1.1-r8 0
+EBUILD etqw-data-1.0.ebuild 1239 RMD160 f498f84cf27b09ce61213a7503a888649327b52f SHA1 dfeaa267aea7e7e3ca4c86d85f183aa4ef0f7c63 SHA256 fdb00549bd6d1e802120853823423c9bcdea983a36fa500ea2378364c202f74e
+MD5 1d1fc5752df2c943c24e8d59b05b0222 etqw-data-1.0.ebuild 1239
+RMD160 f498f84cf27b09ce61213a7503a888649327b52f etqw-data-1.0.ebuild 1239
+SHA256 fdb00549bd6d1e802120853823423c9bcdea983a36fa500ea2378364c202f74e etqw-data-1.0.ebuild 1239
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-etqw-data-1.0 0
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-etqw-data-1.0 0
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-etqw-data-1.0 0
diff --git a/games-fps/etqw-data/etqw-data-1.0.ebuild b/games-fps/etqw-data/etqw-data-1.0.ebuild
new file mode 100644
index 0000000..c3e57a5
--- /dev/null
+++ b/games-fps/etqw-data/etqw-data-1.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2.ebuild,v 1.2 2007/08/20 17:23:52 wolf31o2 Exp $
+
+inherit eutils games
+
+DESCRIPTION="Enemy Territory: Quake Wars Data Files"
+HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
+SRC_URI=""
+
+#LICENSE="ETQW"
+SLOT="0"
+KEYWORDS="amd64 x86"
+RESTRICT=""
+IUSE="videos"
+
+S=${WORKDIR}
+dir=${GAMES_PREFIX_OPT}/etqw
+Ddir=${D}/${dir}
+
+#GAMES_CHECK_LICENSE="yes"
+
+pkg_setup() {
+ export CDROM_NAME_SET=("Existing Install" "Quake Wars CD")
+ cdrom_get_cds pak004.pk4:Setup/Data/base/zpak_english000.pk4
+
+ if [[ $CDROM_SET -ne 0 && $CDROM_SET -ne 1 ]] ; then
+ die "Error locating data files.";
+ fi
+}
+
+src_install() {
+ insinto "${dir}"/base
+
+ if [[ $CDROM_SET -eq 1 ]] ; then
+ ZPATH=${CDROM_ROOT}/Setup/Data/base/
+ else
+ ZPATH=${CDROM_ROOT}/
+ fi
+
+ for i in zpak_english000.pk4 megatextures pak00*.pk4
+ do
+ einfo "Copying ${i}..."
+ doins ${ZPATH}/${i} || die "unable to find/copy ${i}."
+ done
+
+ if use videos ; then
+ einfo "Copying video..."
+ doins -r ${ZPATH}/video || die "unable to find/copy video file."
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+}
+
diff --git a/games-fps/etqw-data/etqw-data-1.1-r8.ebuild b/games-fps/etqw-data/etqw-data-1.1-r8.ebuild
deleted file mode 100644
index f582a63..0000000
--- a/games-fps/etqw-data/etqw-data-1.1-r8.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils games
-
-DESCRIPTION="An objective-driven, class-based first person shooter set in the QUAKE Universe."
-HOMEPAGE="http://www.enemyterritory.com/main.html"
-SRC_URI=""
-
-LICENSE="ETQW"
-SLOT="0"
-KEYWORDS="-* ~amd64 ~x86"
-IUSE=""
-RESTRICT="strip"
-
-DEPEND="app-arch/bzip2
- app-arch/tar"
-RDEPEND=""
-PDEPEND="games-fps/etqw-bin"
-
-S=${WORKDIR}
-
-GAMES_CHECK_LICENSE="yes"
-dir=${GAMES_PREFIX_OPT}/etqw
-Ddir=${D}/${dir}
-
-src_install() {
- cdrom_get_cds Setup/Data/q4base/pak012.pk4 \
- Setup/Data/base/pak000.pk4 \
- Setup/Data/base/pak001.pk4 \
- Setup/Data/base/pak002.pk4 \
- Setup/Data/base/pak003.pk4 \
- Setup/Data/base/pak004.pk4 \
- Setup/Data/base/zpak_english000/pk4 \
- Setup/Data/base/megatextures/area22_lit.mega \
- Setup/Data/base/megatextures/ark_lit.mega \
- Setup/Data/base/megatextures/canyon_lit.mega \
- Setup/Data/base/megatextures/island_lit.mega \
- Setup/Data/base/megatextures/outskirts_lit.mega \
- Setup/Data/base/megatextures/quarry_lit.mega \
- Setup/Data/base/megatextures/refinery_lit.mega \
- Setup/Data/base/megatextures/salvage_lit.mega \
- Setup/Data/base/megatextures/sewer_lit.mega \
- Setup/Data/base/megatextures/slipgate_lit.mega \
- Setup/Data/base/megatextures/valley_lit.mega \
- Setup/Data/base/megatextures/volcano_lit.mega
-
- insinto "${dir}"/base
- einfo "Copying files from Disk 1..."
- doins ${CDROM_ROOT}/Setup/Data/base/pak00{0,1,2,3,4}.pk4 \
- ${CDROM_ROOT}/Setup/Data/base/zpak*.pk4 \
- ${CDROM_ROOT}/Setup/Data/base/megatextures/* \
- || die "copying pak001->pak004 and zpack*"
-# cdrom_load_next_cd
-# einfo "Copying files from Disk 2..."
-# doins ${CDROM_ROOT}/Setup/Data/q4base/pak00{1,2,3}.pk4 \
-# || die "copying pak001->pak003"
-# cdrom_load_next_cd
-# einfo "Copying files from Disk 3..."
-# doins ${CDROM_ROOT}/Setup/Data/q4base/pak00{4,5,6}.pk4 \
-# || die "copying pak004->pak006"
-# cdrom_load_next_cd
-# einfo "Copying files from Disk 4..."
-# doins ${CDROM_ROOT}/Setup/Data/q4base/pak00{7,8,9}.pk4 \
-# || die "copying pak007->pak009"
-
- find ${Ddir} -exec touch '{}' \;
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
- elog "This is just the data portion of the game. You need to merge"
- elog "games-fps/etqw-bin to play."
- echo
-}
diff --git a/games-fps/etqw-data/files/digest-etqw-data-1.0 b/games-fps/etqw-data/files/digest-etqw-data-1.0
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/games-fps/etqw-data/files/digest-etqw-data-1.0