You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.8 KiB
66 lines
1.8 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit eutils
|
||
12 years ago
|
|
||
6 years ago
|
INT_PV="1.1"
|
||
12 years ago
|
INT_URI="mirror://sourceforge/scummvm/drascula-int-${INT_PV}.zip"
|
||
6 years ago
|
DAT_PV="2.0.0"
|
||
|
AUD_PV="2.0"
|
||
|
|
||
12 years ago
|
DESCRIPTION="Drascula: The Vampire Strikes Back"
|
||
|
HOMEPAGE="http://www.alcachofasoft.com/"
|
||
|
SRC_URI="mirror://sourceforge/scummvm/drascula-${PV}.zip
|
||
6 years ago
|
https://github.com/scummvm/scummvm/raw/v${DAT_PV}/dists/engine-data/drascula.dat -> drascula-${DAT_PV}.dat
|
||
12 years ago
|
sound? ( mirror://sourceforge/scummvm/drascula-audio-${AUD_PV}.zip )
|
||
6 years ago
|
https://salsa.debian.org/games-team/drascula/raw/master/debian/icons/drascula.png
|
||
8 years ago
|
l10n_es? ( ${INT_URI} )
|
||
|
l10n_de? ( ${INT_URI} )
|
||
|
l10n_fr? ( ${INT_URI} )
|
||
|
l10n_it? ( ${INT_URI} )"
|
||
12 years ago
|
|
||
|
LICENSE="drascula"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
IUSE="l10n_es l10n_de l10n_fr l10n_it +sound"
|
||
12 years ago
|
RESTRICT="mirror"
|
||
|
|
||
|
RDEPEND=">=games-engines/scummvm-0.13.1"
|
||
|
DEPEND="${RDEPEND}
|
||
6 years ago
|
app-arch/unzip
|
||
|
"
|
||
12 years ago
|
|
||
6 years ago
|
S="${WORKDIR}"
|
||
12 years ago
|
|
||
|
src_unpack() {
|
||
8 years ago
|
if use l10n_es || use l10n_de || use l10n_fr || use l10n_it; then
|
||
12 years ago
|
unpack drascula-int-${INT_PV}.zip
|
||
|
fi
|
||
|
if use sound; then
|
||
|
unpack drascula-audio-${AUD_PV}.zip
|
||
|
fi
|
||
|
unpack drascula-${PV}.zip
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
local lang
|
||
|
|
||
6 years ago
|
make_wrapper ${PN} "scummvm -f -p \"/usr/share/${PN}\" drascula" .
|
||
|
for lang in es de fr it; do
|
||
8 years ago
|
if use l10n_${lang} ; then
|
||
6 years ago
|
make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"/usr/share/${PN}\" drascula" .
|
||
12 years ago
|
make_desktop_entry ${PN}-${lang} "Drascula: The Vampire Strikes Back (${lang})" ${PN}
|
||
|
fi
|
||
|
done
|
||
6 years ago
|
insinto /usr/share/${PN}
|
||
12 years ago
|
find . -name "P*.*" -execdir doins '{}' +
|
||
|
newins "${DISTDIR}"/drascula-${DAT_PV}.dat drascula.dat
|
||
|
if use sound; then
|
||
|
doins audio/*
|
||
|
fi
|
||
|
dodoc readme.txt drascula.doc
|
||
6 years ago
|
doicon "${DISTDIR}"/${PN}.png
|
||
12 years ago
|
make_desktop_entry ${PN} "Drascula: The Vampire Strikes Back"
|
||
|
}
|