Gentoo Archives: gentoo-commits

From: "Denis Dupeyron (calchan)" <calchan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-server/nwn-ded: ChangeLog nwn-ded-1.68-r1.ebuild
Date: Thu, 21 Feb 2008 18:37:54
Message-Id: E1JSGIp-0002CD-KX@stork.gentoo.org
1 calchan 08/02/21 18:37:51
2
3 Modified: ChangeLog
4 Added: nwn-ded-1.68-r1.ebuild
5 Log:
6 Rewrote the ebuild. Multi-language installs are now possible. Added Japanese. Bug #191763 got fixed on the way.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.18 games-server/nwn-ded/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/nwn-ded/ChangeLog?rev=1.18&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/nwn-ded/ChangeLog?rev=1.18&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/nwn-ded/ChangeLog?r1=1.17&r2=1.18
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-server/nwn-ded/ChangeLog,v
19 retrieving revision 1.17
20 retrieving revision 1.18
21 diff -u -r1.17 -r1.18
22 --- ChangeLog 20 Feb 2008 07:35:16 -0000 1.17
23 +++ ChangeLog 21 Feb 2008 18:37:51 -0000 1.18
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-server/nwn-ded
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/ChangeLog,v 1.17 2008/02/20 07:35:16 calchan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/ChangeLog,v 1.18 2008/02/21 18:37:51 calchan Exp $
29 +
30 +*nwn-ded-1.68-r1 (21 Feb 2008)
31 +
32 + 21 Feb 2008; Denis Dupeyron <calchan@g.o> +nwn-ded-1.68-r1.ebuild:
33 + Rewrote the ebuild. Multi-language installs are now possible. Added
34 + Japanese. Bug #191763 got fixed on the way.
35
36 20 Feb 2008; Denis Dupeyron <calchan@g.o> nwn-ded-1.66.ebuild,
37 nwn-ded-1.67.ebuild, nwn-ded-1.68.ebuild:
38
39
40
41 1.1 games-server/nwn-ded/nwn-ded-1.68-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/nwn-ded/nwn-ded-1.68-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/nwn-ded/nwn-ded-1.68-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nwn-ded-1.68-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $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 $
51
52 inherit games
53
54 LANGUAGES="linguas_en linguas_fr linguas_it linguas_es linguas_de linguas_ja"
55 DIALOG_URL_BASE=http://files.bioware.com/neverwinternights/dialog/
56
57 DESCRIPTION="Neverwinter Nights Dedicated server"
58 HOMEPAGE="http://nwn.bioware.com/downloads/standaloneserver.html"
59 SRC_URI="http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer${PV}.zip
60 linguas_en? ( ${DIALOG_URL_BASE}/english/NWNEnglish${PV}dialog.zip )
61 linguas_fr? ( ${DIALOG_URL_BASE}/french/NWNFrench${PV}dialog.zip )
62 linguas_de? ( ${DIALOG_URL_BASE}/german/NWNGerman${PV}dialog.zip )
63 linguas_it? ( ${DIALOG_URL_BASE}/italian/NWNItalian${PV}dialog.zip )
64 linguas_es? ( ${DIALOG_URL_BASE}/spanish/NWNSpanish${PV}dialog.zip )
65 linguas_ja? ( ${DIALOG_URL_BASE}/japanese/NWNJapanese${PV}dialog.zip )"
66
67 LICENSE="NWN-EULA"
68 SLOT="0"
69 KEYWORDS="-* ~amd64 ~x86"
70 IUSE="${LANGUAGES}"
71 RESTRICT="mirror"
72
73 DEPEND="app-arch/unzip"
74 RDEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs
75 app-emulation/emul-linux-x86-compat )"
76
77 S=${WORKDIR}
78
79 src_unpack() {
80 mkdir common || die "Failed creating directory"
81 cd common
82 unpack NWNDedicatedServer${PV}.zip
83 tar -zxf linuxdedserver${PV/./}.tar.gz || die "Failed unpacking linuxdedserver"
84 rm -f *dedserver*.{tar.gz,sit,zip} *.exe *.dll
85 cd ..
86 local currentlocale=""
87 local a
88 for a in ${A}
89 do
90 if [ -z "${a/*dialog*/}" ] ; then
91 if [ -z "${a/*English*/}" ]; then currentlocale="en"; fi
92 if [ -z "${a/*French*/}" ]; then currentlocale="fr"; fi
93 if [ -z "${a/*German*/}" ]; then currentlocale="de"; fi
94 if [ -z "${a/*Italian*/}" ]; then currentlocale="it"; fi
95 if [ -z "${a/*Spanish*/}" ]; then currentlocale="es"; fi
96 if [ -z "${a/*Japanese*/}" ]; then currentlocale="ja"; fi
97 mkdir ${currentlocale} || die "Failed creating directory"
98 cd ${currentlocale}
99 cp -rfl ../common/* . || die "Failed hard-linking to common directory"
100 unpack "${a}"
101 cd ..
102 fi
103 done
104 }
105
106 src_install() {
107 local dir=${GAMES_PREFIX_OPT}/${PN}
108 dodir ${dir}
109
110 local currentlocale
111 for currentlocale in * ; do
112 if [[ ${currentlocale} != "common" ]]
113 then
114 games_make_wrapper nwserver-${currentlocale} ./nwserver "${dir}/${currentlocale}" "${dir}/${currentlocale}"
115 fi
116 done
117
118 mv * "${D}/${dir}"/ || die "Failed installing server"
119
120 prepgamesdirs
121 chmod -R g+w "${D}/${dir}"
122 }
123
124
125
126 --
127 gentoo-commits@l.g.o mailing list