Initial import. Ebuilds by me. Closing bug #109825.
authorChris Gianelloni <wolf31o2@gentoo.org>
Mon, 24 Oct 2005 18:59:46 +0000 (18:59 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Mon, 24 Oct 2005 18:59:46 +0000 (18:59 +0000)
Package-Manager: portage-2.0.53_rc5

games-fps/quake4-bin/ChangeLog [new file with mode: 0644]
games-fps/quake4-bin/Manifest [new file with mode: 0644]
games-fps/quake4-bin/files/digest-quake4-bin-1.0.2147.12 [new file with mode: 0644]
games-fps/quake4-bin/metadata.xml [new file with mode: 0644]
games-fps/quake4-bin/quake4-bin-1.0.2147.12.ebuild [new file with mode: 0644]

diff --git a/games-fps/quake4-bin/ChangeLog b/games-fps/quake4-bin/ChangeLog
new file mode 100644 (file)
index 0000000..3e2a3fc
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for games-fps/quake4-bin
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/ChangeLog,v 1.1 2005/10/24 18:59:46 wolf31o2 Exp $
+
+*quake4-bin-1.0.2147.12 (24 Oct 2005)
+
+  24 Oct 2005; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+  +quake4-bin-1.0.2147.12.ebuild:
+  Initial import.  Ebuilds by me.  Closing bug #109825.
+
diff --git a/games-fps/quake4-bin/Manifest b/games-fps/quake4-bin/Manifest
new file mode 100644 (file)
index 0000000..acb2f4f
--- /dev/null
@@ -0,0 +1,4 @@
+MD5 1a1bf2524f954a055b1cb9ffd091e37b ChangeLog 414
+MD5 fd1fca5af283abd467acdf1d637f68b3 files/digest-quake4-bin-1.0.2147.12 79
+MD5 67bc63233267502c576573939ca95ae9 metadata.xml 1046
+MD5 c28c767caf3ef3cd55de2d3f5d17046d quake4-bin-1.0.2147.12.ebuild 2675
diff --git a/games-fps/quake4-bin/files/digest-quake4-bin-1.0.2147.12 b/games-fps/quake4-bin/files/digest-quake4-bin-1.0.2147.12
new file mode 100644 (file)
index 0000000..ce00fd9
--- /dev/null
@@ -0,0 +1 @@
+MD5 96ac1b993dafe5d255a7ee85d07187db quake4-linux-1.0.2147.12.x86.run 19216927
diff --git a/games-fps/quake4-bin/metadata.xml b/games-fps/quake4-bin/metadata.xml
new file mode 100644 (file)
index 0000000..c833f8d
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+In a desparate war for Earth's survival against and unrelenting alient enemy,
+the only way to defeat them is to become one of them.
+
+Earth is under seige by the Strogg, a barbaric alien race moving through the
+universe consuming, recycling and annihilating any civilization in their path.
+In a deperate attempt to survive, an armada of Earth's finest warriors is sent
+to take the battle to the Strogg home planet.
+
+You are Matthow Kane, an elite member of Rhino Squad and Eath's valiant invasion
+force.  Fight alone, with your squad, or in hover tanks and mechanized walkers
+as you engage in a heroic mission the the heart of the Strogg war machine.
+
+Quake 4 is the fourth installment of the extremely popular and successful Quake
+series by id software.  This game is commercial software, and requires the data
+from a retail copy of the game to play.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/quake4-bin/quake4-bin-1.0.2147.12.ebuild b/games-fps/quake4-bin/quake4-bin-1.0.2147.12.ebuild
new file mode 100644 (file)
index 0000000..e260232
--- /dev/null
@@ -0,0 +1,93 @@
+# Copyright 1999-2005 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.0.2147.12.ebuild,v 1.1 2005/10/24 18:59:46 wolf31o2 Exp $
+
+inherit eutils games
+
+DESCRIPTION="Sequel to Quake 2, an Id 3D first-person shooter"
+HOMEPAGE="http://www.quake4.com/"
+SRC_URI="mirror://3dgamers/quake4/quake4-linux-${PV}.x86.run
+       ftp://ftp.idsoftware.com/idstuff/quake4/linux/quake4-linux-${PV}.x86.run
+       ftp://dl.xs4all.nl/pub/mirror/idsoftware/idstuff/quake4/linux/quake4-linux-${PV}.x86.run
+       http://filebase.gmpf.de/quake4/quake4-linux-${PV}.x86.run
+       http://www.holarse.de/mirror/quake4-linux-${PV}.x86.run"
+
+LICENSE="QUAKE4"
+SLOT="0"
+KEYWORDS="-* ~x86 ~amd64"
+IUSE="cdinstall alsa opengl dedicated"
+RESTRICT="nostrip"
+
+DEPEND="app-arch/bzip2
+       app-arch/tar"
+RDEPEND="sys-libs/glibc
+       !amd64? ( media-libs/libsdl )
+       amd64? ( app-emulation/emul-linux-x86-sdl
+               app-emulation/emul-linux-x86-xlibs )
+       opengl? ( virtual/opengl )
+       dedicated? ( app-misc/screen )
+       alsa? ( >=media-libs/alsa-lib-1.0.6 )
+       cdinstall? ( games-fps/quake4-data )"
+
+S=${WORKDIR}
+
+GAMES_CHECK_LICENSE="yes"
+dir=${GAMES_PREFIX_OPT}/quake4
+Ddir=${D}/${dir}
+
+src_unpack() {
+       unpack_makeself quake4-linux-${PV}.x86.run
+}
+
+src_install() {
+       insinto "${dir}"
+       doins License.txt README q4icon.bmp us/version.info # CHANGES
+       exeinto "${dir}"
+       doexe openurl.sh || die "openurl.sh"
+       if use x86; then
+               doexe bin/Linux/x86/quake4.x86 bin/Linux/x86/q4ded.x86 \
+                       bin/Linux/x86/libgcc_s.so.1 bin/Linux/x86/libstdc++.so.5 \
+                       || die "doexe x86 exes/libs"
+       elif use amd64; then
+               doexe bin/Linux/x86_64/quake4.x86 bin/Linux/x86_64/q4ded.x86 \
+                       bin/Linux/x86_64/libgcc_s.so.1 bin/Linux/x86_64/libstdc++.so.5 \
+                       || die "doexe amd64 exes/libs"
+       else
+               die "Cannot copy executables!"
+       fi
+
+       insinto "${dir}"/pb
+       doins pb/* || die "doins pb"
+       insinto "${dir}"/q4base
+       if use dedicated
+       then
+               doins q4base/* || die "doins q4base"
+               games_make_wrapper quake4-ded ./q4ded.x86 "${dir}" "${dir}"
+       else
+               doins q4base/game100.pk4 || die "doins q4base"
+       fi
+       doins us/q4base/* || die "installing us/q4base/*"
+
+       if use opengl
+       then
+               games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}"
+               newicon q4icon.bmp quake4.bmp || die "copying icon"
+               make_desktop_entry quake4 "Quake IV" quake4.bmp
+       fi
+
+       prepgamesdirs
+}
+
+pkg_postinst() {
+       games_pkg_postinst
+
+       if ! use cdinstall; then
+               einfo "You need to copy pak001.pk4 through pak012.pk4, along with"
+               einfo "zpak*.pk4 from either your installation media or your hard drive"
+               einfo "to ${dir}/q4base before running the game."
+       fi
+       echo
+       einfo "To play the game run:"
+       einfo " quake4"
+       echo
+}