1 |
commit: fd453e376dd8a276b5c7082fe049fb73c4e60163 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 7 00:31:17 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 7 00:31:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd453e37 |
7 |
|
8 |
games-strategy/ja2-stracciatella: Migrate from LINGUAS to L10N. |
9 |
|
10 |
Add an additional "ru-gold" USE flag, selecting between russian gold |
11 |
and russian language versions. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/583766 |
14 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
15 |
|
16 |
.../ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild | 11 +++++------ |
17 |
games-strategy/ja2-stracciatella/metadata.xml | 2 +- |
18 |
2 files changed, 6 insertions(+), 7 deletions(-) |
19 |
|
20 |
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 |
21 |
index ee606b9cafd..4da66d2c406 100644 |
22 |
--- a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild |
23 |
+++ b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild |
24 |
@@ -1,4 +1,4 @@ |
25 |
-# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Copyright 1999-2018 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=5 |
30 |
@@ -12,14 +12,14 @@ SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz |
31 |
LICENSE="SFI-SCLA" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
-IUSE="cdinstall editor zlib" |
35 |
+IUSE="cdinstall editor ru-gold zlib" |
36 |
|
37 |
DEPEND="media-libs/libsdl[X,sound,video] |
38 |
zlib? ( sys-libs/zlib )" |
39 |
RDEPEND="${DEPEND} |
40 |
cdinstall? ( games-strategy/ja2-stracciatella-data )" |
41 |
|
42 |
-LANGS="linguas_de +linguas_en linguas_fr linguas_it linguas_nl linguas_pl linguas_ru linguas_ru_gold" |
43 |
+LANGS="l10n_de +l10n_en l10n_fr l10n_it l10n_nl l10n_pl l10n_ru" |
44 |
IUSE="$IUSE $LANGS" |
45 |
REQUIRED_USE="^^ ( ${LANGS//+/} )" |
46 |
|
47 |
@@ -39,14 +39,13 @@ src_prepare() { |
48 |
src_compile() { |
49 |
local myconf |
50 |
|
51 |
- case ${LINGUAS} in |
52 |
+ case ${L10N} in |
53 |
de) myconf="LNG=GERMAN" ;; |
54 |
nl) myconf="LNG=DUTCH" ;; |
55 |
fr) myconf="LNG=FRENCH" ;; |
56 |
it) myconf="LNG=ITALIAN" ;; |
57 |
pl) myconf="LNG=POLISH" ;; |
58 |
- ru) myconf="LNG=RUSSIAN" ;; |
59 |
- ru_gold) myconf="LNG=RUSSIAN_GOLD" ;; |
60 |
+ ru) myconf="LNG=$(usex ru-gold RUSSIAN_GOLD RUSSIAN)" ;; |
61 |
en) myconf="LNG=ENGLISH" ;; |
62 |
*) die "wat" ;; |
63 |
esac |
64 |
|
65 |
diff --git a/games-strategy/ja2-stracciatella/metadata.xml b/games-strategy/ja2-stracciatella/metadata.xml |
66 |
index dd85b7c30ed..3db7ad1de98 100644 |
67 |
--- a/games-strategy/ja2-stracciatella/metadata.xml |
68 |
+++ b/games-strategy/ja2-stracciatella/metadata.xml |
69 |
@@ -7,6 +7,6 @@ |
70 |
</maintainer> |
71 |
<use> |
72 |
<flag name="editor">Adds necessary file to run the editor</flag> |
73 |
- <flag name="linguas_ru_gold">Support for russian gold ja2 version</flag> |
74 |
+ <flag name="ru-gold">Support for russian gold ja2 version</flag> |
75 |
</use> |
76 |
</pkgmetadata> |