summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}