/[gentoo-x86]/games-rpg/soltys/soltys-1.0-r1.ebuild
Gentoo

Contents of /games-rpg/soltys/soltys-1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Feb 10 10:08:28 2015 UTC (4 years, 11 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #539062

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/soltys/soltys-1.0-r1.ebuild,v 1.2 2015/02/06 13:41:54 ago Exp $
4
5 EAPI=5
6 inherit unpacker eutils games
7
8 DESCRIPTION="Classic adventure game"
9 HOMEPAGE="http://wiki.scummvm.org/index.php/Soltys"
10 SRC_URI="linguas_en? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip )
11 linguas_es? ( mirror://sourceforge/scummvm/${PN}-es-v${PV}.zip )
12 linguas_pl? ( mirror://sourceforge/scummvm/${PN}-pl-v${PV}.zip )
13 !linguas_en? ( !linguas_es? ( !linguas_pl? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip ) ) )
14 http://www.scummvm.org/images/cat-soltys.png"
15
16 LICENSE="Soltys"
17 SLOT="0"
18 KEYWORDS="amd64 x86"
19 IUSE="linguas_en linguas_es linguas_pl"
20
21 RDEPEND=">=games-engines/scummvm-1.5"
22 DEPEND="$(unpacker_src_uri_depends)"
23
24 S=${WORKDIR}
25
26 src_unpack() {
27 if use linguas_en || ( ! use linguas_en && ! use linguas_es && ! use linguas_pl ) ; then
28 mkdir -p en || die
29 unpacker ${PN}-en-v${PV}.zip
30 mv vol.{cat,dat} en/ || die
31 fi
32 if use linguas_es ; then
33 mkdir -p es || die
34 unpacker ${PN}-es-v${PV}.zip
35 mv soltys-es-v1-0/vol.{cat,dat} es/ || die
36 fi
37 if use linguas_pl ; then
38 mkdir -p pl || die
39 unpacker ${PN}-pl-v${PV}.zip
40 mv vol.{cat,dat} pl/ || die
41 fi
42 }
43
44 src_prepare() {
45 rm -rf license.txt soltys-es-v1-0
46 }
47
48 src_install() {
49 insinto "${GAMES_DATADIR}"/${PN}
50 doins -r *
51 newicon "${DISTDIR}"/cat-soltys.png soltys.png
52 if use linguas_en || ( ! use linguas_en && ! use linguas_es && ! use linguas_pl ) ; then
53 games_make_wrapper soltys-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" soltys" .
54 make_desktop_entry ${PN}-en "Soltys (English)" soltys
55 fi
56 if use linguas_es ; then
57 games_make_wrapper soltys-es "scummvm -f -p \"${GAMES_DATADIR}/${PN}/es\" soltys" .
58 make_desktop_entry ${PN}-es "Soltys (EspaƱol)" soltys
59 fi
60 if use linguas_pl ; then
61 games_make_wrapper soltys-pl "scummvm -f -p \"${GAMES_DATADIR}/${PN}/pl\" soltys" .
62 make_desktop_entry ${PN}-pl "Soltys (Polski)" soltys
63 fi
64 prepgamesdirs
65 }

  ViewVC Help
Powered by ViewVC 1.1.20