sys-boot/unetbootin: Test LINGUAS rather than linguas_* USE flags.
authorUlrich Müller <ulm@gentoo.org>
Sun, 7 Jan 2018 16:16:02 +0000 (17:16 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sun, 7 Jan 2018 16:22:37 +0000 (17:22 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-boot/unetbootin/unetbootin-625.ebuild
sys-boot/unetbootin/unetbootin-647.ebuild
sys-boot/unetbootin/unetbootin-655.ebuild
sys-boot/unetbootin/unetbootin-657.ebuild

index f6884665740ba6488f16f33fa9df52f44d7a150c..aabc1aa868d7ad2ffb91af8af03f64f08f258907 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -19,10 +19,6 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
-for lingua in ${UNBI_LINGUAS}; do
-       IUSE="${IUSE} linguas_${lingua}"
-done
-
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -52,7 +48,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! use linguas_${lingua}; then
+               if ! has ${lingua} ${LINGUAS-${lingua}}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -82,7 +78,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if use linguas_${lingua}; then
+               if has ${lingua} ${LINGUAS-${lingua}}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi
index e449aefee55a0b9e9ae0a51c89c26b86db5c8a10..0371e75f2c8ae366246dd39ecaf323e7452468cc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,10 +19,6 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
-for lingua in ${UNBI_LINGUAS}; do
-       IUSE="${IUSE} linguas_${lingua}"
-done
-
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -51,7 +47,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! use linguas_${lingua}; then
+               if ! has ${lingua} ${LINGUAS-${lingua}}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -81,7 +77,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if use linguas_${lingua}; then
+               if has ${lingua} ${LINGUAS-${lingua}}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi
index 453496db6670275c851bb43362833e44581e9a96..1007cc620a170dd7b5a666331422c61e05e34b44 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,10 +19,6 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
-for lingua in ${UNBI_LINGUAS}; do
-       IUSE="${IUSE} linguas_${lingua}"
-done
-
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -50,7 +46,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! use linguas_${lingua}; then
+               if ! has ${lingua} ${LINGUAS-${lingua}}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -80,7 +76,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if use linguas_${lingua}; then
+               if has ${lingua} ${LINGUAS-${lingua}}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi
index 453496db6670275c851bb43362833e44581e9a96..1007cc620a170dd7b5a666331422c61e05e34b44 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,10 +19,6 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
-for lingua in ${UNBI_LINGUAS}; do
-       IUSE="${IUSE} linguas_${lingua}"
-done
-
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -50,7 +46,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! use linguas_${lingua}; then
+               if ! has ${lingua} ${LINGUAS-${lingua}}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -80,7 +76,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if use linguas_${lingua}; then
+               if has ${lingua} ${LINGUAS-${lingua}}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi