diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2008-02-21 18:37:51 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2008-02-21 18:37:51 +0000 |
commit | f270fc992d04a1445868706f2d1e912ca5f44f99 (patch) | |
tree | 35a715a8db4a57a46b96052ed7a70a79c66c5312 /games-server/nwn-ded | |
parent | Removing old ebuilds (diff) | |
download | gentoo-2-f270fc992d04a1445868706f2d1e912ca5f44f99.tar.gz gentoo-2-f270fc992d04a1445868706f2d1e912ca5f44f99.tar.bz2 gentoo-2-f270fc992d04a1445868706f2d1e912ca5f44f99.zip |
Rewrote the ebuild. Multi-language installs are now possible. Added Japanese. Bug #191763 got fixed on the way.
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-server/nwn-ded')
-rw-r--r-- | games-server/nwn-ded/ChangeLog | 8 | ||||
-rw-r--r-- | games-server/nwn-ded/nwn-ded-1.68-r1.ebuild | 75 |
2 files changed, 82 insertions, 1 deletions
diff --git a/games-server/nwn-ded/ChangeLog b/games-server/nwn-ded/ChangeLog index cebde69faf41..e7e365e59536 100644 --- a/games-server/nwn-ded/ChangeLog +++ b/games-server/nwn-ded/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-server/nwn-ded # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/ChangeLog,v 1.17 2008/02/20 07:35:16 calchan Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/ChangeLog,v 1.18 2008/02/21 18:37:51 calchan Exp $ + +*nwn-ded-1.68-r1 (21 Feb 2008) + + 21 Feb 2008; Denis Dupeyron <calchan@gentoo.org> +nwn-ded-1.68-r1.ebuild: + Rewrote the ebuild. Multi-language installs are now possible. Added + Japanese. Bug #191763 got fixed on the way. 20 Feb 2008; Denis Dupeyron <calchan@gentoo.org> nwn-ded-1.66.ebuild, nwn-ded-1.67.ebuild, nwn-ded-1.68.ebuild: diff --git a/games-server/nwn-ded/nwn-ded-1.68-r1.ebuild b/games-server/nwn-ded/nwn-ded-1.68-r1.ebuild new file mode 100644 index 000000000000..c92dd6ab5f55 --- /dev/null +++ b/games-server/nwn-ded/nwn-ded-1.68-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/nwn-ded-1.68-r1.ebuild,v 1.1 2008/02/21 18:37:51 calchan Exp $ + +inherit games + +LANGUAGES="linguas_en linguas_fr linguas_it linguas_es linguas_de linguas_ja" +DIALOG_URL_BASE=http://files.bioware.com/neverwinternights/dialog/ + +DESCRIPTION="Neverwinter Nights Dedicated server" +HOMEPAGE="http://nwn.bioware.com/downloads/standaloneserver.html" +SRC_URI="http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer${PV}.zip + linguas_en? ( ${DIALOG_URL_BASE}/english/NWNEnglish${PV}dialog.zip ) + linguas_fr? ( ${DIALOG_URL_BASE}/french/NWNFrench${PV}dialog.zip ) + linguas_de? ( ${DIALOG_URL_BASE}/german/NWNGerman${PV}dialog.zip ) + linguas_it? ( ${DIALOG_URL_BASE}/italian/NWNItalian${PV}dialog.zip ) + linguas_es? ( ${DIALOG_URL_BASE}/spanish/NWNSpanish${PV}dialog.zip ) + linguas_ja? ( ${DIALOG_URL_BASE}/japanese/NWNJapanese${PV}dialog.zip )" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="${LANGUAGES}" +RESTRICT="mirror" + +DEPEND="app-arch/unzip" +RDEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-compat )" + +S=${WORKDIR} + +src_unpack() { + mkdir common || die "Failed creating directory" + cd common + unpack NWNDedicatedServer${PV}.zip + tar -zxf linuxdedserver${PV/./}.tar.gz || die "Failed unpacking linuxdedserver" + rm -f *dedserver*.{tar.gz,sit,zip} *.exe *.dll + cd .. + local currentlocale="" + local a + for a in ${A} + do + if [ -z "${a/*dialog*/}" ] ; then + if [ -z "${a/*English*/}" ]; then currentlocale="en"; fi + if [ -z "${a/*French*/}" ]; then currentlocale="fr"; fi + if [ -z "${a/*German*/}" ]; then currentlocale="de"; fi + if [ -z "${a/*Italian*/}" ]; then currentlocale="it"; fi + if [ -z "${a/*Spanish*/}" ]; then currentlocale="es"; fi + if [ -z "${a/*Japanese*/}" ]; then currentlocale="ja"; fi + mkdir ${currentlocale} || die "Failed creating directory" + cd ${currentlocale} + cp -rfl ../common/* . || die "Failed hard-linking to common directory" + unpack "${a}" + cd .. + fi + done +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + dodir ${dir} + + local currentlocale + for currentlocale in * ; do + if [[ ${currentlocale} != "common" ]] + then + games_make_wrapper nwserver-${currentlocale} ./nwserver "${dir}/${currentlocale}" "${dir}/${currentlocale}" + fi + done + + mv * "${D}/${dir}"/ || die "Failed installing server" + + prepgamesdirs + chmod -R g+w "${D}/${dir}" +} |