blob: 8a7ccc4b40ee18a8bbcd5dd87c7c42d8a397dafe (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop wrapper
DESCRIPTION="Top-down adventure game set in a gritty futuristic/dystopian city"
HOMEPAGE="https://wiki.scummvm.org/index.php/Dreamweb"
SRC_URI="doc? ( https://downloads.sourceforge.net/scummvm/${PN}-manuals-en-highres.zip )
l10n_de? ( https://downloads.sourceforge.net/scummvm/${PN}-cd-de-${PV}.zip )
l10n_en? ( https://downloads.sourceforge.net/scummvm/${PN}-cd-us-${PV}.zip )
l10n_en-GB? ( https://downloads.sourceforge.net/scummvm/${PN}-cd-uk-${PV}.zip )
l10n_es? ( https://downloads.sourceforge.net/scummvm/${PN}-cd-es-${PV}.zip )
l10n_fr? ( https://downloads.sourceforge.net/scummvm/${PN}-cd-fr-${PV}.zip )
l10n_it? ( https://downloads.sourceforge.net/scummvm/${PN}-cd-it-${PV}.zip )
!l10n_de? ( !l10n_en? ( !l10n_en-GB? ( !l10n_es? ( !l10n_fr? ( !l10n_it? \
( https://downloads.sourceforge.net/scummvm/${PN}-cd-us-${PV}.zip ) ) ) ) ) )
http://www.scummvm.org/images/cat-dreamweb.png"
S="${WORKDIR}"
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[flac]"
BDEPEND="app-arch/unzip"
src_unpack() {
MY_L10N=( $(usev l10n_de) $(usev l10n_es) $(usev l10n_fr) $(usev l10n_it) )
MY_L10N+=( $(usev l10n_{en,us}) $(usev l10n_{en-GB,uk}) )
[[ ${MY_L10N} ]] || MY_L10N=( l10n_us )
local lang
for lang in "${MY_L10N[@]//l10n_/}"; do
mkdir "${S}"/${lang} || die
cd "${S}"/${lang} || die
unpack ${PN}-cd-${lang}-${PV}.zip
done
if use doc; then
mkdir "${S}"/doc || die
cd "${S}"/doc || die
unpack ${PN}-manuals-en-highres.zip
fi
}
src_prepare() {
default
rm -f */license.txt */*.EXE || die
}
src_install() {
insinto /usr/share/${PN}
local lang
for lang in "${MY_L10N[@]//l10n_/}"; do
doins -r ${lang}
make_wrapper ${PN}-${lang} "scummvm -f -p \"${EPREFIX}/usr/share/${PN}/${lang}\" ${PN}"
make_desktop_entry ${PN}-${lang} "Dreamweb (${lang})"
done
newicon "${DISTDIR}"/cat-${PN}.png ${PN}.png
use doc && dodoc -r doc/.
}
|