/[gentoo-x86]/games-rpg/lure/lure-1.1.ebuild
Gentoo

Contents of /games-rpg/lure/lure-1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Mar 3 20:57:00 2015 UTC (2 years, 9 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +5 -5 lines
EAPI 5

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)

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/lure/lure-1.1.ebuild,v 1.5 2010/01/06 20:53:59 tupone Exp $
4
5 EAPI=5
6 inherit eutils games
7
8 DAT_PV=0.13.1
9 DESCRIPTION="Lure of the Temptress"
10 HOMEPAGE="http://www.revolution.co.uk/_display.php?id=10"
11 SRC_URI="
12 http://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-0-13-1/dists/engine-data/lure.dat -> lure-${DAT_PV}.dat
13 !linguas_en? ( !linguas_es? ( !linguas_fr? ( !linguas_de? ( !linguas_it?
14 ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip ) ) ) ) )
15 linguas_en? ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip )
16 linguas_es? ( mirror://sourceforge/scummvm/${PN}-es-${PV}.zip )
17 linguas_fr? ( mirror://sourceforge/scummvm/${PN}-fr-${PV}.zip )
18 linguas_de? ( mirror://sourceforge/scummvm/${PN}-de-${PV}.zip )
19 linguas_it? ( mirror://sourceforge/scummvm/${PN}-it-${PV}.zip )"
20
21 LICENSE="lure"
22 SLOT="0"
23 KEYWORDS="amd64 x86"
24 LANGS_IUSE="linguas_en linguas_es linguas_de linguas_fr linguas_it"
25 IUSE=${LANGS_IUSE}
26 RESTRICT="mirror"
27
28 RDEPEND=">=games-engines/scummvm-0.13.1"
29 DEPEND="${RDEPEND}
30 app-arch/unzip"
31
32 S=${WORKDIR}
33
34 any_linguas() {
35 use linguas_en || use linguas_es || use linguas_de || use linguas_fr || use linguas_it
36 }
37
38 src_unpack() {
39 local lang
40
41 if any_linguas ; then
42 for lang in ${LANGS_IUSE}
43 do
44 use ${lang} && unpack ${PN}-${lang/linguas_}-${PV}.zip
45 done
46 mv lure lure-en 2> /dev/null
47 else
48 unpack ${PN}-en-${PV}.zip
49 fi
50 }
51
52 src_prepare() {
53 local lang f
54
55 find . \
56 \( -iname "*exe" \
57 -o -iname "*ega" \
58 -o -iname LICENSE.txt \) \
59 -exec rm -f '{}' +
60 mkdir docs
61 if any_linguas ; then
62 for lang in ${LANGS_IUSE}
63 do
64 mkdir docs/${lang}
65 find lure-${lang/linguas_} \
66 \( -iname "*pdf" \
67 -o -iname README \
68 -o -iname "*txt" \) \
69 -exec mv '{}' docs/${lang} \; 2> /dev/null
70 done
71 else
72 find lure \
73 \( -iname "*pdf" \
74 -o -iname README \
75 -o -iname "*txt" \) \
76 -exec mv '{}' docs \; 2> /dev/null
77 fi
78 for f in $(find docs -type f)
79 do
80 mv ${f} ${f%.*}.$(echo ${f#*.} | tr '[[:upper:]]' '[[:lower:]]') 2> /dev/null
81 done
82 }
83
84 src_install() {
85 local lang
86
87 if any_linguas ; then
88 for lang in ${LANGS_IUSE}
89 do
90 if use ${lang} ; then
91 lang=${lang/linguas_}
92 insinto "${GAMES_DATADIR}"/${PN}-${lang}
93 newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat
94 doins -r ${PN}-${lang}/*
95 games_make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"${GAMES_DATADIR}/${PN}-${lang}\" lure" .
96 make_desktop_entry ${PN}-${lang} "Lure of the Temptress (${lang})" ${PN}
97 docinto linguas_${lang}
98 dodoc docs/linguas_${lang}/*
99 fi
100 done
101 else
102 insinto "${GAMES_DATADIR}"/${PN}
103 newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat
104 doins -r ${PN}/*
105 games_make_wrapper ${PN} "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" lure" .
106 make_desktop_entry ${PN} "Lure of the Temptress"
107 fi
108 prepgamesdirs
109 }

  ViewVC Help
Powered by ViewVC 1.1.20