summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-10-17 21:24:04 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-10-17 21:24:04 +0000
commit96f518a19330d7b1dc733423823396b1db3b2a00 (patch)
tree061cacecab3b9682e549ccad51f8fd0fba8f2b50 /games-rpg
parentDepend on gtk =2.6*, since it doesnt build with 2.8 (diff)
downloadgentoo-2-96f518a19330d7b1dc733423823396b1db3b2a00.tar.gz
gentoo-2-96f518a19330d7b1dc733423823396b1db3b2a00.tar.bz2
gentoo-2-96f518a19330d7b1dc733423823396b1db3b2a00.zip
Added nwmouse check from bug #106789 for bug #109619.
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/nwn-data/ChangeLog5
-rw-r--r--games-rpg/nwn-data/nwn-data-1.29.ebuild37
2 files changed, 26 insertions, 16 deletions
diff --git a/games-rpg/nwn-data/ChangeLog b/games-rpg/nwn-data/ChangeLog
index 76f8de8d445f..42330e5492ab 100644
--- a/games-rpg/nwn-data/ChangeLog
+++ b/games-rpg/nwn-data/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-rpg/nwn-data
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/ChangeLog,v 1.3 2005/09/30 01:24:29 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/ChangeLog,v 1.4 2005/10/17 21:24:04 wolf31o2 Exp $
+
+ 17 Oct 2005; Chris Gianelloni <wolf31o2@gentoo.org> nwn-data-1.29.ebuild:
+ Added nwmouse check from bug #106789 for bug #109619.
30 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org> nwn-data-1.29.ebuild:
Fixed cosmetic errors on USE=-nowin.
diff --git a/games-rpg/nwn-data/nwn-data-1.29.ebuild b/games-rpg/nwn-data/nwn-data-1.29.ebuild
index 51a2ae6724fd..9f9416a0f8ac 100644
--- a/games-rpg/nwn-data/nwn-data-1.29.ebuild
+++ b/games-rpg/nwn-data/nwn-data-1.29.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/nwn-data-1.29.ebuild,v 1.3 2005/09/30 01:24:29 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/nwn-data-1.29.ebuild,v 1.4 2005/10/17 21:24:04 wolf31o2 Exp $
inherit eutils games
@@ -33,9 +33,9 @@ RDEPEND="virtual/x11
>=media-libs/libsdl-1.2.5
amd64? ( app-emulation/emul-linux-x86-baselibs )"
-S="${WORKDIR}/nwn"
-dir="${GAMES_PREFIX_OPT}/${PN/-data}"
-Ddir="${D}/${dir}"
+S=${WORKDIR}/nwn
+dir=${GAMES_PREFIX_OPT}/nwn
+Ddir=${D}/${dir}
pkg_setup() {
if use sou && use hou
@@ -55,12 +55,12 @@ pkg_setup() {
}
src_unpack() {
- mkdir ${S}
- cd ${S}
+ mkdir "${S}"
+ cd "${S}"
unpack nwclient129.tar.gz
- cd ${WORKDIR}
+ cd "${WORKDIR}"
use nowin && unpack nwresources129.tar.gz
- cd ${S}
+ cd "${S}"
rm -rf override/*
# the following is so ugly, please pretend it doesnt exist
declare -a Aarray=(${A})
@@ -87,16 +87,23 @@ src_unpack() {
unzip -o ${CDROM_ROOT}/Language_data.zip
unzip -o ${CDROM_ROOT}/Language_update.zip
fi
+ sed -i -e '\:^./nwmain .*:i \
+if [[ -f ./nwmouse.so ]]; then \
+ export XCURSOR_PATH="$(pwd)" \
+ export XCURSOR_THEME=nwmouse \
+ export LD_PRELOAD=./nwmouse.so:$LD_PRELOAD \
+fi \
+ ' "${S}/nwn"
}
src_install() {
- dodir ${dir}
+ dodir "${dir}"
# Since the movies don't play anyway, we'll remove them
- rm -rf ${S}/movies
- mkdir -p ${S}/dmvault ${S}/hak ${S}/portraits
- rm -rf ${S}/dialog.tlk ${S}/dialog.TLK ${S}/dmclient ${S}/nwmain \
- ${S}/nwserver ${S}/nwm/* ${S}/SDL-1.2.5 ${S}/fixinstall
- mv ${S}/* ${Ddir}
+ rm -rf "${S}"/movies
+ mkdir -p "${S}"/dmvault "${S}"/hak "${S}"/portraits
+ rm -rf "${S}"/dialog.tlk "${S}"/dialog.TLK "${S}"/dmclient "${S}"/nwmain \
+ "${S}"/nwserver "${S}"/nwm/* "${S}"/SDL-1.2.5 "${S}"/fixinstall
+ mv "${S}"/* "${Ddir}"
keepdir ${dir}/servervault
keepdir ${dir}/scripttemplates
keepdir ${dir}/saves
@@ -122,7 +129,7 @@ src_install() {
then
chmod a-x ${Ddir}/data/patch.bif chmod a-x${Ddir}/patch.key
fi
- doicon ${FILESDIR}/nwn.png
+ doicon "${FILESDIR}"/nwn.png
prepgamesdirs
chmod -R g+rwX ${Ddir}/saves ${Ddir}/localvault ${Ddir}/dmvault \
2>&1 > /dev/null || die "could not chmod"