Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 152367 | Differences between
and this patch

Collapse All | Expand All

(-)nwn-1.68-r1.ebuild.orig (-6 / +53 lines)
Lines 154-164 Link Here
154
src_unpack() {
154
src_unpack() {
155
	mkdir -p "${S}"
155
	mkdir -p "${S}"
156
	cd "${S}"
156
	cd "${S}"
157
	AA=""
158
	mkdir -p .metadata
157
	mkdir -p .metadata
159
	for a in ${A}
158
	for a in ${A}
160
	do
159
	do
161
		if [ -n "${a/*dialog*}" ]
160
		if [ -z "${a/*orig*}" ]
162
		then
161
		then
163
			currentlocale=""
162
			currentlocale=""
164
			if [ -z "${a/*German*/}" ]
163
			if [ -z "${a/*German*/}" ]
Lines 182-187 Link Here
182
				mkdir -p "${currentlocale}"
181
				mkdir -p "${currentlocale}"
183
				cd "${currentlocale}"
182
				cd "${currentlocale}"
184
				unpack "${a}" || die "unpack ${a}"
183
				unpack "${a}" || die "unpack ${a}"
184
				cd ..
185
			fi
185
			fi
186
		fi
186
		fi
187
	done
187
	done
Lines 190-196 Link Here
190
	do
190
	do
191
		if [ -z "${a/*$SOU_NAME}" ]
191
		if [ -z "${a/*$SOU_NAME}" ]
192
		then
192
		then
193
			rm -f data/patch.bif patch.key && unpack ${a}
193
			currentlocale=""
194
			if [ -z "${a/*German*/}" ]
195
			then
196
				currentlocale=de
197
			elif [ -z "${a/*English*/}" ]
198
			then
199
				currentlocale=en
200
			elif [ -z "${a/*Spanish*/}" ]
201
			then
202
				currentlocale=es
203
			elif [ -z "${a/*Italian*/}" ]
204
			then
205
				currentlocale=it
206
			elif [ -z "${a/*French*/}" ]
207
			then
208
				currentlocale=fr
209
			fi
210
			if [ -n "$currentlocale" ]
211
			then
212
				cd "${currentlocale}"
213
				rm -f data/patch.bif patch.key
214
				unpack "${a}" || die "unpack ${a}"
215
				cd ..
216
			fi
194
		fi
217
		fi
195
	done )
218
	done )
196
	use hou && (
219
	use hou && (
Lines 198-205 Link Here
198
	do
221
	do
199
		if [ -z "${a/*$HOU_NAME}" ]
222
		if [ -z "${a/*$HOU_NAME}" ]
200
		then
223
		then
201
			rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key \
224
			currentlocale=""
202
				override/* && unpack ${a}
225
			if [ -z "${a/*German*/}" ]
226
			then
227
				currentlocale=de
228
			elif [ -z "${a/*English*/}" ]
229
			then
230
				currentlocale=en
231
			elif [ -z "${a/*Spanish*/}" ]
232
			then
233
				currentlocale=es
234
			elif [ -z "${a/*Italian*/}" ]
235
			then
236
				currentlocale=it
237
			elif [ -z "${a/*French*/}" ]
238
			then
239
				currentlocale=fr
240
			fi
241
			if [ -n "$currentlocale" ]
242
			then
243
				cd "${currentlocale}"
244
				rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key override/*
245
				unpack "${a}" || die "unpack ${a}"
246
				cd ..
247
			fi
248
249
203
		fi
250
		fi
204
	done )
251
	done )
205
	for a in ${A}
252
	for a in ${A}
Lines 225-231 Link Here
225
			fi
272
			fi
226
			if [ -n "$currentlocale" ]
273
			if [ -n "$currentlocale" ]
227
			then
274
			then
228
				(cd "${currentlocale}" ; unpack ${a} )
275
				(cd "${currentlocale}" ; unpack ${a} ; cd .. )
229
			fi
276
			fi
230
		fi
277
		fi
231
	done
278
	done

Return to bug 152367