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: dev-util/netbeans/
Date: Sat, 25 Jun 2016 01:14:57
Message-Id: 1466817281.aa83fc801686929008a600d1213d0449a174f0d1.ulm@gentoo
1 commit: aa83fc801686929008a600d1213d0449a174f0d1
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 00:43:40 2016 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 01:14:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa83fc80
7
8 dev-util/netbeans: Migrate from LINGUAS to L10N.
9
10 The following language codes are remapped to codes used by upstream:
11 ar: ar_EG,ar_SA
12 es: es,es_CO
13 gl: gl_ES
14 hi: hi_IN
15 id: in_ID
16 nl: nl_BE,nl_NL
17 ta: ta_IN
18 tl: fil_PH
19
20 Package-Manager: portage-2.3.0
21
22 dev-util/netbeans/netbeans-8.0.2.ebuild | 177 +++++++++++++++---------------
23 dev-util/netbeans/netbeans-8.1.ebuild | 184 ++++++++++++++++----------------
24 2 files changed, 179 insertions(+), 182 deletions(-)
25
26 diff --git a/dev-util/netbeans/netbeans-8.0.2.ebuild b/dev-util/netbeans/netbeans-8.0.2.ebuild
27 index 6712306..4ad72ba 100644
28 --- a/dev-util/netbeans/netbeans-8.0.2.ebuild
29 +++ b/dev-util/netbeans/netbeans-8.0.2.ebuild
30 @@ -1,4 +1,4 @@
31 -# Copyright 1999-2015 Gentoo Foundation
32 +# Copyright 1999-2016 Gentoo Foundation
33 # Distributed under the terms of the GNU General Public License v2
34 # $Id$
35
36 @@ -12,38 +12,38 @@ SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2
37 PATCHES_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2"
38 L10N_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-8.0.1-20141110.tar.bz2"
39 ALL_URLS="${SOURCE_URL} ${PATCHES_URL} ${L10N_URL}"
40 -SRC_URI="linguas_af? ( ${ALL_URLS} )
41 - linguas_ar? ( ${ALL_URLS} )
42 - linguas_bg? ( ${ALL_URLS} )
43 - linguas_ca? ( ${ALL_URLS} )
44 - linguas_cs? ( ${ALL_URLS} )
45 - linguas_de? ( ${ALL_URLS} )
46 - linguas_el? ( ${ALL_URLS} )
47 - linguas_es? ( ${ALL_URLS} )
48 - linguas_fr? ( ${ALL_URLS} )
49 - linguas_gl? ( ${ALL_URLS} )
50 - linguas_hi_IN? ( ${ALL_URLS} )
51 - linguas_id? ( ${ALL_URLS} )
52 - linguas_it? ( ${ALL_URLS} )
53 - linguas_ja? ( ${ALL_URLS} )
54 - linguas_ko? ( ${ALL_URLS} )
55 - linguas_lt? ( ${ALL_URLS} )
56 - linguas_nl? ( ${ALL_URLS} )
57 - linguas_pl? ( ${ALL_URLS} )
58 - linguas_pt_BR? ( ${ALL_URLS} )
59 - linguas_pt_PT? ( ${ALL_URLS} )
60 - linguas_ro? ( ${ALL_URLS} )
61 - linguas_ru? ( ${ALL_URLS} )
62 - linguas_si? ( ${ALL_URLS} )
63 - linguas_sq? ( ${ALL_URLS} )
64 - linguas_sr? ( ${ALL_URLS} )
65 - linguas_sv? ( ${ALL_URLS} )
66 - linguas_ta_IN? ( ${ALL_URLS} )
67 - linguas_tl? ( ${ALL_URLS} )
68 - linguas_tr? ( ${ALL_URLS} )
69 - linguas_vi? ( ${ALL_URLS} )
70 - linguas_zh_CN? ( ${ALL_URLS} )
71 - linguas_zh_TW? ( ${ALL_URLS} )
72 +SRC_URI="l10n_af? ( ${ALL_URLS} )
73 + l10n_ar? ( ${ALL_URLS} )
74 + l10n_bg? ( ${ALL_URLS} )
75 + l10n_ca? ( ${ALL_URLS} )
76 + l10n_cs? ( ${ALL_URLS} )
77 + l10n_de? ( ${ALL_URLS} )
78 + l10n_el? ( ${ALL_URLS} )
79 + l10n_es? ( ${ALL_URLS} )
80 + l10n_fr? ( ${ALL_URLS} )
81 + l10n_gl? ( ${ALL_URLS} )
82 + l10n_hi? ( ${ALL_URLS} )
83 + l10n_id? ( ${ALL_URLS} )
84 + l10n_it? ( ${ALL_URLS} )
85 + l10n_ja? ( ${ALL_URLS} )
86 + l10n_ko? ( ${ALL_URLS} )
87 + l10n_lt? ( ${ALL_URLS} )
88 + l10n_nl? ( ${ALL_URLS} )
89 + l10n_pl? ( ${ALL_URLS} )
90 + l10n_pt-BR? ( ${ALL_URLS} )
91 + l10n_pt-PT? ( ${ALL_URLS} )
92 + l10n_ro? ( ${ALL_URLS} )
93 + l10n_ru? ( ${ALL_URLS} )
94 + l10n_si? ( ${ALL_URLS} )
95 + l10n_sq? ( ${ALL_URLS} )
96 + l10n_sr? ( ${ALL_URLS} )
97 + l10n_sv? ( ${ALL_URLS} )
98 + l10n_ta? ( ${ALL_URLS} )
99 + l10n_tl? ( ${ALL_URLS} )
100 + l10n_tr? ( ${ALL_URLS} )
101 + l10n_vi? ( ${ALL_URLS} )
102 + l10n_zh-CN? ( ${ALL_URLS} )
103 + l10n_zh-TW? ( ${ALL_URLS} )
104 "
105 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
106 KEYWORDS="amd64 x86"
107 @@ -63,40 +63,40 @@ IUSE_NETBEANS_MODULES="
108 +netbeans_modules_profiler
109 netbeans_modules_webcommon
110 +netbeans_modules_websvccommon"
111 -IUSE_LINGUAS="
112 - linguas_af
113 - linguas_ar
114 - linguas_bg
115 - linguas_ca
116 - linguas_cs
117 - linguas_de
118 - linguas_el
119 - linguas_es
120 - linguas_fr
121 - linguas_gl
122 - linguas_hi_IN
123 - linguas_id
124 - linguas_it
125 - linguas_ja
126 - linguas_ko
127 - linguas_lt
128 - linguas_nl
129 - linguas_pl
130 - linguas_pt_BR
131 - linguas_pt_PT
132 - linguas_ro
133 - linguas_ru
134 - linguas_si
135 - linguas_sq
136 - linguas_sr
137 - linguas_sv
138 - linguas_ta_IN
139 - linguas_tl
140 - linguas_tr
141 - linguas_vi
142 - linguas_zh_CN
143 - linguas_zh_TW"
144 -IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_LINGUAS}"
145 +IUSE_L10N="
146 + l10n_af
147 + l10n_ar
148 + l10n_bg
149 + l10n_ca
150 + l10n_cs
151 + l10n_de
152 + l10n_el
153 + l10n_es
154 + l10n_fr
155 + l10n_gl
156 + l10n_hi
157 + l10n_id
158 + l10n_it
159 + l10n_ja
160 + l10n_ko
161 + l10n_lt
162 + l10n_nl
163 + l10n_pl
164 + l10n_pt-BR
165 + l10n_pt-PT
166 + l10n_ro
167 + l10n_ru
168 + l10n_si
169 + l10n_sq
170 + l10n_sr
171 + l10n_sv
172 + l10n_ta
173 + l10n_tl
174 + l10n_tr
175 + l10n_vi
176 + l10n_zh-CN
177 + l10n_zh-TW"
178 +IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_L10N}"
179 S="${WORKDIR}"
180
181 DEPEND="virtual/jdk:1.7
182 @@ -126,22 +126,20 @@ JAVA_PKG_BSFIX="off"
183 NBLOCALES=""
184
185 pkg_setup() {
186 - for lingua in ${IUSE_LINGUAS} ; do
187 - local lang=${lingua/linguas_/}
188 + for lingua in ${IUSE_L10N} ; do
189 + local lang=${lingua/l10n_/}
190 + lang=${lang/-/_}
191
192 - if [[ "${lang}" = "ar" ]] ; then
193 - lang="ar_EG,ar_SA"
194 - elif [[ "${lang}" = "es" ]] ; then
195 - lang="es,es_CO"
196 - elif [[ "${lang}" = "gl" ]] ; then
197 - lang="gl_ES"
198 - elif [[ "${lang}" = "id" ]] ; then
199 - lang="in_ID"
200 - elif [[ "${lang}" = "nl" ]] ; then
201 - lang="nl_BE,nl_NL"
202 - elif [[ "${lang}" = "tl" ]] ; then
203 - lang="fil_PH"
204 - fi
205 + case ${lang} in
206 + ar) lang="ar_EG,ar_SA" ;;
207 + es) lang="es,es_CO" ;;
208 + gl) lang="gl_ES" ;;
209 + hi) lang="hi_IN" ;;
210 + id) lang="in_ID" ;;
211 + nl) lang="nl_BE,nl_NL" ;;
212 + ta) lang="ta_IN" ;;
213 + tl) lang="fil_PH" ;;
214 + esac
215
216 if use ${lingua} ; then
217 if [ -z "${NBLOCALES}" ] ; then
218 @@ -232,32 +230,27 @@ pkg_postinst() {
219 einfo "${PN}-${SLOT} --locale pt:BR"
220 fi
221
222 - if use linguas_ar ; then
223 + if use l10n_ar ; then
224 einfo
225 einfo "You selected Arabic locale so you can choose either ar:EG or ar:SA variant."
226 fi
227
228 - if use linguas_es ; then
229 + if use l10n_es ; then
230 einfo
231 einfo "You selected Spanish locale so you can choose either es or es:CO variant."
232 fi
233
234 - if use linguas_gl ; then
235 - einfo
236 - einfo "You selected Galician locale which has locale code gl:ES in Netbeans."
237 - fi
238 -
239 - if use linguas_id ; then
240 + if use l10n_id ; then
241 einfo
242 einfo "You selected Indonesian locale which has locale code in:ID in Netbeans."
243 fi
244
245 - if use linguas_nl ; then
246 + if use l10n_nl ; then
247 einfo
248 einfo "You selected Dutch locale so you can choose either nl:BE or nl:NL variant."
249 fi
250
251 - if use linguas_tl ; then
252 + if use l10n_tl ; then
253 einfo
254 einfo "You selected Tagalog locale which has for Filipino locale code fil:PH in Netbeans."
255 fi
256
257 diff --git a/dev-util/netbeans/netbeans-8.1.ebuild b/dev-util/netbeans/netbeans-8.1.ebuild
258 index 396b5de..c302477 100644
259 --- a/dev-util/netbeans/netbeans-8.1.ebuild
260 +++ b/dev-util/netbeans/netbeans-8.1.ebuild
261 @@ -1,4 +1,4 @@
262 -# Copyright 1999-2015 Gentoo Foundation
263 +# Copyright 1999-2016 Gentoo Foundation
264 # Distributed under the terms of the GNU General Public License v2
265 # $Id$
266
267 @@ -12,41 +12,38 @@ SOURCE_URL="http://download.netbeans.org/netbeans/8.1/final/zip/netbeans-8.1-201
268 PATCHES_URL="http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.1-build.xml.patch.bz2"
269 L10N_URL="http://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-8.1-20151105.tar.bz2"
270 ALL_URLS="${SOURCE_URL} ${PATCHES_URL} ${L10N_URL}"
271 -SRC_URI="linguas_af? ( ${ALL_URLS} )
272 - linguas_ar? ( ${ALL_URLS} )
273 - linguas_ar_SA? ( ${ALL_URLS} )
274 - linguas_bg? ( ${ALL_URLS} )
275 - linguas_ca? ( ${ALL_URLS} )
276 - linguas_cs? ( ${ALL_URLS} )
277 - linguas_de? ( ${ALL_URLS} )
278 - linguas_el? ( ${ALL_URLS} )
279 - linguas_es? ( ${ALL_URLS} )
280 - linguas_es_CO? ( ${ALL_URLS} )
281 - linguas_fil? ( ${ALL_URLS} )
282 - linguas_fr? ( ${ALL_URLS} )
283 - linguas_gl? ( ${ALL_URLS} )
284 - linguas_hi_IN? ( ${ALL_URLS} )
285 - linguas_id_ID? ( ${ALL_URLS} )
286 - linguas_it? ( ${ALL_URLS} )
287 - linguas_ja? ( ${ALL_URLS} )
288 - linguas_ko? ( ${ALL_URLS} )
289 - linguas_lt? ( ${ALL_URLS} )
290 - linguas_nl_BE? ( ${ALL_URLS} )
291 - linguas_nl_NL? ( ${ALL_URLS} )
292 - linguas_pl? ( ${ALL_URLS} )
293 - linguas_pt_BR? ( ${ALL_URLS} )
294 - linguas_pt_PT? ( ${ALL_URLS} )
295 - linguas_ro? ( ${ALL_URLS} )
296 - linguas_ru? ( ${ALL_URLS} )
297 - linguas_si? ( ${ALL_URLS} )
298 - linguas_sq? ( ${ALL_URLS} )
299 - linguas_sr? ( ${ALL_URLS} )
300 - linguas_sv? ( ${ALL_URLS} )
301 - linguas_ta_IN? ( ${ALL_URLS} )
302 - linguas_tr? ( ${ALL_URLS} )
303 - linguas_vi? ( ${ALL_URLS} )
304 - linguas_zh_CN? ( ${ALL_URLS} )
305 - linguas_zh_TW? ( ${ALL_URLS} )
306 +SRC_URI="l10n_af? ( ${ALL_URLS} )
307 + l10n_ar? ( ${ALL_URLS} )
308 + l10n_bg? ( ${ALL_URLS} )
309 + l10n_ca? ( ${ALL_URLS} )
310 + l10n_cs? ( ${ALL_URLS} )
311 + l10n_de? ( ${ALL_URLS} )
312 + l10n_el? ( ${ALL_URLS} )
313 + l10n_es? ( ${ALL_URLS} )
314 + l10n_fr? ( ${ALL_URLS} )
315 + l10n_gl? ( ${ALL_URLS} )
316 + l10n_hi? ( ${ALL_URLS} )
317 + l10n_id? ( ${ALL_URLS} )
318 + l10n_it? ( ${ALL_URLS} )
319 + l10n_ja? ( ${ALL_URLS} )
320 + l10n_ko? ( ${ALL_URLS} )
321 + l10n_lt? ( ${ALL_URLS} )
322 + l10n_nl? ( ${ALL_URLS} )
323 + l10n_pl? ( ${ALL_URLS} )
324 + l10n_pt-BR? ( ${ALL_URLS} )
325 + l10n_pt-PT? ( ${ALL_URLS} )
326 + l10n_ro? ( ${ALL_URLS} )
327 + l10n_ru? ( ${ALL_URLS} )
328 + l10n_si? ( ${ALL_URLS} )
329 + l10n_sq? ( ${ALL_URLS} )
330 + l10n_sr? ( ${ALL_URLS} )
331 + l10n_sv? ( ${ALL_URLS} )
332 + l10n_ta? ( ${ALL_URLS} )
333 + l10n_tl? ( ${ALL_URLS} )
334 + l10n_tr? ( ${ALL_URLS} )
335 + l10n_vi? ( ${ALL_URLS} )
336 + l10n_zh-CN? ( ${ALL_URLS} )
337 + l10n_zh-TW? ( ${ALL_URLS} )
338 "
339 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
340 KEYWORDS="~amd64 ~x86"
341 @@ -66,43 +63,40 @@ IUSE_NETBEANS_MODULES="
342 +netbeans_modules_profiler
343 netbeans_modules_webcommon
344 +netbeans_modules_websvccommon"
345 -IUSE_LINGUAS="
346 - linguas_af
347 - linguas_ar
348 - linguas_ar_SA
349 - linguas_bg
350 - linguas_ca
351 - linguas_cs
352 - linguas_de
353 - linguas_el
354 - linguas_es
355 - linguas_es_CO
356 - linguas_fil
357 - linguas_fr
358 - linguas_gl
359 - linguas_hi_IN
360 - linguas_id_ID
361 - linguas_it
362 - linguas_ja
363 - linguas_ko
364 - linguas_lt
365 - linguas_nl_BE
366 - linguas_nl_NL
367 - linguas_pl
368 - linguas_pt_BR
369 - linguas_pt_PT
370 - linguas_ro
371 - linguas_ru
372 - linguas_si
373 - linguas_sq
374 - linguas_sr
375 - linguas_sv
376 - linguas_ta_IN
377 - linguas_tr
378 - linguas_vi
379 - linguas_zh_CN
380 - linguas_zh_TW"
381 -IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_LINGUAS}"
382 +IUSE_L10N="
383 + l10n_af
384 + l10n_ar
385 + l10n_bg
386 + l10n_ca
387 + l10n_cs
388 + l10n_de
389 + l10n_el
390 + l10n_es
391 + l10n_fr
392 + l10n_gl
393 + l10n_hi
394 + l10n_id
395 + l10n_it
396 + l10n_ja
397 + l10n_ko
398 + l10n_lt
399 + l10n_nl
400 + l10n_pl
401 + l10n_pt-BR
402 + l10n_pt-PT
403 + l10n_ro
404 + l10n_ru
405 + l10n_si
406 + l10n_sq
407 + l10n_sr
408 + l10n_sv
409 + l10n_ta
410 + l10n_tl
411 + l10n_tr
412 + l10n_vi
413 + l10n_zh-CN
414 + l10n_zh-TW"
415 +IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_L10N}"
416 S="${WORKDIR}"
417
418 DEPEND=">=virtual/jdk-1.7
419 @@ -132,20 +126,20 @@ JAVA_PKG_BSFIX="off"
420 NBLOCALES=""
421
422 pkg_setup() {
423 - for lingua in ${IUSE_LINGUAS} ; do
424 - local lang=${lingua/linguas_/}
425 -
426 - if [[ "${lang}" = "ar" ]] ; then
427 - lang="ar_EG,ar_SA"
428 - elif [[ "${lang}" = "es" ]] ; then
429 - lang="es,es_CO"
430 - elif [[ "${lang}" = "fil" ]] ; then
431 - lang="fil_PH"
432 - elif [[ "${lang}" = "gl" ]] ; then
433 - lang="gl_ES"
434 - elif [[ "${lang}" = "id_ID" ]] ; then
435 - lang="in_ID"
436 - fi
437 + for lingua in ${IUSE_L10N} ; do
438 + local lang=${lingua/l10n_/}
439 + lang=${lang/-/_}
440 +
441 + case ${lang} in
442 + ar) lang="ar_EG,ar_SA" ;;
443 + es) lang="es,es_CO" ;;
444 + gl) lang="gl_ES" ;;
445 + hi) lang="hi_IN" ;;
446 + id) lang="in_ID" ;;
447 + nl) lang="nl_BE,nl_NL" ;;
448 + ta) lang="ta_IN" ;;
449 + tl) lang="fil_PH" ;;
450 + esac
451
452 if use ${lingua} ; then
453 if [ -z "${NBLOCALES}" ] ; then
454 @@ -236,18 +230,28 @@ pkg_postinst() {
455 einfo "${PN}-${SLOT} --locale pt:BR"
456 fi
457
458 - if use linguas_ar ; then
459 + if use l10n_ar ; then
460 einfo
461 einfo "You selected Arabic locale so you can choose either ar:EG or ar:SA variant."
462 fi
463
464 - if use linguas_es ; then
465 + if use l10n_es ; then
466 einfo
467 einfo "You selected Spanish locale so you can choose either es or es:CO variant."
468 fi
469
470 - if use linguas_id_ID ; then
471 + if use l10n_id ; then
472 einfo
473 einfo "You selected Indonesian locale which has locale code in:ID in Netbeans."
474 fi
475 +
476 + if use l10n_nl ; then
477 + einfo
478 + einfo "You selected Dutch locale so you can choose either nl:BE or nl:NL variant."
479 + fi
480 +
481 + if use l10n_tl ; then
482 + einfo
483 + einfo "You selected Tagalog locale which has for Filipino locale code fil:PH in Netbeans."
484 + fi
485 }