summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/etqw-bin')
-rw-r--r--games-fps/etqw-bin/ChangeLog8
-rw-r--r--games-fps/etqw-bin/Manifest4
-rw-r--r--games-fps/etqw-bin/etqw-bin-1.2.5.ebuild117
-rw-r--r--games-fps/etqw-bin/metadata.xml9
4 files changed, 138 insertions, 0 deletions
diff --git a/games-fps/etqw-bin/ChangeLog b/games-fps/etqw-bin/ChangeLog
new file mode 100644
index 0000000..8d13c2e
--- /dev/null
+++ b/games-fps/etqw-bin/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for games-fps/etqw-bin
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 12 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> ChangeLog:
+ Initial import. Original ebuild by Jon Roadley-Battin
+ <jon.roadleybattin@gmail.com> in bug #196452 and modified by me.
+
diff --git a/games-fps/etqw-bin/Manifest b/games-fps/etqw-bin/Manifest
new file mode 100644
index 0000000..7fb8ab4
--- /dev/null
+++ b/games-fps/etqw-bin/Manifest
@@ -0,0 +1,4 @@
+DIST ETQW-client-1.2-full.r5.x86.run 286138270 RMD160 d898e0ef81e62d3ec68a60274974df762da70f4b SHA1 bc2abcdd7e773fe5234de305ca36e96fe467f686 SHA256 9cb1f1f4c9d60d5891a37dcfba711db0c3de6793a4a6017e6fc66e062620e7f0
+EBUILD etqw-bin-1.2.5.ebuild 3017 RMD160 4a4e5c2211f464d8f9eae9967d3c2c407123b7c6 SHA1 fcb0c2806447342b9ed5d191e81e8d84310e5db4 SHA256 3bfa0c0a8f699e12f8df2fd6683b0cd5c352f56afc25a1990954a2a95c41583d
+MISC ChangeLog 308 RMD160 6ba6cc998e580357b26b64870ce059bc4a6a1a34 SHA1 5e963b0247641e67ee6eb500b1a837b2246b5161 SHA256 26321386930450c870c49824b5f42f34ab6fbd8edab09af7e23606f022b10f3d
+MISC metadata.xml 254 RMD160 877a1dc36df2be58926bc51041093feafdefe429 SHA1 45f0334cd127c4a1b4ece41f7098ab70046e378a SHA256 2916aab684ec3908fffb515065eeb2c481cde563380b682646add582bed5f535
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..db2b7e5
--- /dev/null
+++ b/games-fps/etqw-bin/etqw-bin-1.2.5.ebuild
@@ -0,0 +1,117 @@
+# 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 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/metadata.xml b/games-fps/etqw-bin/metadata.xml
new file mode 100644
index 0000000..fe08918
--- /dev/null
+++ b/games-fps/etqw-bin/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+ <email>wolf31o2@gentoo.org</email>
+ <name>Chris Gianelloni</name>
+</maintainer>
+</pkgmetadata>