forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dreamweb-1.1.ebuild
110 lines (102 loc) · 3.49 KB
/
dreamweb-1.1.ebuild
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit unpacker eutils games
DESCRIPTION="Top-down adventure game set in a gritty futuristic/dystopian city"
HOMEPAGE="http://wiki.scummvm.org/index.php/Dreamweb"
SRC_URI="doc? ( mirror://sourceforge/scummvm/${PN}-manuals-en-highres.zip )
l10n_de? ( mirror://sourceforge/scummvm/${PN}-cd-de-${PV}.zip )
l10n_en? ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip )
l10n_en-GB? ( mirror://sourceforge/scummvm/${PN}-cd-uk-${PV}.zip )
l10n_es? ( mirror://sourceforge/scummvm/${PN}-cd-es-${PV}.zip )
l10n_fr? ( mirror://sourceforge/scummvm/${PN}-cd-fr-${PV}.zip )
l10n_it? ( mirror://sourceforge/scummvm/${PN}-cd-it-${PV}.zip )
!l10n_de? ( !l10n_en? ( !l10n_en-GB? ( !l10n_es? ( !l10n_fr? ( !l10n_it? \
( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip ) ) ) ) ) )
http://www.scummvm.org/images/cat-dreamweb.png"
LICENSE="Dreamweb"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc l10n_de l10n_en l10n_en-GB l10n_es l10n_fr l10n_it"
RDEPEND=">=games-engines/scummvm-1.7[flac]"
DEPEND="$(unpacker_src_uri_depends)"
S=${WORKDIR}
src_unpack() {
if use l10n_de ; then
mkdir -p "${S}"/de || die
cd "${S}"/de || die
unpacker ${PN}-cd-de-${PV}.zip
fi
if use l10n_en || ( ! use l10n_de && ! use l10n_en && ! use l10n_en-GB && \
! use l10n_es && ! use l10n_fr && ! use l10n_it ) ; then
mkdir -p "${S}"/en_US || die
cd "${S}"/en_US || die
unpacker ${PN}-cd-us-${PV}.zip
fi
if use l10n_en-GB ; then
mkdir -p "${S}"/en_GB || die
cd "${S}"/en_GB || die
unpacker ${PN}-cd-uk-${PV}.zip
fi
if use l10n_es ; then
mkdir -p "${S}"/es || die
cd "${S}"/es || die
unpacker ${PN}-cd-es-${PV}.zip
fi
if use l10n_fr ; then
mkdir -p "${S}"/fr || die
cd "${S}"/fr || die
unpacker ${PN}-cd-fr-${PV}.zip
fi
if use l10n_it ; then
mkdir -p "${S}"/it || die
cd "${S}"/it || die
unpacker ${PN}-cd-it-${PV}.zip
fi
if use doc ; then
mkdir -p "${S}"/doc || die
cd "${S}"/doc || die
unpacker ${PN}-manuals-en-highres.zip
fi
}
src_prepare() {
rm -rf */license.txt */*.EXE || die
}
src_install() {
insinto "${GAMES_DATADIR}"/${PN}
newicon "${DISTDIR}"/cat-dreamweb.png dreamweb.png
if use l10n_de ; then
doins -r de
games_make_wrapper dreamweb-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" dreamweb" .
make_desktop_entry ${PN}-de "Dreamweb (Deutsch)" dreamweb
fi
if use l10n_en || ( ! use l10n_de && ! use l10n_en && ! use l10n_en-GB && \
! use l10n_es && ! use l10n_fr && ! use l10n_it ) ; then
doins -r en_US
games_make_wrapper dreamweb-en_US "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_US\" dreamweb" .
make_desktop_entry ${PN}-en_US "Dreamweb (US English)" dreamweb
fi
if use l10n_en-GB ; then
doins -r en_GB
games_make_wrapper dreamweb-en_GB "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_GB\" dreamweb" .
make_desktop_entry ${PN}-en_GB "Dreamweb (UK English)" dreamweb
fi
if use l10n_es ; then
doins -r es
games_make_wrapper dreamweb-es "scummvm -f -p \"${GAMES_DATADIR}/${PN}/es\" dreamweb" .
make_desktop_entry ${PN}-es "Dreamweb (Español)" dreamweb
fi
if use l10n_fr ; then
doins -r fr
games_make_wrapper dreamweb-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" dreamweb" .
make_desktop_entry ${PN}-fr "Dreamweb (Français)" dreamweb
fi
if use l10n_it ; then
doins -r it
games_make_wrapper dreamweb-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" dreamweb" .
make_desktop_entry ${PN}-it "Dreamweb (Italiano)" dreamweb
fi
use doc && dodoc -r doc/*
prepgamesdirs
}