1 |
commit: b971baa7f7d66a6dd5e33b3eeecd92678585fc59 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 8 19:57:03 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 8 19:58:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b971baa7 |
7 |
|
8 |
www-client/opera: Migrate from LINGUAS to L10N. |
9 |
|
10 |
Map language codes for Montenegrin and Latin American Spanish from |
11 |
their IETF language tags to the codes used by upstream. |
12 |
|
13 |
This change affects only opera-12.16_p1860-r1.ebuild. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/583762 |
16 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
17 |
|
18 |
www-client/opera/opera-12.16_p1860-r1.ebuild | 17 +++++++++++------ |
19 |
1 file changed, 11 insertions(+), 6 deletions(-) |
20 |
|
21 |
diff --git a/www-client/opera/opera-12.16_p1860-r1.ebuild b/www-client/opera/opera-12.16_p1860-r1.ebuild |
22 |
index c9f7b87fbb7..fdba2080a17 100644 |
23 |
--- a/www-client/opera/opera-12.16_p1860-r1.ebuild |
24 |
+++ b/www-client/opera/opera-12.16_p1860-r1.ebuild |
25 |
@@ -1,4 +1,4 @@ |
26 |
-# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Copyright 1999-2018 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
|
30 |
EAPI=6 |
31 |
@@ -21,9 +21,9 @@ O_B="$(get_version_component_range 3)" # Build number, i.e. 1156 |
32 |
O_K="noserch" # The key to the snapshot URL |
33 |
|
34 |
O_LINGUAS=" |
35 |
- af ar az be bg bn cs da de el en-GB es-ES es-LA et fa fi fr fr-CA fy gd he |
36 |
- hi hr hu id it ja ka kk ko lt lv me mk ms nb nl nn pa pl pt pt-BR ro ru sk |
37 |
- sr sv sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu |
38 |
+ af ar az be bg bn cnr cs da de el en-GB es-419 es-ES et fa fi fr fr-CA fy |
39 |
+ gd he hi hr hu id it ja ka kk ko lt lv mk ms nb nl nn pa pl pt pt-BR ro ru |
40 |
+ sk sr sv sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu |
41 |
" # Supported linguas |
42 |
|
43 |
# == End of variables that often change == |
44 |
@@ -55,7 +55,7 @@ else # release: _p |
45 |
fi |
46 |
|
47 |
for O_LINGUA in ${O_LINGUAS}; do |
48 |
- IUSE+=" linguas_${O_LINGUA/-/_}" |
49 |
+ IUSE+=" l10n_${O_LINGUA}" |
50 |
done |
51 |
|
52 |
DEPEND=" |
53 |
@@ -113,7 +113,12 @@ src_prepare() { |
54 |
|
55 |
# Remove unwanted linguas |
56 |
for LINGUA in ${O_LINGUAS}; do |
57 |
- if ! use linguas_${LINGUA/-/_}; then |
58 |
+ if ! use l10n_${LINGUA}; then |
59 |
+ # Remap codes for Montenegrin and Spanish (Latin America) |
60 |
+ case ${LINGUA} in |
61 |
+ cnr) LINGUA=me ;; |
62 |
+ es-419) LINGUA=es-LA ;; |
63 |
+ esac |
64 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
65 |
rm -r "${LINGUA}" || die "The list of linguas needs to be fixed" |
66 |
fi |