Portage is a package management system used by Gentoo Linux
# ChangeLog for games-rpg/nwn
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.70 2008/08/13 19:09:26 calchan Exp $
13 Aug 2008; Denis Dupeyron
Fixed LINGUAS issue, thanks to Michael Sterrett. Fixed QA warnings.
*nwn-1.69 (02 Aug 2008)
02 Aug 2008; Denis Dupeyron
Version bump, see bug #231704. Massively simplified the ebuild since this
version supports only the english language.
01 Aug 2008; Denis Dupeyron
Fixed Manifest, bug #227419.
28 Jul 2008; Chris Gianelloni
Removing myself from metadata.xml since I am retiring from the project.
29 May 2008; Christian Faulhammer
stable x86, bug 222519
24 Feb 2008; Denis Dupeyron
Removed useless ebuild.
*nwn-1.68-r4 (20 Feb 2008)
20 Feb 2008; Denis Dupeyron
Fixed bug #210562, thanks to Anton Romanov.
16 Feb 2008; Denis Dupeyron
Removed old experimental ebuild.
*nwn-1.68-r3 (16 Feb 2008)
16 Feb 2008; Denis Dupeyron
Internal libSDL update. Cosmetic fixes.
07 Sep 2007; Denis Dupeyron
Less annoying iconification. Fixed fullscreen toggling for international
users with an AltGr key.
05 Sep 2007; Denis Dupeyron
Changed URI for custom libSDL. Added postinst message describing new
features. Fixed keywords.
04 Sep 2007; Denis Dupeyron
Applied locale dir fix to current stable version (see bug #183344
comment #6).
*nwn-1.68-r2 (04 Sep 2007)
04 Sep 2007; Denis Dupeyron
Replaced provided libSDL with a custom version which should fix
compatibility with USE=xcb (bug #170644). Included patch based on
http://home.woh.rr.com/nwmovies/fullscreen-toggle-1211.patch which provides
fullscreen toggling and nwmovies compatibility fixes. See
http://home.woh.rr.com/nwmovies/libsdl.html for details. Also, fixed
behavior described in comment #6 of bug #183344.
27 Aug 2007; Chris Gianelloni
nwn-1.68-r1.ebuild:
Stable on amd64/x86 for bug #190150.
18 Aug 2007; Chris Gianelloni
nwn-1.68-r1.ebuild:
Removed downloading of additional dialog files per bug #183344.
31 Jan 2007; Chris Gianelloni
Fixed DESCRIPTION to be only one line. Thanks to Denis Dupeyron
19 Dec 2006; Chris Gianelloni
Added a ton of patches from Denis Dupeyron
bug #152367.
29 Nov 2006; Chris Gianelloni
We don't want to touch our metadata files again, so I've cleaned that up.
17 Nov 2006; Chris Gianelloni
-nwn-1.67-r1.ebuild, nwn-1.68.ebuild:
Marking 1.68 stable on amd64/x86 and removing all 1.67 ebuilds. This removes
all of the monolithic NWN ebuilds from the tree. Yay!
*nwn-1.68-r1 (17 Nov 2006)
17 Nov 2006; Chris Gianelloni
This is the initial import of the new nwn ebuild which goes with the new
nwn-data ebuild. Between the two, this should resolve quite a few bugs, as
mentioned on the nwn-data ChangeLog. I still plan on adding more support,
but this should be a good start.
06 Oct 2006; Chris Gianelloni
Removed virtual/x11 from dependencies.
27 Sep 2006; Chris Gianelloni
nwn-1.67-r1.ebuild, nwn-1.68.ebuild:
Change the instructions at the end of the ebuild from einfo to elog.
*nwn-1.68 (05 Sep 2006)
05 Sep 2006; Chris Gianelloni
Version bump to the 1.68 patch and closing bug #145602.
29 Aug 2006; Chris Gianelloni
Stable on amd64 and x86.
26 Jun 2006; Chris Gianelloni
files/digest-nwn-1.67-r1, ChangeLog, Manifest:
Fixing ChangeLog and Manifest. Upstream keeps changing these files, because
they were fine when I last downloaded them. Closing bug #137941.
20 Jun 2006; Chris Gianelloni
-nwn-1.66-r1.ebuild, nwn-1.67.ebuild:
Marking stable on amd64 and x86. Removing older ebuilds. Fixing Manifest.
Closing bug #136756.
25 May 2006; Chris Gianelloni
nwn-1.67-r1.ebuild:
Added a small fix for users with HotU or SoU.
*nwn-1.67-r1 (16 May 2006)
*nwn-1.67 (16 May 2006)
16 May 2006; Chris Gianelloni
+nwn-1.67-r1.ebuild:
Version bump to 1.67 (and 1.67-r1) and closing bug #131499.
21 Apr 2006; Chris Gianelloni
Fixing unpacking. This resolves the issue where /opt/nwn/nwn is a directory
since we were erroneously unpacking nwresources129.tar.gz twice.
31 Mar 2006; Chris Gianelloni
nwn-1.66-r1.ebuild:
Changed nomirror to mirror and nostrip to strip.
22 Mar 2006; Chris Gianelloni
Removed debug line.
21 Mar 2006; Chris Gianelloni
nwn-1.66-r1.ebuild:
Changed to using virtual/libstdc++ on x86.
20 Mar 2006; Mark Loeser
nwn-1.66-r1.ebuild:
Add DEPEND on app-arch/unzip
15 Mar 2006; Chris Gianelloni
Fixing unpacking for bug #125979.
23 Jan 2006; Chris Gianelloni
nwn-1.66.ebuild:
Moved nwn.png to DISTDIR.
23 Jan 2006; Chris Gianelloni
nwn-1.66.ebuild:
Moved nwn.png to DISTDIR.
12 Jan 2006; Chris Gianelloni
nwn-1.66-r1.ebuild:
Added notice about color problems due to bug #118728.
04 Jan 2006; Chris Gianelloni
-nwn-1.65-r1.ebuild, nwn-1.66.ebuild, nwn-1.66-r1.ebuild:
Removing older version and adding modular X dependencies.
19 Dec 2005; Chris Gianelloni
nwn-1.66-r1.ebuild:
Fixing fixinstall file and made it install properly.
28 Nov 2005; Chris Gianelloni
nwn-1.66.ebuild, nwn-1.66-r1.ebuild:
Add proper dependencies on either gcc-3.3/libstdc++-v3 for gcc stabilization.
02 Nov 2005; Chris Gianelloni
Added license checking and initial language support information.
01 Nov 2005; Chris Gianelloni
fperm is supposed to be fperms.
21 Oct 2005; Chris Gianelloni
nwn-1.66.ebuild, nwn-1.66-r1.ebuild:
Added addition dir variable to games_make_wrapper for bug #109793.
16 Oct 2005; Chris Gianelloni
Fix fixinstall not being executable.
30 Sep 2005; Chris Gianelloni
Made cosmetic fix to fixinstall script.
22 Sep 2005; Chris Gianelloni
-files/nwn-1.65-fixinstall, +files/fixinstall, nwn-1.65-r1.ebuild,
nwn-1.66.ebuild, nwn-1.66-r1.ebuild:
Fixed fixinstall script.
*nwn-1.66-r1 (21 Sep 2005)
21 Sep 2005; Chris Gianelloni
nwn-1.66.ebuild, +nwn-1.66-r1.ebuild:
Initial commit of new split ebuild for nwn (1.66-r1). It is currently
masked, but I'm hoping that this becomes the default for nwn quite shortly.
Closing bug #106484.
16 Sep 2005; Michael Sterrett
nwn-1.66.ebuild:
needs app-arch/unzip
15 Sep 2005; Chris Gianelloni
Fixing digest and disabling German support for the time being.
*nwn-1.66 (13 Sep 2005)
13 Sep 2005; Chris Gianelloni
Version bump to 1.66 and added a couple more mirrors for
nwresources129.tar.gz. Closing bug #96640.
*nwn-1.65-r1 (02 Jan 2005)
02 Jan 2005; Mike Frysinger
-nwn-1.65.ebuild:
Fix array usage with $A so it actually works #76428 by Francois Guimond.
30 Dec 2004; Mike Frysinger
Add localization support #61260 by dju.
*nwn-1.65 (30 Dec 2004)
30 Dec 2004; Mike Frysinger
-files/nwn-1.30-fixinstall, -files/nwn-1.32-fixinstall,
-files/nwn-1.61-fixinstall, -files/nwn-1.62-fixinstall,
+files/nwn-1.65-fixinstall, -nwn-1.62.ebuild, +nwn-1.65.ebuild:
Version bump #74871 by Francois Guimond et al.
28 Aug 2004; Michael Sterrett
fix DESCRIPTION (bug #62066)
05 Jun 2004; Chris Gianelloni
Changed license to NWN-EULA and closing bug #52507.
03 Jun 2004; Aron Griffis
Fix use invocation
24 May 2004; Chris Gianelloni
Fixed typo and closing bug #50809.
18 May 2004; Chris Gianelloni
Added RDEPEND for app-emulation/emul-linux-x86-baselibs on amd64.
17 May 2004; Chris Gianelloni
nwn-1.62.ebuild:
Added .desktop entry and closing bug #50809.
17 May 2004; Danny van Dyk
Marked ~amd64.
11 May 2004; Michael Sterrett
nwn-1.32.ebuild, nwn-1.61-r1.ebuild:
clean older ebuilds
19 Apr 2004; Michael Sterrett
opengl isn't optional.
*nwn-1.62 (28 Feb 2004)
28 Feb 2004; Mike Frysinger
Version bump #43033 by Luca Santarelli.
*nwn-1.61-r1 (14 Jan 2004)
14 Jan 2004; Mike Frysinger
I neglected to include the fix install script in the version bump #38351.
*nwn-1.61 (03 Jan 2004)
03 Jan 2004; Mike Frysinger
Version bump #36007.
*nwn-1.32 (13 Oct 2003)
13 Oct 2003; Mike Frysinger
Version bump #29316 and add helpful output #29505 and fix SRC_URI #31073.
*nwn-1.30 (26 Jun 2003)
01 Oct 2003; Michael Sterrett
chown user.group -> chown user:group
06 Sep 2003; Chris Gianelloni
Added RESTRICT=fetch. Closes bug #27548.
29 Aug 2003; Chris Gianelloni
Added RESTRICT=fetch. Closing bug #27548.
14 Aug 2003; Mike Frysinger
Add updated ebuild from Daniel Mannarino
Fixes USE=nowin install.
16 Jul 2003; Mike Frysinger
Add resources via USE=nowin for those ppl who run pure linux.
26 Jun 2003; Mike Frysinger
Version bump (added 1.30 patch) #23391.
*nwn-1.29 (22 Jun 2003)
22 Jun 2003; Mike Frysinger
Version bump + games.eclass support #23198.
*nwn-1.29_beta6 (06 Jun 2003)
06 Jun 2003; Martin Holzer
nwn-1.29_beta5.ebuild, nwn-1.29_beta6.ebuild:
Version bumped. Marked stable. Cleanup
*nwn-1.29_beta5 (24 May 2003)
24 May 2003; Martin Holzer
files/nwn-1.29_beta5-fixinstall:
Version bumped.
*app-games/nwn-1.29_beta2.ebuild (13 Apr 2003)
13 Apr 2003; phoen][x
files/digest-nwn-1.29_beta4, files/nwn-1.29_beta4-fixinstall :
Version bump.
*app-games/nwn-1.29_beta2.ebuild (28 Mar 2003)
28 Mar 2003; phoen][x
files/digest-nwn-1.29_beta3, files/nwn-1.29_beta3-fixinstall :
Version bump.
*app-games/nwn-1.29_beta2.ebuild (27 Mar 2003)
27 Mar 2003; phoen][x
files/digest-nwn-1.29_beta2, files/nwn-1.29_beta2-fixinstall :
Initial import.
AUX fixinstall 2534 RMD160 9f9ae60341fcc61fbf9e8d47738d07bd96694718 SHA1 0cdba82b96b749d6f4b8b4c925f045a588ce10ed SHA256 9a8724de422b26fc02620323745cf78846b6781902b9a7160ae1fa438e2d783a
DIST English_linuxclient168_orig.tar.gz 130569338 RMD160 0622599a07c113ae69fed80416f7a6f16e9e715e SHA1 5677e8ae04f6f12f776e13105a8401e55053862b SHA256 03687bff0469cb08a7e5a14316e076a6bfe698121ccee4e2116f0bf119988092
DIST English_linuxclient168_xp1.tar.gz 134673662 RMD160 5e9227ad86c183f90666b4ef10378227a0e1193a SHA1 4060faa4839180b4823ae4669cacc6bf91b1b551 SHA256 e78716a83add4980674f86fd648d374b6086365620bde478b678edfdd4e7e82c
DIST English_linuxclient168_xp2.tar.gz 120144829 RMD160 22619133360c1283db268b0b3adbf16548716ccc SHA1 918db6dbdb9a7b1dfd11377c0db98ac5b1f6a18e SHA256 b8d69ad68c3e3ddf2332176ffd1494682bd9f9d254531720327a62be44e1ac2c
DIST English_linuxclient169_orig.tar.gz 473297170 RMD160 f475c3562f23fba8213b72039e0934df6d162581 SHA1 c564941af9b2647785304a4751a6c17f6f353c84 SHA256 50932f9647ea7968dbb8f7ab1fc6478035fff0826379a45762c1de8e46d1d2b0
DIST English_linuxclient169_xp1.tar.gz 477419208 RMD160 7dc1ced38a748a1ada18a77ebc2c9f4ae3493592 SHA1 96c9c233559c38096eb4e08e95fcb6d3157d25bb SHA256 678254a1dbc52c5c3fa628410e3231b05afa3a612433729e7ef12d41bea8fc16
DIST English_linuxclient169_xp2.tar.gz 506025948 RMD160 10a1fcc9c7683fd2fcbf5add5f9a56e7c0fc3faa SHA1 d70a3a6b9c1a06eceaffd55628dba26b99002f0c SHA256 09715e2b95c025ef7f00d218deec1b1edce501530d8cba51d61097c69699763f
DIST French_linuxclient168_orig.tar.gz 131090499 RMD160 10965e3c88d917e483618bfc8f827f51dd46c5b1 SHA1 db051ba7ac592f7082bef8e78ffe3695aab33ad7 SHA256 f32ed5a759a0a6b49d8f9ef39e313d49a8931725c0d5a61d3a8737d125902315
DIST French_linuxclient168_xp1.tar.gz 151199720 RMD160 acb98760067cbc4674662d03ba78c9085cceccab SHA1 3288397c3017237ad86ff52f4882891bdce406f7 SHA256 b9f8fe388519bc824bd2b0198a6c51b93d8a3534d16718b164b6c983fea08f9a
DIST French_linuxclient168_xp2.tar.gz 133316339 RMD160 10e5b126dde805ac89b15d85c4eea983f85f462b SHA1 f6bd0d2f71120494b2a02bf715630b3e8a9686c4 SHA256 7cc11a8cc7a613714c8d01c42b061baad874001da479db1d26903f494894e98a
DIST German_linuxclient168_orig.tar.gz 131790824 RMD160 589b2fe6c7e8ae27efb9187e8aacf42a65a70cdd SHA1 7b6a5751ff2f66886c90bb204f145d7a187792ea SHA256 d0850968fe68cdabfa3138810387dd4be0bf4338173dc02a46cd5ed7c4348b45
DIST German_linuxclient168_xp1.tar.gz 152951618 RMD160 9d52520cbf92272dfdb8a53671cdc0f9aa68735d SHA1 cabc03064a96b0deac5659e1dc1089f371772bc5 SHA256 11e0b929547860309007298e1851d368d445b7dc8ceab17cece33d51342bfdd8
DIST German_linuxclient168_xp2.tar.gz 134425276 RMD160 d466c589b64dd83e2a7ab5e8ebe45b5fb663d8aa SHA1 741bb1796e94df7948d5d4436c5d8dd78c81c987 SHA256 5d8fe43b751dd9372f45a1193cbf21da04b99fa5c735e5286d7306cf325f796d
DIST Italian_linuxclient168_orig.tar.gz 132705873 RMD160 226e49198f24f6e56b05d5646b211905b39a0283 SHA1 4c8f199d2f42c3d0551222271862b736c470c4ef SHA256 650235b4ac464f7bdc873aaf8404ec51deef6e8a7c780a9bb237782c1575f95b
DIST Italian_linuxclient168_xp1.tar.gz 143425395 RMD160 b2709e89a0badec58cb8919fe8c6e3e0270a1481 SHA1 6007dccd4d025b55c5911f8fa12dc664763b168a SHA256 52da3063290f564c64905b0806201ad9623a62d99f38adae39e3eb0f5970eb94
DIST Italian_linuxclient168_xp2.tar.gz 133867117 RMD160 8e0ca0e29c7b6ac5ed20fb64cb88b569e3383e28 SHA1 bea909422ce71aed80bc41fae7850f73ad318eb6 SHA256 8a8f87034ccda517e2c69dea61f6fe799a0e1ef5ced6eab2081980da988f49d8
DIST Spanish_linuxclient168_orig.tar.gz 132704890 RMD160 699c5bdf5b020a91f3f1b86f961ae3416a62bd0d SHA1 62fba8f04bda9690f1b6c561019abe9c428b43f9 SHA256 01bfd907735a69112fc1847e82269ed2a3d00760a9906dd24819269e53173f13
DIST Spanish_linuxclient168_xp1.tar.gz 143415370 RMD160 897b862f8baa392e733413f847a5e2ebabd17bbf SHA1 e1a3e13a5cf05c742d004fd76bd14a3d6b17c541 SHA256 c74faed185b87a0f187f4e1bcf873ec3810a1fd8dba026b81bcf421e1ca121d9
DIST Spanish_linuxclient168_xp2.tar.gz 133862305 RMD160 25d36239aa9bb3e685f24c3e031128bbcbd1d1d6 SHA1 b14f3229529618ddf12b497d17421f753898e279 SHA256 b4d4efb0eb5d3395e42e665b518f3cec19c690b0f7f57783ecaa2e6aa8b70a5e
DIST nwn-libelf-0.1.tar.bz2 35932 RMD160 8865c8b2b1915f85eade6ccd2835502519184b14 SHA1 d68b3d9d0d833a5c210c07c15747aabdbadf5446 SHA256 d397957b12120967d130893c2eb9abd3e6ca721aba04f94389358be4f7e897db
DIST nwn-libsdl-1.2.13.tar.bz2 151293 RMD160 6e001bff0182867e633c00307d8c84b6b668f4eb SHA1 07c79dc2d852ead0fdc96a2626c00b19edbe6fbc SHA256 c8c0ccb382f99b0203ff284e19459d0b03ebd342e0e41410b55393de59e0dd8c
EBUILD nwn-1.68-r1.ebuild 7498 RMD160 e5be0ec7ad59ab08b43d7a013a96c05e8aeee89c SHA1 299bf4d69fbe86d06c5dafb90978ed3fdb240e5b SHA256 3c9730ca57d2ae73ccf92bf17a735563cda27a3d383c0e08cae218ec252acda6
EBUILD nwn-1.68-r4.ebuild 6815 RMD160 f06ad12238df99d7c52264d060180edae6a58efd SHA1 47b7e4e7401a5ed2e73ab9ececeb80e71cfdd08b SHA256 dd6415b53e33a4a4a58a97c4b84af0f02732616c239eb7a0b1b16837d243f276
EBUILD nwn-1.69.ebuild 4076 RMD160 46cda961a1ca8ede91b43175a78ee50bd4273dda SHA1 538d200d7e1543f73fed22bf9b6ba6a3910a9e8c SHA256 f2abeb2960249cb36fc7f340dad8b3c9489ed28a0b7f6080f540082c3aa40d4b
MISC ChangeLog 12580 RMD160 4b473faabd63b4f0640a3b1f0b54b0fa70fd9513 SHA1 aaf997c26d6b8e8d2cd60aa8c83778c9ec731b91 SHA256 97204bcf4560b65318ae9c2602578a01f2bf4eeaac3fb4bd4c3f0b9b769a6d3e
MISC metadata.xml 435 RMD160 57ca0a3136e9c0edf3c1cc5e13f0661f38d4879c SHA1 3e0e513cd5b6910cc4c1bb2bc8556753c4dda722 SHA256 1548515a46157153d708117cfe4fb01d2ba73a5f32a49967d2b70b4702b95604
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.68-r1.ebuild,v 1.10 2008/08/01 18:52:28 calchan Exp $
inherit eutils games
LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en"
MY_PV=${PV//.}
PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}
PACKAGE_NAME=_linuxclient${MY_PV}_orig.tar.gz
SOU_NAME=_linuxclient${MY_PV}_xp1.tar.gz
HOU_NAME=_linuxclient${MY_PV}_xp2.tar.gz
DESCRIPTION="role-playing game set in a huge medieval fantasy world of Dungeons and Dragons"
HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
SRC_URI="linguas_fr? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/French${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/French${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/French${HOU_NAME} ) )
linguas_it? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/Italian${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/Italian${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/Italian${HOU_NAME} ) )
linguas_en? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) )
linguas_es? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/Spanish${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/Spanish${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/Spanish${HOU_NAME} ) )
linguas_de? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/German${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/German${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/German${HOU_NAME} ) )
!linguas_en? (
!linguas_es? (
!linguas_de? (
!linguas_fr? (
!linguas_it? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) ) ) ) ) )"
LICENSE="NWN-EULA"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="sou hou ${LANGUAGES}"
# nowin USE flag not used anymore by pkg_setup()
RESTRICT="mirror strip"
RDEPEND=">=games-rpg/nwn-data-1.29-r1
virtual/opengl
>=media-libs/libsdl-1.2.5
x86? (
=virtual/libstdc++-3.3
x11-libs/libXext
x11-libs/libX11 )
amd64? (
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-xlibs )"
DEPEND="app-arch/unzip"
S=${WORKDIR}/nwn
GAMES_LICENSE_CHECK="yes"
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
die_from_busted_nwn-data() {
local use=$*
ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this"
ewarn "by doing the following:"
echo
elog "mkdir -p /etc/portage"
elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
elog "emerge --oneshot games-rpg/nwn-data"
die "nwn-data requires USE=$use"
}
die_from_busted_linguas_nwn-data() {
local use=$*
ewarn "You must emerge games-rpg/nwn-data with LINGUAS=${use/linguas_/}."
ewarn "You can fix this by doing the following:"
echo
elog "mkdir -p /etc/portage"
elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
elog "emerge --oneshot games-rpg/nwn-data"
die "nwn-data requires LINGUAS='$use'"
}
pkg_setup() {
games_pkg_setup
if use sou
then
built_with_use games-rpg/nwn-data sou || die_from_busted_nwn-data sou
fi
if use hou
then
built_with_use games-rpg/nwn-data hou || die_from_busted_nwn-data hou
fi
strip-linguas de en es fr it
# currentlocale=""
# for i in ${LINGUAS}
# do
# case ${i} in
# de)
# if [ ! -e "${dir}"/.metadata/linguas_de ]
# then
# use nowin && die_from_busted_linguas_nwn-data linguas_de
# fi
# currentlocale=de
# ;;
# en)
# if [ ! -e "${dir}"/.metadata/linguas_en ]
# then
# use nowin && die_from_busted_linguas_nwn-data linguas_en
# fi
# currentlocale=en
# ;;
# es)
# if [ ! -e "${dir}"/.metadata/linguas_es ]
# then
# use nowin && die_from_busted_linguas_nwn-data linguas_es
# fi
# currentlocale=es
# ;;
# fr)
# if [ ! -e "${dir}"/.metadata/linguas_fr ]
# then
# use nowin && die_from_busted_linguas_nwn-data linguas_fr
# fi
# currentlocale=fr
# ;;
# it)
# if [ ! -e "${dir}"/.metadata/linguas_it ]
# then
# use nowin && die_from_busted_linguas_nwn-data linguas_it
# fi
# currentlocale=it
# ;;
# esac
# done
}
src_unpack() {
mkdir -p "${S}"
cd "${S}"
mkdir -p .metadata
for a in ${A}
do
if [ -z "${a/*orig*}" ]
then
currentlocale=""
if [ -z "${a/*German*/}" ]
then
currentlocale=de
elif [ -z "${a/*English*/}" ]
then
currentlocale=en
elif [ -z "${a/*Spanish*/}" ]
then
currentlocale=es
elif [ -z "${a/*Italian*/}" ]
then
currentlocale=it
elif [ -z "${a/*French*/}" ]
then
currentlocale=fr
fi
if [ -n "$currentlocale" ]
then
mkdir -p "${currentlocale}"
cd "${currentlocale}"
unpack "${a}" || die "unpack ${a}"
cd ..
fi
fi
done
use sou && (
for a in ${A}
do
if [ -z "${a/*$SOU_NAME}" ]
then
currentlocale=""
if [ -z "${a/*German*/}" ]
then
currentlocale=de
elif [ -z "${a/*English*/}" ]
then
currentlocale=en
elif [ -z "${a/*Spanish*/}" ]
then
currentlocale=es
elif [ -z "${a/*Italian*/}" ]
then
currentlocale=it
elif [ -z "${a/*French*/}" ]
then
currentlocale=fr
fi
if [ -n "$currentlocale" ]
then
mkdir -p "${currentlocale}"
cd "${currentlocale}"
rm -f data/patch.bif patch.key
unpack "${a}" || die "unpack ${a}"
cd ..
fi
fi
done )
use hou && (
for a in ${A}
do
if [ -z "${a/*$HOU_NAME}" ]
then
currentlocale=""
if [ -z "${a/*German*/}" ]
then
currentlocale=de
elif [ -z "${a/*English*/}" ]
then
currentlocale=en
elif [ -z "${a/*Spanish*/}" ]
then
currentlocale=es
elif [ -z "${a/*Italian*/}" ]
then
currentlocale=it
elif [ -z "${a/*French*/}" ]
then
currentlocale=fr
fi
if [ -n "$currentlocale" ]
then
mkdir -p "${currentlocale}"
cd "${currentlocale}"
rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key override/*
unpack "${a}" || die "unpack ${a}"
cd ..
fi
fi
done )
for a in ${A}
do
if [ -z "${a/*dialog*}" ]
then
currentlocale=""
if [ -z "${a/*German*/}" ]
then
currentlocale=de
elif [ -z "${a/*English*/}" ]
then
currentlocale=en
elif [ -z "${a/*Spanish*/}" ]
then
currentlocale=es
elif [ -z "${a/*Italian*/}" ]
then
currentlocale=it
elif [ -z "${a/*French*/}" ]
then
currentlocale=fr
fi
if [ -n "$currentlocale" ]
then
(cd "${currentlocale}" ; unpack ${a} ; cd .. )
fi
fi
done
}
src_install() {
dodir "${dir}"
exeinto "${dir}"
doexe "${FILESDIR}"/fixinstall
sed -i \
-e "s:GENTOO_USER:${GAMES_USER}:" \
-e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
-e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
-e "s:override miles nwm:miles:" \
-e "s:chitin.key dialog.tlk nwmain:chitin.key:" \
-e "s:^chmod a-x:#chmod a-x:" \
"${Ddir}"/fixinstall || die "sed"
if use hou || use sou
then
sed -i \
-e "s:chitin.key patch.key:chitin.key:" \
"${Ddir}"/fixinstall || die "sed"
fi
fperms ug+x "${dir}"/fixinstall || die "perms"
mv "${S}"/* "${Ddir}"
mv "${S}"/.metadata "${Ddir}"
games_make_wrapper nwn ./nwn "${dir}" "${dir}"
make_desktop_entry nwn "Neverwinter Nights"
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
einfo "The NWN linux client is now installed."
einfo "Proceed with the following step in order to get it working:"
einfo "Run ${dir}/fixinstall as root"
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.68-r4.ebuild,v 1.3 2008/08/01 18:52:28 calchan Exp $
inherit eutils games
LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en"
MY_PV=${PV//.}
PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}
PACKAGE_NAME=_linuxclient${MY_PV}_orig.tar.gz
SOU_NAME=_linuxclient${MY_PV}_xp1.tar.gz
HOU_NAME=_linuxclient${MY_PV}_xp2.tar.gz
DESCRIPTION="role-playing game set in a huge medieval fantasy world of Dungeons and Dragons"
HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
SRC_URI="http://dev.gentoo.org/~calchan/distfiles/nwn-libsdl-1.2.13.tar.bz2
http://dev.gentoo.org/~calchan/distfiles/nwn-libelf-0.1.tar.bz2
linguas_fr? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/French${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/French${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/French${HOU_NAME} ) )
linguas_it? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/Italian${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/Italian${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/Italian${HOU_NAME} ) )
linguas_en? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) )
linguas_es? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/Spanish${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/Spanish${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/Spanish${HOU_NAME} ) )
linguas_de? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/German${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/German${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/German${HOU_NAME} ) )
!linguas_en? (
!linguas_es? (
!linguas_de? (
!linguas_fr? (
!linguas_it? (
!sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) )
sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} )
hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) ) ) ) ) )"
LICENSE="NWN-EULA"
SLOT="0"
KEYWORDS="-* ~amd64 x86"
IUSE="sou hou ${LANGUAGES}"
# nowin USE flag not used anymore by pkg_setup()
RESTRICT="mirror strip"
RDEPEND=">=games-rpg/nwn-data-1.29-r3
virtual/opengl
>=media-libs/libsdl-1.2.5
!
=virtual/libstdc++-3.3
x11-libs/libXext
x11-libs/libX11 )
amd64? (
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-xlibs )"
DEPEND="app-arch/unzip"
S=${WORKDIR}/nwn
GAMES_LICENSE_CHECK="yes"
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
die_from_busted_nwn-data() {
local use=$*
ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this"
ewarn "by doing the following:"
echo
elog "mkdir -p /etc/portage"
elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
elog "emerge --oneshot games-rpg/nwn-data"
die "nwn-data requires USE=$use"
}
die_from_busted_linguas_nwn-data() {
local use=$*
ewarn "You must emerge games-rpg/nwn-data with LINGUAS=${use/linguas_/}."
ewarn "You can fix this by doing the following:"
echo
elog "mkdir -p /etc/portage"
elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
elog "emerge --oneshot games-rpg/nwn-data"
die "nwn-data requires LINGUAS='$use'"
}
pkg_setup() {
games_pkg_setup
if use sou
then
built_with_use games-rpg/nwn-data sou || die_from_busted_nwn-data sou
fi
if use hou
then
built_with_use games-rpg/nwn-data hou || die_from_busted_nwn-data hou
fi
strip-linguas de en es fr it
}
src_unpack() {
mkdir -p "${S}"
cd "${S}"
mkdir -p .metadata
for a in ${A}
do
if [ -z "${a/*libsdl*}" ]
then
unpack "${a}" || die "unpack ${a}"
fi
if [ -z "${a/*libelf*}" ]
then
unpack "${a}" || die "unpack ${a}"
fi
if [ -z "${a/*orig*}" ]
then
currentlocale=""
if [ -z "${a/*German*/}" ]
then
currentlocale=de
elif [ -z "${a/*English*/}" ]
then
currentlocale=en
elif [ -z "${a/*Spanish*/}" ]
then
currentlocale=es
elif [ -z "${a/*Italian*/}" ]
then
currentlocale=it
elif [ -z "${a/*French*/}" ]
then
currentlocale=fr
fi
if [ -n "$currentlocale" ]
then
mkdir -p "${currentlocale}"
cd "${currentlocale}"
unpack "${a}" || die "unpack ${a}"
cd ..
fi
fi
done
use sou && (
for a in ${A}
do
if [ -z "${a/*$SOU_NAME}" ]
then
currentlocale=""
if [ -z "${a/*German*/}" ]
then
currentlocale=de
elif [ -z "${a/*English*/}" ]
then
currentlocale=en
elif [ -z "${a/*Spanish*/}" ]
then
currentlocale=es
elif [ -z "${a/*Italian*/}" ]
then
currentlocale=it
elif [ -z "${a/*French*/}" ]
then
currentlocale=fr
fi
if [ -n "$currentlocale" ]
then
mkdir -p "${currentlocale}"
cd "${currentlocale}"
rm -f data/patch.bif patch.key
unpack "${a}" || die "unpack ${a}"
cd ..
fi
fi
done )
use hou && (
for a in ${A}
do
if [ -z "${a/*$HOU_NAME}" ]
then
currentlocale=""
if [ -z "${a/*German*/}" ]
then
currentlocale=de
elif [ -z "${a/*English*/}" ]
then
currentlocale=en
elif [ -z "${a/*Spanish*/}" ]
then
currentlocale=es
elif [ -z "${a/*Italian*/}" ]
then
currentlocale=it
elif [ -z "${a/*French*/}" ]
then
currentlocale=fr
fi
if [ -n "$currentlocale" ]
then
mkdir -p "${currentlocale}"
cd "${currentlocale}"
rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key override/*
unpack "${a}" || die "unpack ${a}"
cd ..
fi
fi
done )
}
src_install() {
dodir "${dir}"
exeinto "${dir}"
doexe "${FILESDIR}"/fixinstall
sed -i \
-e "s:GENTOO_USER:${GAMES_USER}:" \
-e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
-e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
-e "s:override miles nwm:miles:" \
-e "s:chitin.key dialog.tlk nwmain:chitin.key:" \
-e "s:^chmod a-x:#chmod a-x:" \
"${Ddir}"/fixinstall || die "sed"
if use hou || use sou
then
sed -i \
-e "s:chitin.key patch.key:chitin.key:" \
"${Ddir}"/fixinstall || die "sed"
fi
fperms ug+x "${dir}"/fixinstall || die "perms"
mv "${S}"/* "${Ddir}"
mv "${S}"/.metadata "${Ddir}"
games_make_wrapper nwn ./nwn "${dir}" "${dir}"
make_desktop_entry nwn "Neverwinter Nights"
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "The included custom libSDL is patched to enable the following key sequences:"
elog " * Left-Alt & Enter - Iconify Window"
elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed"
elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window"
elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window"
elog
elog "The NWN linux client is now installed."
elog "Proceed with the following step in order to get it working:"
elog "Run ${dir}/fixinstall as root"
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.69.ebuild,v 1.2 2008/08/13 19:09:26 calchan Exp $
inherit eutils games
MY_PV=${PV//.}
PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}/English_linuxclient${MY_PV}_
DESCRIPTION="role-playing game set in a huge medieval fantasy world of Dungeons and Dragons"
HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
SRC_URI="http://dev.gentoo.org/~calchan/distfiles/nwn-libsdl-1.2.13.tar.bz2
http://dev.gentoo.org/~calchan/distfiles/nwn-libelf-0.1.tar.bz2
!sou? ( !hou? ( ${PATCH_URL_BASE}orig.tar.gz ) )
sou? ( !hou? ( ${PATCH_URL_BASE}xp1.tar.gz ) )
hou? ( ${PATCH_URL_BASE}xp2.tar.gz )"
LICENSE="NWN-EULA"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="sou hou"
RESTRICT="mirror strip"
QA_DT_HASH="/opt/nwn/en/nwserver /opt/nwn/en/nwmain /opt/nwn/lib/libSDL-1.2.so.0.11.2 /opt/nwn/lib/libelf.so.1"
RDEPEND=">=games-rpg/nwn-data-1.29-r3
virtual/opengl
>=media-libs/libsdl-1.2.5
!
=virtual/libstdc++-3.3
x11-libs/libXext
x11-libs/libX11 )
amd64? (
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-xlibs )"
DEPEND=""
S=${WORKDIR}/nwn
GAMES_LICENSE_CHECK="yes"
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
die_from_busted_nwn-data() {
local use=$*
ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this"
ewarn "by doing the following:"
echo
elog "mkdir -p /etc/portage"
elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
elog "emerge --oneshot games-rpg/nwn-data"
die "nwn-data requires USE=$use"
}
pkg_setup() {
games_pkg_setup
if use sou
then
built_with_use games-rpg/nwn-data sou || die_from_busted_nwn-data sou
fi
if use hou
then
built_with_use games-rpg/nwn-data hou || die_from_busted_nwn-data hou
fi
if ! built_with_use games-rpg/nwn-data linguas_en && \
( built_with_use games-rpg/nwn-data linguas_fr \
|| built_with_use games-rpg/nwn-data linguas_de \
|| built_with_use games-rpg/nwn-data linguas_es \
|| built_with_use games-rpg/nwn-data linguas_it )
then
die "${P} requires games-rpg/nwn-data emerged with at least LINGUAS=en or none at all"
fi
}
src_unpack() {
mkdir -p "${S}"/en
cd "${S}"/en
unpack ${A}
mv lib ..
}
src_install() {
exeinto "${dir}"
doexe "${FILESDIR}"/fixinstall
sed -i \
-e "s:GENTOO_USER:${GAMES_USER}:" \
-e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
-e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
-e "s:override miles nwm:miles:" \
-e "s:chitin.key dialog.tlk nwmain:chitin.key:" \
-e "s:^chmod a-x:#chmod a-x:" \
"${Ddir}"/fixinstall || die "sed"
if use hou || use sou
then
sed -i \
-e "s:chitin.key patch.key:chitin.key:" \
"${Ddir}"/fixinstall || die "sed"
fi
fperms ug+x "${dir}"/fixinstall || die "perms"
mv "${S}"/* "${Ddir}"
games_make_wrapper nwn ./nwn "${dir}" "${dir}"
make_desktop_entry nwn "Neverwinter Nights"
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "The included custom libSDL is patched to enable the following key sequences:"
elog " * Left-Alt & Enter - Iconify Window"
elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed"
elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window"
elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window"
elog
elog "The NWN linux client is now installed."
elog "Proceed with the following step in order to get it working:"
elog "Run ${dir}/fixinstall as root"
echo
ewarn "This version supports only english, see http://nwn.bioware.com/support/patch.html"
ewarn "If you were playing with a different language you may want to backup your ~/.nwn and do:"
ewarn " mv ~/.nwn/
ewarn "If it does not work, try removing ~/.nwn, start nwn then quit, and re-import all you"
ewarn "need (saves, etc...) in ~/.nwn/en, but please do not file a bug."
}