diff options
Diffstat (limited to 'games-rpg/soltys')
-rw-r--r-- | games-rpg/soltys/Manifest | 4 | ||||
-rw-r--r-- | games-rpg/soltys/soltys-1.0-r2.ebuild | 64 |
2 files changed, 68 insertions, 0 deletions
diff --git a/games-rpg/soltys/Manifest b/games-rpg/soltys/Manifest new file mode 100644 index 000000000000..a559d66c7ada --- /dev/null +++ b/games-rpg/soltys/Manifest @@ -0,0 +1,4 @@ +DIST cat-soltys.png 1917 BLAKE2B c33be51239b1df521b117c44ad2a6e427c26b64a37a1c72331aacfa797913e6d9a83b87689cccaa1e28fef44f47f7ffbc5f712a47b7488f4a237eb121f8297e1 SHA512 c2df23275372582300d3d87d2b629548dabf61ad9d031cb352f4167d956d5126926efee41b24f48040390177b6f28e1b432ff5049bb66858316cce37106aaca8 +DIST soltys-en-v1.0.zip 3484518 BLAKE2B 04d49de79af0d18a5e35ee618de18c0c70b0d9670f9533ce29759aae34542038d31d9b096b25f7d7ee830bea6d0933df9d782b705b7dcaa46144023b9d88a037 SHA512 92637d760033c044b3979dfe21f617db0b2cf98c48587e058910f877b38e0887fed8102782f1dfac85bc8eefa68d3791d7ff2d6074396bea2728a128e37cee1d +DIST soltys-es-v1.0.zip 3527349 BLAKE2B ac567c7727c8150b75d681e8f416aab859725a665c8e0b6ec628c7a0f101b0ffcf9fb2822d0dafbbd252c1a92f01bcb43f05c8f39447ef8dcf4a591afa441b8a SHA512 eac3aa60e274720f65504ffe5bc18f99401a24c5775c3bc6eb893aef2af7e02055eb52e3da162f124babe5b611f93ff5444aca6e2ea26e5baa98a2131dd49da0 +DIST soltys-pl-v1.0.zip 3483638 BLAKE2B 35269130a2d4699cd709deaeaf96cd95786dcb3b4ceb77b00682f865ab796245e7830805ff4989d4298e54bcc963c45ef8e58ef2200376b41722df33a82b41b5 SHA512 b8c04366d360eb4b7f296718ae46a2e417b676f9bddd6fb8555069d8972ae2ff1706c67fc473a52a5009cb433ff58db377e5f02ff6b27e68e35d2a89c8108f24 diff --git a/games-rpg/soltys/soltys-1.0-r2.ebuild b/games-rpg/soltys/soltys-1.0-r2.ebuild new file mode 100644 index 000000000000..e709836c31e9 --- /dev/null +++ b/games-rpg/soltys/soltys-1.0-r2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit unpacker eutils + +DESCRIPTION="Classic adventure game" +HOMEPAGE="http://wiki.scummvm.org/index.php/Soltys" +SRC_URI="l10n_en? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip ) + l10n_es? ( mirror://sourceforge/scummvm/${PN}-es-v${PV}.zip ) + l10n_pl? ( mirror://sourceforge/scummvm/${PN}-pl-v${PV}.zip ) + !l10n_en? ( !l10n_es? ( !l10n_pl? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip ) ) ) + http://www.scummvm.org/images/cat-soltys.png" + +LICENSE="Soltys" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="l10n_en l10n_es l10n_pl" + +RDEPEND=">=games-engines/scummvm-1.5" +DEPEND="$(unpacker_src_uri_depends)" + +S="${WORKDIR}" + +src_unpack() { + if use l10n_en || ( ! use l10n_en && ! use l10n_es && ! use l10n_pl ) ; then + mkdir -p en || die + unpacker ${PN}-en-v${PV}.zip + mv vol.{cat,dat} en/ || die + fi + if use l10n_es ; then + mkdir -p es || die + unpacker ${PN}-es-v${PV}.zip + mv soltys-es-v1-0/vol.{cat,dat} es/ || die + fi + if use l10n_pl ; then + mkdir -p pl || die + unpacker ${PN}-pl-v${PV}.zip + mv vol.{cat,dat} pl/ || die + fi +} + +src_prepare() { + default + rm -rf license.txt soltys-es-v1-0 +} + +src_install() { + insinto /usr/share/${PN} + doins -r * + newicon "${DISTDIR}"/cat-soltys.png soltys.png + if use l10n_en || ( ! use l10n_en && ! use l10n_es && ! use l10n_pl ) ; then + make_wrapper soltys-en "scummvm -f -p \"/usr/share/${PN}/en\" soltys" . + make_desktop_entry ${PN}-en "Soltys (English)" soltys + fi + if use l10n_es ; then + make_wrapper soltys-es "scummvm -f -p \"/usr/share/${PN}/es\" soltys" . + make_desktop_entry ${PN}-es "Soltys (Español)" soltys + fi + if use l10n_pl ; then + make_wrapper soltys-pl "scummvm -f -p \"/usr/share/${PN}/pl\" soltys" . + make_desktop_entry ${PN}-pl "Soltys (Polski)" soltys + fi +} |