Skip to content

Commit

Permalink
games-strategy/ja2-stracciatella: Migrate from LINGUAS to L10N.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ulm committed Jan 7, 2018
1 parent b21fd88 commit fd453e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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//+/} )"

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion games-strategy/ja2-stracciatella/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit fd453e3

Please sign in to comment.