summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-02-08 21:33:38 +0000
committerMike Frysinger <vapier@gentoo.org>2004-02-08 21:33:38 +0000
commitbe2227156de0f904a328045347ba254e6bf08adf (patch)
tree125f73356f745f747e9af630521fac99d3f8afe1 /games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild
parentx86 stable (Manifest recommit) (diff)
downloadgentoo-2-be2227156de0f904a328045347ba254e6bf08adf.tar.gz
gentoo-2-be2227156de0f904a328045347ba254e6bf08adf.tar.bz2
gentoo-2-be2227156de0f904a328045347ba254e6bf08adf.zip
new cdrom interface
Diffstat (limited to 'games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild')
-rw-r--r--games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild b/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild
index 4acb73c2fe36..2a0c6a0ca0ae 100644
--- a/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild
+++ b/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild
@@ -1,10 +1,9 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild,v 1.2 2004/02/08 21:33:38 vapier Exp $
-inherit games
+inherit games eutils
-IUSE=""
DESCRIPTION="Soldier of Fortune - First-person shooter based on the mercinary trade"
HOMEPAGE="http://www.lokigames.com/products/sof/"
SRC_URI="ftp://ftp.planetmirror.com/pub/lokigames/updates/sof/sof-${PV}-cdrom-x86.run
@@ -26,6 +25,7 @@ Ddir=${D}/${dir}
pkg_setup() {
ewarn "The installed game takes about 725MB of space!"
+ cdrom_get_cds sof.xpm
games_pkg_setup
}
@@ -35,19 +35,17 @@ src_unpack() {
src_install() {
dodir ${dir}
- games_get_cd sof.xpm
- games_verify_cd "Soldier of Fortune"
einfo "Copying files... this may take a while..."
exeinto /opt/soldieroffortune
- doexe ${GAMES_CD}/bin/x86/glibc-2.1/sof
+ doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/sof
insinto /opt/soldieroffortune
- cp ${GAMES_CD}/{README,kver.pub,sof.xpm} ${Ddir}
+ cp ${CDROM_ROOT}/{README,kver.pub,sof.xpm} ${Ddir}
cd ${Ddir}
- tar xzf ${GAMES_CD}/paks.tar.gz || die "uncompressing data"
- tar xzf ${GAMES_CD}/binaries.tar.gz || die "uncompressing binaries"
+ tar xzf ${CDROM_ROOT}/paks.tar.gz || die "uncompressing data"
+ tar xzf ${CDROM_ROOT}/binaries.tar.gz || die "uncompressing binaries"
cd ${S}
bin/Linux/x86/loki_patch --verify patch.dat
@@ -62,15 +60,14 @@ src_install() {
dogamesbin ${FILESDIR}/sof
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/sof
insinto /usr/share/pixmaps
- doins ${GAMES_CD}/sof.xpm
+ doins ${CDROM_ROOT}/sof.xpm
prepgamesdirs
make_desktop_entry sof "Soldier of Fortune" "sof.xpm"
}
pkg_postinst() {
+ games_pkg_postinst
einfo "To play the game run:"
einfo " sof"
-
- games_pkg_postinst
}