blob: 6644c0c092c25084af524bf982ade4bc73477879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r1.ebuild,v 1.3 2013/01/30 19:08:34 ago Exp $
EAPI=4
inherit eutils cdrom check-reqs games
DESCRIPTION="Arx Fatalis data files"
HOMEPAGE="http://www.arkane-studios.com/uk/arx.php"
SRC_URI="http://download.zenimax.com/arxfatalis/patches/1.21/ArxFatalis_1.21_MULTILANG.exe"
LICENSE="ArxFatalis-EULA-JoWooD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="mirror"
RDEPEND="games-rpg/arx-libertatis"
DEPEND="app-arch/cabextract
app-arch/innoextract"
LANGS="linguas_de +linguas_en linguas_es linguas_fr linguas_it linguas_ru"
IUSE="$IUSE $LANGS"
REQUIRED_USE="^^ ( ${LANGS//+/} )"
CHECKREQS_DISK_BUILD="621M"
CHECKREQS_DISK_USR="617M"
S=${WORKDIR}
src_unpack() {
cdrom_get_cds bin/Arx.ttf
local mylang
case ${LINGUAS} in
de) mylang="german" ;;
en) mylang="english" ;;
es) mylang="spanish" ;;
fr) mylang="french" ;;
it) mylang="italian" ;;
ru) mylang="russian" ;;
esac
elog "Chosen language is ${mylang}"
find "${CDROM_ROOT}" -iname "setup*.cab" -exec cabextract '{}' \;
innoextract --lowercase --language=${mylang} \
"${DISTDIR}"/ArxFatalis_1.21_MULTILANG.exe || die
}
src_install() {
insinto "${GAMES_DATADIR}"/arx
doins -r app/{graph,misc}
find . -iname "*.pak" -exec doins '{}' \;
dodoc app/{manual,map}.pdf
# convert to lowercase
cd "${D}"
find . -type f -exec sh -c 'echo "${1}"
lower="`echo "${1}" | tr [:upper:] [:lower:]`"
[ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
prepgamesdirs
}
pkg_postinst() {
elog "You need Arx Fatalis in the chosen language, otherwise set it in package.use!"
games_pkg_postinst
}
|