games-strategy/ja2-stracciatella: Migrate from LINGUAS to L10N.
authorUlrich Müller <ulm@gentoo.org>
Sun, 7 Jan 2018 00:31:17 +0000 (01:31 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sun, 7 Jan 2018 00:31:17 +0000 (01:31 +0100)
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

games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild
games-strategy/ja2-stracciatella/metadata.xml

index ee606b9cafda297aa54a81d6ecc347342662094b..4da66d2c406f8a701fa2bf4f697180866db75f29 100644 (file)
@@ -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
index dd85b7c30ed4ce4c888cac40b1f094a00f1568be..3db7ad1de988069d4f0a54dab046b3cc339c4777 100644 (file)
@@ -7,6 +7,6 @@
        </maintainer>
        <use>
                <flag name="editor">Adds necessary file to run the editor</flag>
-               <flag name="linguas_ru_gold">Support for russian gold ja2 version</flag>
+               <flag name="ru-gold">Support for russian gold ja2 version</flag>
        </use>
 </pkgmetadata>