/[gentoo-x86]/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r1.ebuild
Gentoo

Contents of /games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jan 30 19:08:34 2013 UTC (3 months, 2 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
Stable for x86, wrt bug #428222

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.13