summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-12-01 00:48:59 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-12-01 00:48:59 +0000
commitc9fe818a5abdcac3dc6c10c4a2a94b09be4819ca (patch)
treed6f2e7657720bf51d62f05f5c80a83afa2353b53 /games-fps
parentNew ebuild, based on a contribution from Andy Dustman <farcepest@gmail.com> (... (diff)
downloadgentoo-2-c9fe818a5abdcac3dc6c10c4a2a94b09be4819ca.tar.gz
gentoo-2-c9fe818a5abdcac3dc6c10c4a2a94b09be4819ca.tar.bz2
gentoo-2-c9fe818a5abdcac3dc6c10c4a2a94b09be4819ca.zip
Initial import. Ebuild by me.
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/quake4-demo/ChangeLog10
-rw-r--r--games-fps/quake4-demo/Manifest3
-rw-r--r--games-fps/quake4-demo/files/digest-quake4-demo-1.01
-rw-r--r--games-fps/quake4-demo/metadata.xml21
-rw-r--r--games-fps/quake4-demo/quake4-demo-1.0.ebuild89
5 files changed, 124 insertions, 0 deletions
diff --git a/games-fps/quake4-demo/ChangeLog b/games-fps/quake4-demo/ChangeLog
new file mode 100644
index 000000000000..ee19458a4aa8
--- /dev/null
+++ b/games-fps/quake4-demo/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-fps/quake4-demo
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-demo/ChangeLog,v 1.1 2005/12/01 00:48:59 wolf31o2 Exp $
+
+*quake4-demo-1.0 (01 Dec 2005)
+
+ 01 Dec 2005; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +quake4-demo-1.0.ebuild:
+ Initial import. Ebuild by me.
+
diff --git a/games-fps/quake4-demo/Manifest b/games-fps/quake4-demo/Manifest
new file mode 100644
index 000000000000..85733b73f5b4
--- /dev/null
+++ b/games-fps/quake4-demo/Manifest
@@ -0,0 +1,3 @@
+MD5 67bc63233267502c576573939ca95ae9 metadata.xml 1046
+MD5 1ca1696086d05e008cff836c8a9e57ba quake4-demo-1.0.ebuild 2479
+MD5 7f72ddfd8693c738d5fdb76d17fae9eb files/digest-quake4-demo-1.0 77
diff --git a/games-fps/quake4-demo/files/digest-quake4-demo-1.0 b/games-fps/quake4-demo/files/digest-quake4-demo-1.0
new file mode 100644
index 000000000000..753adc10fea8
--- /dev/null
+++ b/games-fps/quake4-demo/files/digest-quake4-demo-1.0
@@ -0,0 +1 @@
+MD5 98ebbb835cc71ea29062cd2b4a139a46 quake4-linux-1.0-demo.x86.run 337276597
diff --git a/games-fps/quake4-demo/metadata.xml b/games-fps/quake4-demo/metadata.xml
new file mode 100644
index 000000000000..83edc89772ba
--- /dev/null
+++ b/games-fps/quake4-demo/metadata.xml
@@ -0,0 +1,21 @@
+<?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 is the demo version of the commercial game.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/quake4-demo/quake4-demo-1.0.ebuild b/games-fps/quake4-demo/quake4-demo-1.0.ebuild
new file mode 100644
index 000000000000..5bceb9fced68
--- /dev/null
+++ b/games-fps/quake4-demo/quake4-demo-1.0.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-demo/quake4-demo-1.0.ebuild,v 1.1 2005/12/01 00:48:59 wolf31o2 Exp $
+
+inherit eutils games
+
+MY_P="quake4-linux-${PV}-demo"
+DESCRIPTION="Sequel to Quake 2, an Id 3D first-person shooter"
+HOMEPAGE="http://www.quake4game.com/"
+SRC_URI="http://www.3ddownloads.com/Action/Quake%204/Demos/${MY_P}.x86.run"
+# mirror://3dgamers/quake4/${MY_P}.x86.run
+# ftp://ftp.idsoftware.com/idstuff/quake4/linux/${MY_P}.x86.run
+# ftp://dl.xs4all.nl/pub/mirror/idsoftware/idstuff/quake4/linux/${MY_P}.x86.run
+# http://filebase.gmpf.de/quake4/${MY_P}.x86.run
+# http://www.holarse.de/mirror/${MY_P}.x86.run"
+
+LICENSE="QUAKE4"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="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}/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ insinto "${dir}"
+ doins License.txt README q4icon.bmp 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/*.pk4 || die "doins q4base"
+ fi
+# doins us/q4base/* || die "installing us/q4base/*"
+
+ if use opengl
+ then
+ games_make_wrapper ${PN} ./quake4.x86 "${dir}" "${dir}"
+ newicon q4icon.bmp ${PN}.bmp || die "copying icon"
+ make_desktop_entry ${PN} "Quake IV (Demo)" /usr/share/applications/${PN}.bmp
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ einfo "To play the game run:"
+ einfo " quake4"
+ echo
+}