Lines 1-13
Link Here
|
1 |
# Copyright 1999-2007 Gentoo Foundation |
1 |
# Copyright 1999-2007 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/nwn-data-1.29-r1.ebuild,v 1.12 2007/03/12 13:16:10 wolf31o2 Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils games |
5 |
inherit eutils games |
6 |
|
6 |
|
7 |
# Diamond DVD - NWN, SoU, HotU (1 disk) |
7 |
# Diamond DVD - NWN, SoU, HotU (1 disk) |
8 |
# Platinum CD/DVD - NWN, SoU, HotU (4 disks/1 disk) |
8 |
# Platinum CD/DVD - NWN, SoU, HotU (4 disks/1 disk) |
9 |
# Deluxe CD - NWN, SoU, HotU (5 disks) |
9 |
# Deluxe CD - NWN, SoU, HotU (5 disks) |
10 |
# Gold CD - NWN, SoU |
10 |
# Gold CD - NWN, SoU (4 disks) |
11 |
# Original CD - NWN (1 disk) |
11 |
# Original CD - NWN (1 disk) |
12 |
|
12 |
|
13 |
LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en" |
13 |
LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en" |
Lines 82-87
Link Here
|
82 |
then |
83 |
then |
83 |
NWN_SET="platinum_cd" |
84 |
NWN_SET="platinum_cd" |
84 |
einfo "Neverwinter Nights Platinum DVD/CD set found..." |
85 |
einfo "Neverwinter Nights Platinum DVD/CD set found..." |
|
|
86 |
elif [[ -f "${CD_ROOT}"/ArcadeInstallNWNXP1_12d.EXE ]] |
87 |
then |
88 |
NWN_SET="gold_cd" |
89 |
einfo "Neverwinter Nights Gold CD set found..." |
85 |
elif [[ -f "${CD_ROOT}"/ArcadeInstallNWN109.exe ]] |
90 |
elif [[ -f "${CD_ROOT}"/ArcadeInstallNWN109.exe ]] |
86 |
then |
91 |
then |
87 |
NWN_SET="original_cd" |
92 |
NWN_SET="original_cd" |
Lines 99-104
Link Here
|
99 |
then |
104 |
then |
100 |
NWN_SET="platinum_cd" |
105 |
NWN_SET="platinum_cd" |
101 |
einfo "Neverwinter Nights Platinum DVD/CD set found..." |
106 |
einfo "Neverwinter Nights Platinum DVD/CD set found..." |
|
|
107 |
elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP1_12d.EXE ]] |
108 |
then |
109 |
NWN_SET="gold_cd" |
110 |
einfo "Neverwinter Nights Gold CD set found..." |
102 |
elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWN109.exe ]] |
111 |
elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWN109.exe ]] |
103 |
then |
112 |
then |
104 |
NWN_SET="original_cd" |
113 |
NWN_SET="original_cd" |
Lines 118-123
Link Here
|
118 |
then |
127 |
then |
119 |
NWN_SET="platinum_cd" |
128 |
NWN_SET="platinum_cd" |
120 |
einfo "Neverwinter Nights Platinum DVD/CD set found..." |
129 |
einfo "Neverwinter Nights Platinum DVD/CD set found..." |
|
|
130 |
elif [[ -f "${mline}"/ArcadeInstallNWNXP1_12d.EXE ]] |
131 |
then |
132 |
NWN_SET="gold_cd" |
133 |
einfo "Neverwinter Nights Gold CD set found..." |
121 |
elif [[ -f "${mline}"/ArcadeInstallNWN109.exe ]] |
134 |
elif [[ -f "${mline}"/ArcadeInstallNWN109.exe ]] |
122 |
then |
135 |
then |
123 |
NWN_SET="original_cd" |
136 |
NWN_SET="original_cd" |
Lines 156-161
Link Here
|
156 |
cdrom_get_cds ArcadeInstallNWNXP213f.EXE \ |
169 |
cdrom_get_cds ArcadeInstallNWNXP213f.EXE \ |
157 |
disk2.zip disk3.zip disk4.zip |
170 |
disk2.zip disk3.zip disk4.zip |
158 |
;; |
171 |
;; |
|
|
172 |
gold_cd) |
173 |
einfo "Shadow of Undrentide will be installed from your CDS along" |
174 |
einfo "with the original Neverwinter Nights. If you have the" |
175 |
einfo "Hordes of the Underdark expansion, it will be installed after." |
176 |
touch .metadata/orig || die "touch orig" |
177 |
touch .metadata/sou || die "touch sou" |
178 |
export CDROM_NAME_4="CD4" |
179 |
if use hou |
180 |
then |
181 |
einfo "You will also need the HoU CDs for this installation." |
182 |
export CDROM_NAME_5="HoU" |
183 |
cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \ |
184 |
disk3.zip disk4.zip ArcadeInstallNWNXP213f.EXE |
185 |
else |
186 |
cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \ |
187 |
disk3.zip disk4.zip |
188 |
fi |
189 |
;; |
159 |
original_cd) |
190 |
original_cd) |
160 |
einfo "We will be installing the original Neverwinter Nights. If" |
191 |
einfo "We will be installing the original Neverwinter Nights. If" |
161 |
einfo "you also have the Shadows of Undrentide or Hordes of the" |
192 |
einfo "you also have the Shadows of Undrentide or Hordes of the" |
Lines 261-266
Link Here
|
261 |
unzip -qo "${CDROM_ROOT}"/xp1_data.zip || die "unpacking" |
292 |
unzip -qo "${CDROM_ROOT}"/xp1_data.zip || die "unpacking" |
262 |
fi |
293 |
fi |
263 |
;; |
294 |
;; |
|
|
295 |
gold_cd) |
296 |
# Variety of ZIP's off 4 CD's |
297 |
mkdir -p "${S}" |
298 |
cd "${S}" |
299 |
einfo "Unpacking files..." |
300 |
einfo "Copying files from CD1" |
301 |
cp "${CDROM_ROOT}"/Data_Shared.zip . || die "unpacking" |
302 |
cp "${CDROM_ROOT}"/Language_data.zip . || die "unpacking" |
303 |
cp "${CDROM_ROOT}"/Language_update.zip . || die "unpacking" |
304 |
# Yay cd switching |
305 |
cdrom_load_next_cd |
306 |
unzip -qo "${CDROM_ROOT}"/disk2.zip || die "unpacking" |
307 |
cdrom_load_next_cd |
308 |
unzip -qo "${CDROM_ROOT}"/disk3.zip || die "unpacking" |
309 |
cdrom_load_next_cd |
310 |
unzip -qo "${CDROM_ROOT}"/disk4.zip || die "unpacking" |
311 |
# Amazingly enough, the order of operations matter. |
312 |
unzip -qo "${S}"/Data_Shared.zip || die "unpacking" |
313 |
unzip -qo "${S}"/Language_data.zip || die "unpacking" |
314 |
unzip -qo "${S}"/Language_update.zip || die "unpacking" |
315 |
rm -f Data_Shared.zip |
316 |
rm -f Language_data.zip |
317 |
rm -f Language_update.zip |
318 |
# Expansion pack |
319 |
if use hou |
320 |
then |
321 |
rm -f xp1patch.key data/xp1patch.bif override/* |
322 |
cdrom_load_next_cd |
323 |
einfo "Unpacking files..." |
324 |
unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" |
325 |
unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" |
326 |
unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" |
327 |
touch .metadata/hou || die "touching hou" |
328 |
fi |
329 |
;; |
264 |
original_cd) |
330 |
original_cd) |
265 |
# Now, we need to create our directories, since we know we'll end up |
331 |
# Now, we need to create our directories, since we know we'll end up |
266 |
# needing them for our install. |
332 |
# needing them for our install. |