Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/unetbootin/
Date: Mon, 08 Jan 2018 08:45:36
Message-Id: 1515401124.7914bb2e24db18f94e9d1848a865891f577b326d.ulm@gentoo
1 commit: 7914bb2e24db18f94e9d1848a865891f577b326d
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 8 08:42:09 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 8 08:45:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7914bb2e
7
8 sys-boot/unetbootin: Migrate from LINGUAS to L10N.
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 sys-boot/unetbootin/unetbootin-625.ebuild | 8 ++++++--
13 sys-boot/unetbootin/unetbootin-647.ebuild | 8 ++++++--
14 sys-boot/unetbootin/unetbootin-655.ebuild | 8 ++++++--
15 sys-boot/unetbootin/unetbootin-657.ebuild | 8 ++++++--
16 4 files changed, 24 insertions(+), 8 deletions(-)
17
18 diff --git a/sys-boot/unetbootin/unetbootin-625.ebuild b/sys-boot/unetbootin/unetbootin-625.ebuild
19 index aabc1aa868d..49f0d802f76 100644
20 --- a/sys-boot/unetbootin/unetbootin-625.ebuild
21 +++ b/sys-boot/unetbootin/unetbootin-625.ebuild
22 @@ -19,6 +19,10 @@ UNBI_LINGUAS="
23 zh_CN zh_TW
24 "
25
26 +for lingua in ${UNBI_LINGUAS}; do
27 + IUSE="${IUSE} l10n_${lingua/_/-}"
28 +done
29 +
30 S=${WORKDIR}/${P}/src/${PN}
31
32 DEPEND="dev-qt/qtgui:4"
33 @@ -48,7 +52,7 @@ src_prepare() {
34 # Remove localisations
35 local lingua
36 for lingua in ${UNBI_LINGUAS}; do
37 - if ! has ${lingua} ${LINGUAS-${lingua}}; then
38 + if ! use l10n_${lingua/_/-}; then
39 sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
40 rm ${PN}_${lingua}.ts || die
41 fi
42 @@ -78,7 +82,7 @@ src_install() {
43
44 local lingua
45 for lingua in ${UNBI_LINGUAS}; do
46 - if has ${lingua} ${LINGUAS-${lingua}}; then
47 + if use l10n_${lingua/_/-}; then
48 insinto /usr/share/${PN}
49 doins ${PN}_${lingua}.qm
50 fi
51
52 diff --git a/sys-boot/unetbootin/unetbootin-647.ebuild b/sys-boot/unetbootin/unetbootin-647.ebuild
53 index 0371e75f2c8..a8e28b868c2 100644
54 --- a/sys-boot/unetbootin/unetbootin-647.ebuild
55 +++ b/sys-boot/unetbootin/unetbootin-647.ebuild
56 @@ -19,6 +19,10 @@ UNBI_LINGUAS="
57 zh_CN zh_TW
58 "
59
60 +for lingua in ${UNBI_LINGUAS}; do
61 + IUSE="${IUSE} l10n_${lingua/_/-}"
62 +done
63 +
64 S=${WORKDIR}/${P}/src/${PN}
65
66 DEPEND="dev-qt/qtgui:4"
67 @@ -47,7 +51,7 @@ src_prepare() {
68 # Remove localisations
69 local lingua
70 for lingua in ${UNBI_LINGUAS}; do
71 - if ! has ${lingua} ${LINGUAS-${lingua}}; then
72 + if ! use l10n_${lingua/_/-}; then
73 sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
74 rm ${PN}_${lingua}.ts || die
75 fi
76 @@ -77,7 +81,7 @@ src_install() {
77
78 local lingua
79 for lingua in ${UNBI_LINGUAS}; do
80 - if has ${lingua} ${LINGUAS-${lingua}}; then
81 + if use l10n_${lingua/_/-}; then
82 insinto /usr/share/${PN}
83 doins ${PN}_${lingua}.qm
84 fi
85
86 diff --git a/sys-boot/unetbootin/unetbootin-655.ebuild b/sys-boot/unetbootin/unetbootin-655.ebuild
87 index 1007cc620a1..f615c0100f4 100644
88 --- a/sys-boot/unetbootin/unetbootin-655.ebuild
89 +++ b/sys-boot/unetbootin/unetbootin-655.ebuild
90 @@ -19,6 +19,10 @@ UNBI_LINGUAS="
91 zh_CN zh_TW
92 "
93
94 +for lingua in ${UNBI_LINGUAS}; do
95 + IUSE="${IUSE} l10n_${lingua/_/-}"
96 +done
97 +
98 S=${WORKDIR}/${P}/src/${PN}
99
100 DEPEND="dev-qt/qtgui:4"
101 @@ -46,7 +50,7 @@ src_prepare() {
102 # Remove localisations
103 local lingua
104 for lingua in ${UNBI_LINGUAS}; do
105 - if ! has ${lingua} ${LINGUAS-${lingua}}; then
106 + if ! use l10n_${lingua/_/-}; then
107 sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
108 rm ${PN}_${lingua}.ts || die
109 fi
110 @@ -76,7 +80,7 @@ src_install() {
111
112 local lingua
113 for lingua in ${UNBI_LINGUAS}; do
114 - if has ${lingua} ${LINGUAS-${lingua}}; then
115 + if use l10n_${lingua/_/-}; then
116 insinto /usr/share/${PN}
117 doins ${PN}_${lingua}.qm
118 fi
119
120 diff --git a/sys-boot/unetbootin/unetbootin-657.ebuild b/sys-boot/unetbootin/unetbootin-657.ebuild
121 index 1007cc620a1..f615c0100f4 100644
122 --- a/sys-boot/unetbootin/unetbootin-657.ebuild
123 +++ b/sys-boot/unetbootin/unetbootin-657.ebuild
124 @@ -19,6 +19,10 @@ UNBI_LINGUAS="
125 zh_CN zh_TW
126 "
127
128 +for lingua in ${UNBI_LINGUAS}; do
129 + IUSE="${IUSE} l10n_${lingua/_/-}"
130 +done
131 +
132 S=${WORKDIR}/${P}/src/${PN}
133
134 DEPEND="dev-qt/qtgui:4"
135 @@ -46,7 +50,7 @@ src_prepare() {
136 # Remove localisations
137 local lingua
138 for lingua in ${UNBI_LINGUAS}; do
139 - if ! has ${lingua} ${LINGUAS-${lingua}}; then
140 + if ! use l10n_${lingua/_/-}; then
141 sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
142 rm ${PN}_${lingua}.ts || die
143 fi
144 @@ -76,7 +80,7 @@ src_install() {
145
146 local lingua
147 for lingua in ${UNBI_LINGUAS}; do
148 - if has ${lingua} ${LINGUAS-${lingua}}; then
149 + if use l10n_${lingua/_/-}; then
150 insinto /usr/share/${PN}
151 doins ${PN}_${lingua}.qm
152 fi