diff options
author | 2011-09-16 11:36:04 +0000 | |
---|---|---|
committer | 2011-09-16 11:36:04 +0000 | |
commit | 4de86db2e0db3b9a7422d10f66793578bd2e839a (patch) | |
tree | fbe697228b50c84c6f83c180476ee2d534e5c62a /games-server/nwn-ded | |
parent | Use correct includedir in .pc file. (diff) | |
download | gentoo-2-4de86db2e0db3b9a7422d10f66793578bd2e839a.tar.gz gentoo-2-4de86db2e0db3b9a7422d10f66793578bd2e839a.tar.bz2 gentoo-2-4de86db2e0db3b9a7422d10f66793578bd2e839a.zip |
version bump to 1.69 Bug #357541
(Portage version: 2.1.10.15/cvs/Linux i686)
Diffstat (limited to 'games-server/nwn-ded')
-rw-r--r-- | games-server/nwn-ded/ChangeLog | 9 | ||||
-rw-r--r-- | games-server/nwn-ded/nwn-ded-1.69.ebuild | 70 |
2 files changed, 77 insertions, 2 deletions
diff --git a/games-server/nwn-ded/ChangeLog b/games-server/nwn-ded/ChangeLog index 73bbed83ae1f..ca226dbf3586 100644 --- a/games-server/nwn-ded/ChangeLog +++ b/games-server/nwn-ded/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-server/nwn-ded -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/ChangeLog,v 1.22 2010/06/28 22:35:18 mr_bones_ Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/ChangeLog,v 1.23 2011/09/16 11:36:04 tupone Exp $ + +*nwn-ded-1.69 (16 Sep 2011) + + 16 Sep 2011; Tupone Alfredo <tupone@gentoo.org> +nwn-ded-1.69.ebuild: + version bump to 1.69 Bug #357541 by Stefano Balocco 28 Jun 2010; Michael Sterrett <mr_bones_@gentoo.org> -nwn-ded-1.66.ebuild, nwn-ded-1.68-r1.ebuild: diff --git a/games-server/nwn-ded/nwn-ded-1.69.ebuild b/games-server/nwn-ded/nwn-ded-1.69.ebuild new file mode 100644 index 000000000000..96a7b8572fd9 --- /dev/null +++ b/games-server/nwn-ded/nwn-ded-1.69.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2011 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.69.ebuild,v 1.1 2011/09/16 11:36:04 tupone Exp $ + +inherit games + +LANGUAGES="linguas_en" +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 )" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="${LANGUAGES}" +RESTRICT="mirror strip" + +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}" +} |