summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2007-09-04 19:36:33 +0000
committerDenis Dupeyron <calchan@gentoo.org>2007-09-04 19:36:33 +0000
commitae8c18c186201bec603dbb791cb9f553ef1b7dbe (patch)
treecc09036203bcd3265b90ee7a31324c56ad3743fc /games-rpg
parentVersion bump (diff)
downloadhistorical-ae8c18c186201bec603dbb791cb9f553ef1b7dbe.tar.gz
historical-ae8c18c186201bec603dbb791cb9f553ef1b7dbe.tar.bz2
historical-ae8c18c186201bec603dbb791cb9f553ef1b7dbe.zip
Added custom libSDL which fixes bug #170644 and adds fullscreen toggling. Fixed behavior described in comment #6 of bug #183344.
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/nwn/ChangeLog12
-rw-r--r--games-rpg/nwn/Manifest26
-rw-r--r--games-rpg/nwn/files/digest-nwn-1.68-r248
-rw-r--r--games-rpg/nwn/nwn-1.68-r2.ebuild247
4 files changed, 318 insertions, 15 deletions
diff --git a/games-rpg/nwn/ChangeLog b/games-rpg/nwn/ChangeLog
index 1a4c304e34e9..1f021569c207 100644
--- a/games-rpg/nwn/ChangeLog
+++ b/games-rpg/nwn/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for games-rpg/nwn
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.57 2007/08/27 21:32:18 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.58 2007/09/04 19:36:32 calchan Exp $
+
+*nwn-1.68-r2 (04 Sep 2007)
+
+ 04 Sep 2007; Denis Dupeyron <calchan@gentoo.org> +nwn-1.68-r2.ebuild:
+ 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 <wolf31o2@gentoo.org> -nwn-1.68.ebuild,
nwn-1.68-r1.ebuild:
diff --git a/games-rpg/nwn/Manifest b/games-rpg/nwn/Manifest
index 0ee9b929ca34..3e4ba83ef4ca 100644
--- a/games-rpg/nwn/Manifest
+++ b/games-rpg/nwn/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX fixinstall 2534 RMD160 9f9ae60341fcc61fbf9e8d47738d07bd96694718 SHA1 0cdba82b96b749d6f4b8b4c925f045a588ce10ed SHA256 9a8724de422b26fc02620323745cf78846b6781902b9a7160ae1fa438e2d783a
MD5 a8900a7d035a7633369516c1e6221ac9 files/fixinstall 2534
RMD160 9f9ae60341fcc61fbf9e8d47738d07bd96694718 files/fixinstall 2534
@@ -20,14 +17,19 @@ DIST Italian_linuxclient168_xp2.tar.gz 133867117 RMD160 8e0ca0e29c7b6ac5ed20fb64
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-libsdl-1.2.12.tar.bz2 148325 RMD160 e2f471345f5eee9c400ed6ef72bcafe15fb11853 SHA1 bb5522b4e8e83ad6f915c439dea83487e14ebd1b SHA256 96fbbba9fbb95819f558f967c5ac898ab86799f858ad5741515851a2fa198835
EBUILD nwn-1.68-r1.ebuild 7432 RMD160 93494c84d54c8e2fd04870d595a295a092f38566 SHA1 b40fcaeae6d284606ce6648d6882e23c21d8f075 SHA256 5f09e5e26c802d914fcba1262eb2d2b9d8b8f496e79ba1556d5cd84bd89d4146
MD5 eb65668ce7a32472b86f9d04a6c17832 nwn-1.68-r1.ebuild 7432
RMD160 93494c84d54c8e2fd04870d595a295a092f38566 nwn-1.68-r1.ebuild 7432
SHA256 5f09e5e26c802d914fcba1262eb2d2b9d8b8f496e79ba1556d5cd84bd89d4146 nwn-1.68-r1.ebuild 7432
-MISC ChangeLog 10396 RMD160 b926cc8d1f803f7c393a5cdffe0be79da23e9a81 SHA1 63e8d0b734ac408263fc399d42fe9c5d132196a4 SHA256 5563d50741028294bcf953608c5f61c1d14bc01172e05ea2d8479e4768afac81
-MD5 2f648be091792af8ba42d9ce00787fdc ChangeLog 10396
-RMD160 b926cc8d1f803f7c393a5cdffe0be79da23e9a81 ChangeLog 10396
-SHA256 5563d50741028294bcf953608c5f61c1d14bc01172e05ea2d8479e4768afac81 ChangeLog 10396
+EBUILD nwn-1.68-r2.ebuild 6275 RMD160 44e125d76b653ad197c9b21acf1b833bd605bdd1 SHA1 9cefb39d597923d40082d20e5bd8cd0d7e7699fa SHA256 7af8aa780e7a8ba3f723537195a1e4167839784c018c3922ebe296d0d3ccb09e
+MD5 cb393e20bb3ba2419d59b99e0ef23381 nwn-1.68-r2.ebuild 6275
+RMD160 44e125d76b653ad197c9b21acf1b833bd605bdd1 nwn-1.68-r2.ebuild 6275
+SHA256 7af8aa780e7a8ba3f723537195a1e4167839784c018c3922ebe296d0d3ccb09e nwn-1.68-r2.ebuild 6275
+MISC ChangeLog 10890 RMD160 ac592cf0251d23f81de8569654ac73aebdbc390d SHA1 9edd1017f7d811a9d0eb58c4075bb0fa496c66f5 SHA256 f10876f0dc4255b1eeb681b571c24a6578af927dc8145c412558dfa1926ebb19
+MD5 9751dbfcab15470e800195c025112c37 ChangeLog 10890
+RMD160 ac592cf0251d23f81de8569654ac73aebdbc390d ChangeLog 10890
+SHA256 f10876f0dc4255b1eeb681b571c24a6578af927dc8145c412558dfa1926ebb19 ChangeLog 10890
MISC metadata.xml 445 RMD160 0892e7f62b1ec5cad54aad9d801220a15b75a36c SHA1 b80ca4fea62102ac70b1718212307f41b1ce5592 SHA256 5b0e7eee6bdce75f183e0d1fdce5c32736dcee7bdd3e1ea2c7218ae619a320e5
MD5 8dd74a51ece6a0e367a909d1edb647cf metadata.xml 445
RMD160 0892e7f62b1ec5cad54aad9d801220a15b75a36c metadata.xml 445
@@ -35,10 +37,6 @@ SHA256 5b0e7eee6bdce75f183e0d1fdce5c32736dcee7bdd3e1ea2c7218ae619a320e5 metadata
MD5 269a40dbc0d28de5b84d80b9a1f96193 files/digest-nwn-1.68-r1 4332
RMD160 9b648c63746fdc7cecebcc06f9615c2fe84b3c17 files/digest-nwn-1.68-r1 4332
SHA256 e85911769e045fbffabf268ac23de931cc4179e538d4c622b210f77a539f6432 files/digest-nwn-1.68-r1 4332
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.5 (GNU/Linux)
-
-iD8DBQFG00OKkT4lNIS36YERAvNXAKCKw/tHa0BxmVDdBloYd0dwpx23XwCcCBCJ
-F9MEdEQvv+DXebNl78TY3aY=
-=55hh
------END PGP SIGNATURE-----
+MD5 b6591661433d11d00d6bc36c5b2fc42f files/digest-nwn-1.68-r2 4588
+RMD160 541b72e08d3ab92f5d61c3f085dcaf9002ee69a9 files/digest-nwn-1.68-r2 4588
+SHA256 85ba3699925cc4fa44fd24b4ed31402cd801101c3c56fbd1b1b5a18f7d716a79 files/digest-nwn-1.68-r2 4588
diff --git a/games-rpg/nwn/files/digest-nwn-1.68-r2 b/games-rpg/nwn/files/digest-nwn-1.68-r2
new file mode 100644
index 000000000000..480573ff4101
--- /dev/null
+++ b/games-rpg/nwn/files/digest-nwn-1.68-r2
@@ -0,0 +1,48 @@
+MD5 73f4304a5c2afd016d656baa0e1f4d12 English_linuxclient168_orig.tar.gz 130569338
+RMD160 0622599a07c113ae69fed80416f7a6f16e9e715e English_linuxclient168_orig.tar.gz 130569338
+SHA256 03687bff0469cb08a7e5a14316e076a6bfe698121ccee4e2116f0bf119988092 English_linuxclient168_orig.tar.gz 130569338
+MD5 daa21d8ffa0b6007348d2339d0b22fe7 English_linuxclient168_xp1.tar.gz 134673662
+RMD160 5e9227ad86c183f90666b4ef10378227a0e1193a English_linuxclient168_xp1.tar.gz 134673662
+SHA256 e78716a83add4980674f86fd648d374b6086365620bde478b678edfdd4e7e82c English_linuxclient168_xp1.tar.gz 134673662
+MD5 59da99ffee12be8c1308b510055e5abf English_linuxclient168_xp2.tar.gz 120144829
+RMD160 22619133360c1283db268b0b3adbf16548716ccc English_linuxclient168_xp2.tar.gz 120144829
+SHA256 b8d69ad68c3e3ddf2332176ffd1494682bd9f9d254531720327a62be44e1ac2c English_linuxclient168_xp2.tar.gz 120144829
+MD5 23e1a995f71a1ac2dcfad1a34aa3ad09 French_linuxclient168_orig.tar.gz 131090499
+RMD160 10965e3c88d917e483618bfc8f827f51dd46c5b1 French_linuxclient168_orig.tar.gz 131090499
+SHA256 f32ed5a759a0a6b49d8f9ef39e313d49a8931725c0d5a61d3a8737d125902315 French_linuxclient168_orig.tar.gz 131090499
+MD5 389fbc5743aaabc82aa211922927a4fc French_linuxclient168_xp1.tar.gz 151199720
+RMD160 acb98760067cbc4674662d03ba78c9085cceccab French_linuxclient168_xp1.tar.gz 151199720
+SHA256 b9f8fe388519bc824bd2b0198a6c51b93d8a3534d16718b164b6c983fea08f9a French_linuxclient168_xp1.tar.gz 151199720
+MD5 83af9f06cc1bbe38d5cb90fe2da6a1a6 French_linuxclient168_xp2.tar.gz 133316339
+RMD160 10e5b126dde805ac89b15d85c4eea983f85f462b French_linuxclient168_xp2.tar.gz 133316339
+SHA256 7cc11a8cc7a613714c8d01c42b061baad874001da479db1d26903f494894e98a French_linuxclient168_xp2.tar.gz 133316339
+MD5 30567f7a39f36aaddc3c335716305548 German_linuxclient168_orig.tar.gz 131790824
+RMD160 589b2fe6c7e8ae27efb9187e8aacf42a65a70cdd German_linuxclient168_orig.tar.gz 131790824
+SHA256 d0850968fe68cdabfa3138810387dd4be0bf4338173dc02a46cd5ed7c4348b45 German_linuxclient168_orig.tar.gz 131790824
+MD5 d0741b1e37a869484cf4d5f7ba0cf50a German_linuxclient168_xp1.tar.gz 152951618
+RMD160 9d52520cbf92272dfdb8a53671cdc0f9aa68735d German_linuxclient168_xp1.tar.gz 152951618
+SHA256 11e0b929547860309007298e1851d368d445b7dc8ceab17cece33d51342bfdd8 German_linuxclient168_xp1.tar.gz 152951618
+MD5 e47d8643988af4d43e2725f0b9734ec0 German_linuxclient168_xp2.tar.gz 134425276
+RMD160 d466c589b64dd83e2a7ab5e8ebe45b5fb663d8aa German_linuxclient168_xp2.tar.gz 134425276
+SHA256 5d8fe43b751dd9372f45a1193cbf21da04b99fa5c735e5286d7306cf325f796d German_linuxclient168_xp2.tar.gz 134425276
+MD5 2eb3716fb70f148fc57a7bd931c3b155 Italian_linuxclient168_orig.tar.gz 132705873
+RMD160 226e49198f24f6e56b05d5646b211905b39a0283 Italian_linuxclient168_orig.tar.gz 132705873
+SHA256 650235b4ac464f7bdc873aaf8404ec51deef6e8a7c780a9bb237782c1575f95b Italian_linuxclient168_orig.tar.gz 132705873
+MD5 82903cf0124cd3111b61db22adcdee3c Italian_linuxclient168_xp1.tar.gz 143425395
+RMD160 b2709e89a0badec58cb8919fe8c6e3e0270a1481 Italian_linuxclient168_xp1.tar.gz 143425395
+SHA256 52da3063290f564c64905b0806201ad9623a62d99f38adae39e3eb0f5970eb94 Italian_linuxclient168_xp1.tar.gz 143425395
+MD5 70f12632e4309888320f092f3052248d Italian_linuxclient168_xp2.tar.gz 133867117
+RMD160 8e0ca0e29c7b6ac5ed20fb64cb88b569e3383e28 Italian_linuxclient168_xp2.tar.gz 133867117
+SHA256 8a8f87034ccda517e2c69dea61f6fe799a0e1ef5ced6eab2081980da988f49d8 Italian_linuxclient168_xp2.tar.gz 133867117
+MD5 9db994445ecf3465e93e19f65e7cf13e Spanish_linuxclient168_orig.tar.gz 132704890
+RMD160 699c5bdf5b020a91f3f1b86f961ae3416a62bd0d Spanish_linuxclient168_orig.tar.gz 132704890
+SHA256 01bfd907735a69112fc1847e82269ed2a3d00760a9906dd24819269e53173f13 Spanish_linuxclient168_orig.tar.gz 132704890
+MD5 ce396843a1403a9ba61c7ccb57222b87 Spanish_linuxclient168_xp1.tar.gz 143415370
+RMD160 897b862f8baa392e733413f847a5e2ebabd17bbf Spanish_linuxclient168_xp1.tar.gz 143415370
+SHA256 c74faed185b87a0f187f4e1bcf873ec3810a1fd8dba026b81bcf421e1ca121d9 Spanish_linuxclient168_xp1.tar.gz 143415370
+MD5 04719199f69f19277f5c068826eee72c Spanish_linuxclient168_xp2.tar.gz 133862305
+RMD160 25d36239aa9bb3e685f24c3e031128bbcbd1d1d6 Spanish_linuxclient168_xp2.tar.gz 133862305
+SHA256 b4d4efb0eb5d3395e42e665b518f3cec19c690b0f7f57783ecaa2e6aa8b70a5e Spanish_linuxclient168_xp2.tar.gz 133862305
+MD5 9aee1c50b2eb73f3322a82a534f79428 nwn-libsdl-1.2.12.tar.bz2 148325
+RMD160 e2f471345f5eee9c400ed6ef72bcafe15fb11853 nwn-libsdl-1.2.12.tar.bz2 148325
+SHA256 96fbbba9fbb95819f558f967c5ac898ab86799f858ad5741515851a2fa198835 nwn-libsdl-1.2.12.tar.bz2 148325
diff --git a/games-rpg/nwn/nwn-1.68-r2.ebuild b/games-rpg/nwn/nwn-1.68-r2.ebuild
new file mode 100644
index 000000000000..ddb67aaeeecd
--- /dev/null
+++ b/games-rpg/nwn/nwn-1.68-r2.ebuild
@@ -0,0 +1,247 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.68-r2.ebuild,v 1.1 2007/09/04 19:36:32 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://gentooexperimental.org/~calchan/distfiles/nwn-libsdl-1.2.12.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-r2
+ 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
+}
+
+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
+ done
+ 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 )
+}
+
+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"
+}