summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-01-07 01:31:17 +0100
committerUlrich Müller <ulm@gentoo.org>2018-01-07 01:31:17 +0100
commitfd453e376dd8a276b5c7082fe049fb73c4e60163 (patch)
treea795fa88444b723c1fcd1160810d5bdd18358d1a /games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
parentgames-server/nwn-ded: Migrate from LINGUAS to L10N. (diff)
downloadgentoo-fd453e376dd8a276b5c7082fe049fb73c4e60163.tar.gz
gentoo-fd453e376dd8a276b5c7082fe049fb73c4e60163.tar.bz2
gentoo-fd453e376dd8a276b5c7082fe049fb73c4e60163.zip
games-strategy/ja2-stracciatella: Migrate from LINGUAS to L10N.
Add an additional "ru-gold" USE flag, selecting between russian gold and russian language versions. Closes: https://bugs.gentoo.org/583766 Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild')
-rw-r--r--games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild11
1 files changed, 5 insertions, 6 deletions
diff --git a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
index ee606b9cafda..4da66d2c406f 100644
--- a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
+++ b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -12,14 +12,14 @@ SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz
LICENSE="SFI-SCLA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="cdinstall editor zlib"
+IUSE="cdinstall editor ru-gold zlib"
DEPEND="media-libs/libsdl[X,sound,video]
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}
cdinstall? ( games-strategy/ja2-stracciatella-data )"
-LANGS="linguas_de +linguas_en linguas_fr linguas_it linguas_nl linguas_pl linguas_ru linguas_ru_gold"
+LANGS="l10n_de +l10n_en l10n_fr l10n_it l10n_nl l10n_pl l10n_ru"
IUSE="$IUSE $LANGS"
REQUIRED_USE="^^ ( ${LANGS//+/} )"
@@ -39,14 +39,13 @@ src_prepare() {
src_compile() {
local myconf
- case ${LINGUAS} in
+ case ${L10N} in
de) myconf="LNG=GERMAN" ;;
nl) myconf="LNG=DUTCH" ;;
fr) myconf="LNG=FRENCH" ;;
it) myconf="LNG=ITALIAN" ;;
pl) myconf="LNG=POLISH" ;;
- ru) myconf="LNG=RUSSIAN" ;;
- ru_gold) myconf="LNG=RUSSIAN_GOLD" ;;
+ ru) myconf="LNG=$(usex ru-gold RUSSIAN_GOLD RUSSIAN)" ;;
en) myconf="LNG=ENGLISH" ;;
*) die "wat" ;;
esac