summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-07-18 03:47:57 +0000
committerMike Frysinger <vapier@gentoo.org>2004-07-18 03:47:57 +0000
commit9d7b39b6a79d8bfed98ec69a20a58c94f586ebd0 (patch)
tree44d0043666e3fe8f0ebf25de453dd171783d86d8 /games-rpg
parentManifest fix - files/ipac-ng.cron size mismatch, files/rules.conf size mismat... (diff)
downloadgentoo-2-9d7b39b6a79d8bfed98ec69a20a58c94f586ebd0.tar.gz
gentoo-2-9d7b39b6a79d8bfed98ec69a20a58c94f586ebd0.tar.bz2
gentoo-2-9d7b39b6a79d8bfed98ec69a20a58c94f586ebd0.zip
dont hardcode /opt, use $GAMES_PREFIX_OPT
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/nwn/files/nwn2
-rw-r--r--games-rpg/nwn/nwn-1.62.ebuild3
2 files changed, 3 insertions, 2 deletions
diff --git a/games-rpg/nwn/files/nwn b/games-rpg/nwn/files/nwn
index a254dd9230b4..c57e1a4c73c8 100644
--- a/games-rpg/nwn/files/nwn
+++ b/games-rpg/nwn/files/nwn
@@ -1,3 +1,3 @@
#!/bin/sh
-cd /opt/nwn
+cd GENTOO_DIR/nwn
exec ./nwn ${@}
diff --git a/games-rpg/nwn/nwn-1.62.ebuild b/games-rpg/nwn/nwn-1.62.ebuild
index 341036f8a8de..f68d076d8cf6 100644
--- a/games-rpg/nwn/nwn-1.62.ebuild
+++ b/games-rpg/nwn/nwn-1.62.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.62.ebuild,v 1.9 2004/06/24 23:15:58 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.62.ebuild,v 1.10 2004/07/18 03:47:57 vapier Exp $
inherit games
@@ -45,6 +45,7 @@ src_install() {
insinto /usr/share/pixmaps
doins ${FILESDIR}/nwn.png
dogamesbin ${FILESDIR}/nwn
+ dosed "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" ${GAMES_BINDIR}/nwn
make_desktop_entry nwn "Never Winter Nights" nwn.png
prepgamesdirs
}