1 |
commit: b6c35038523e72d1dc5e052dba06448370271aae |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 8 18:00:35 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 8 18:11:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c35038 |
7 |
|
8 |
x11-misc/kapow: Migrate from LINGUAS to L10N. |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
x11-misc/kapow/kapow-1.5.5.ebuild | 28 +++++++++++++--------------- |
13 |
1 file changed, 13 insertions(+), 15 deletions(-) |
14 |
|
15 |
diff --git a/x11-misc/kapow/kapow-1.5.5.ebuild b/x11-misc/kapow/kapow-1.5.5.ebuild |
16 |
index 9447fce7694..00138613950 100644 |
17 |
--- a/x11-misc/kapow/kapow-1.5.5.ebuild |
18 |
+++ b/x11-misc/kapow/kapow-1.5.5.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=6 |
25 |
@@ -23,11 +23,11 @@ DEPEND=" |
26 |
${RDEPEND} |
27 |
dev-qt/linguist-tools:5 |
28 |
" |
29 |
-K_LINGUAS=" |
30 |
+K_LANGS=" |
31 |
ar bg cs da de el en es fr it lt nl no pl pt_BR ro ru sv tr uk |
32 |
" |
33 |
-for K_LINGUA in ${K_LINGUAS}; do |
34 |
- IUSE+=" linguas_${K_LINGUA}" |
35 |
+for K_LANG in ${K_LANGS}; do |
36 |
+ IUSE+=" l10n_${K_LANG/_/-}" |
37 |
done |
38 |
DOCS=( ChangeLog README ) |
39 |
|
40 |
@@ -35,20 +35,18 @@ src_prepare() { |
41 |
default |
42 |
|
43 |
count() { echo ${#}; } |
44 |
- local lingua_count=$(count ${K_LINGUAS}) |
45 |
+ local lang_count=$(count ${K_LANGS}) |
46 |
local locale_count=$(count translations/${PN}_*.ts) |
47 |
- [[ ${lingua_count} = ${locale_count} ]] \ |
48 |
- || die "Number of LINGUAS does not match number of locales" |
49 |
+ [[ ${lang_count} = ${locale_count} ]] \ |
50 |
+ || die "Number of LANGS does not match number of locales" |
51 |
unset count |
52 |
|
53 |
- local lingua |
54 |
- if [[ -n "${LINGUAS}" ]]; then |
55 |
- for lingua in ${K_LINGUAS}; do |
56 |
- if ! use linguas_${lingua}; then |
57 |
- rm translations/${PN}_${lingua}.* || die |
58 |
- fi |
59 |
- done |
60 |
- fi |
61 |
+ local lang |
62 |
+ for lang in ${K_LANGS}; do |
63 |
+ if ! use l10n_${lang/_/-}; then |
64 |
+ rm translations/${PN}_${lang}.* || die |
65 |
+ fi |
66 |
+ done |
67 |
} |
68 |
|
69 |
src_configure() { |