Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/valentina/
Date: Sun, 07 Jan 2018 08:09:23
Message-Id: 1515312487.8378826dd5b2a5bc9d1a07dc9fb59534b2279a44.fordfrog@gentoo
1 commit: 8378826dd5b2a5bc9d1a07dc9fb59534b2279a44
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 7 08:07:30 2018 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 7 08:08:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8378826d
7
8 media-gfx/valentina: updated from linguas to l10n
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 media-gfx/valentina/valentina-0.5.0-r2.ebuild | 63 ++++++++++++++++++++++++---
13 media-gfx/valentina/valentina-9999.ebuild | 62 +++++++++++++++++++++++---
14 2 files changed, 113 insertions(+), 12 deletions(-)
15
16 diff --git a/media-gfx/valentina/valentina-0.5.0-r2.ebuild b/media-gfx/valentina/valentina-0.5.0-r2.ebuild
17 index 3ba76fa3cd6..9b5a7f5ea11 100644
18 --- a/media-gfx/valentina/valentina-0.5.0-r2.ebuild
19 +++ b/media-gfx/valentina/valentina-0.5.0-r2.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 +# Copyright 1999-2018 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=6
26 @@ -16,11 +16,10 @@ SLOT="0"
27 KEYWORDS="~amd64 ~x86"
28 IUSE="gnome"
29
30 -# en_IN not supported in Gentoo so not added here
31 -LANGS="cs_CZ de_DE el_GR en_CA en_US es_ES fi_FI fr_FR he_IL id_ID it_IT nl_NL pt_BR ro_RO ru_RU uk_UA zh_CN"
32 +LANGS="cs de el en en es fi fr he id it nl pt-BR ro ru uk zh-CN"
33
34 for LANG in ${LANGS}; do
35 - IUSE="${IUSE} linguas_${LANG}"
36 + IUSE="${IUSE} l10n_${LANG}"
37 done
38
39 CDEPEND="
40 @@ -48,10 +47,62 @@ src_prepare() {
41
42 src_configure() {
43 local locales=""
44 + local locale
45
46 for LANG in ${LANGS}; do
47 - if use linguas_${LANG}; then
48 - locales="${locales} ${LANG}"
49 + if use l10n_${LANG}; then
50 + case ${LANG} in
51 + "cs")
52 + locale="cs_CZ"
53 + ;;
54 + "de")
55 + locale="de_DE"
56 + ;;
57 + "el")
58 + locale="el_GR"
59 + ;;
60 + "en")
61 + locale="en_CA en_IN en_US"
62 + ;;
63 + "es")
64 + locale="es_ES"
65 + ;;
66 + "fi")
67 + locale="fi_FI"
68 + ;;
69 + "fr")
70 + locale="fr_FR"
71 + ;;
72 + "he")
73 + locale="he_IL"
74 + ;;
75 + "id")
76 + locale="id_ID"
77 + ;;
78 + "it")
79 + locale="it_IT"
80 + ;;
81 + "nl")
82 + locale="nl_NL"
83 + ;;
84 + "pt-BR")
85 + locale="pt_BR"
86 + ;;
87 + "ro")
88 + locale="ro_RO"
89 + ;;
90 + "ru")
91 + locale="ru_RU"
92 + ;;
93 + "uk")
94 + locale="uk_UA"
95 + ;;
96 + "zh-CN")
97 + locale="zh_CN"
98 + ;;
99 + esac
100 +
101 + locales="${locales} ${locale}"
102 fi
103 done
104
105
106 diff --git a/media-gfx/valentina/valentina-9999.ebuild b/media-gfx/valentina/valentina-9999.ebuild
107 index 3c119be7617..7e393108cc1 100644
108 --- a/media-gfx/valentina/valentina-9999.ebuild
109 +++ b/media-gfx/valentina/valentina-9999.ebuild
110 @@ -1,4 +1,4 @@
111 -# Copyright 1999-2017 Gentoo Foundation
112 +# Copyright 1999-2018 Gentoo Foundation
113 # Distributed under the terms of the GNU General Public License v2
114
115 EAPI=6
116 @@ -15,11 +15,10 @@ SLOT="0"
117 KEYWORDS=""
118 IUSE="gnome"
119
120 -# en_IN not supported in Gentoo so not added here
121 -LANGS="cs_CZ de_DE el_GR en_CA en_US es_ES fi_FI fr_FR he_IL id_ID it_IT nl_NL pt_BR ro_RO ru_RU uk_UA zh_CN"
122 +LANGS="cs de el en en es fi fr he id it nl pt-BR ro ru uk zh-CN"
123
124 for LANG in ${LANGS}; do
125 - IUSE="${IUSE} linguas_${LANG}"
126 + IUSE="${IUSE} l10n_${LANG}"
127 done
128
129 CDEPEND="
130 @@ -39,8 +38,59 @@ src_configure() {
131 local locales=""
132
133 for LANG in ${LANGS}; do
134 - if use linguas_${LANG}; then
135 - locales="${locales} ${LANG}"
136 + if use l10n_${LANG}; then
137 + case ${LANG} in
138 + "cs")
139 + locale="cs_CZ"
140 + ;;
141 + "de")
142 + locale="de_DE"
143 + ;;
144 + "el")
145 + locale="el_GR"
146 + ;;
147 + "en")
148 + locale="en_CA en_IN en_US"
149 + ;;
150 + "es")
151 + locale="es_ES"
152 + ;;
153 + "fi")
154 + locale="fi_FI"
155 + ;;
156 + "fr")
157 + locale="fr_FR"
158 + ;;
159 + "he")
160 + locale="he_IL"
161 + ;;
162 + "id")
163 + locale="id_ID"
164 + ;;
165 + "it")
166 + locale="it_IT"
167 + ;;
168 + "nl")
169 + locale="nl_NL"
170 + ;;
171 + "pt-BR")
172 + locale="pt_BR"
173 + ;;
174 + "ro")
175 + locale="ro_RO"
176 + ;;
177 + "ru")
178 + locale="ru_RU"
179 + ;;
180 + "uk")
181 + locale="uk_UA"
182 + ;;
183 + "zh-CN")
184 + locale="zh_CN"
185 + ;;
186 + esac
187 +
188 + locales="${locales} ${locale}"
189 fi
190 done