summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-02-11 00:55:34 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-02-11 00:55:34 +0000
commit8458c1b6204b2927ca51c7abc8ea327c133929a2 (patch)
tree4ce3647e5d69838870e7a47bf6b4ddb1750e8121 /games-action/descent3-demo/descent3-demo-1.4.0a.ebuild
parentAdded sys-libs/glibc to RDEPEND. (diff)
downloadgentoo-2-8458c1b6204b2927ca51c7abc8ea327c133929a2.tar.gz
gentoo-2-8458c1b6204b2927ca51c7abc8ea327c133929a2.tar.bz2
gentoo-2-8458c1b6204b2927ca51c7abc8ea327c133929a2.zip
Initial import. Ebuild by Paul Bredbury <brebs@sent.com>. Closing bug #120371.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'games-action/descent3-demo/descent3-demo-1.4.0a.ebuild')
-rw-r--r--games-action/descent3-demo/descent3-demo-1.4.0a.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild b/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild
new file mode 100644
index 000000000000..aa014344e465
--- /dev/null
+++ b/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild,v 1.1 2006/02/11 00:55:34 wolf31o2 Exp $
+
+inherit eutils games
+
+DESCRIPTION="Indoor/outdoor 3D combat with evil robotic mining spacecraft"
+HOMEPAGE="http://www.lokigames.com/products/descent3/"
+SRC_URI="mirror://lokigames/loki_demos/${PN}.run"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RESTRICT="nostrip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="sys-libs/glibc
+ virtual/opengl
+ x86? (
+ || (
+ (
+ x11-libs/libX11
+ x11-libs/libXext )
+ virtual/x11 )
+ =media-libs/libsdl-1.2* )
+ amd64? (
+ app-emulation/emul-linux-x86-xlibs
+ app-emulation/emul-linux-x86-compat
+ app-emulation/emul-linux-x86-sdl
+ >=sys-libs/lib-compat-loki-0.2 )"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ local dir="${GAMES_PREFIX_OPT}/${PN}"
+ local demo="data/demos/descent3_demo"
+ local exe="descent3_demo.x86"
+
+ loki_patch patch.dat data/ || die "loki patch failed"
+
+ insinto "${dir}"
+ exeinto "${dir}"
+ doins -r "${demo}"/* || die "doins failed"
+ doexe "${demo}/${exe}" || die "doexe failed"
+
+ # Required directory
+ keepdir "${dir}"/missions
+
+ games_make_wrapper ${PN} "./${exe}" "${dir}"
+ newicon "${demo}"/launch/box.png ${PN}.png || die "newicon failed"
+ make_desktop_entry ${PN} "Descent 3 (Demo)" ${PN}.png
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ einfo "To play the game run:"
+ einfo " descent3-demo"
+ echo
+ einfo "If the game appears blank, then run it windowed with:"
+ einfo " descent3-demo -w"
+ echo
+
+ games_pkg_postinst
+}
+