sys-boot/unetbootin: Migrate from LINGUAS to L10N.
authorUlrich Müller <ulm@gentoo.org>
Mon, 8 Jan 2018 08:42:09 +0000 (09:42 +0100)
committerUlrich Müller <ulm@gentoo.org>
Mon, 8 Jan 2018 08:45:24 +0000 (09:45 +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 aabc1aa868d7ad2ffb91af8af03f64f08f258907..49f0d802f768391c272d682055366e2cee0c3039 100644 (file)
@@ -19,6 +19,10 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
+for lingua in ${UNBI_LINGUAS}; do
+       IUSE="${IUSE} l10n_${lingua/_/-}"
+done
+
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -48,7 +52,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! has ${lingua} ${LINGUAS-${lingua}}; then
+               if ! use l10n_${lingua/_/-}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -78,7 +82,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if has ${lingua} ${LINGUAS-${lingua}}; then
+               if use l10n_${lingua/_/-}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi
index 0371e75f2c8ae366246dd39ecaf323e7452468cc..a8e28b868c27ffe863b1fd2801f69b7c83066e82 100644 (file)
@@ -19,6 +19,10 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
+for lingua in ${UNBI_LINGUAS}; do
+       IUSE="${IUSE} l10n_${lingua/_/-}"
+done
+
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -47,7 +51,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! has ${lingua} ${LINGUAS-${lingua}}; then
+               if ! use l10n_${lingua/_/-}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -77,7 +81,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if has ${lingua} ${LINGUAS-${lingua}}; then
+               if use l10n_${lingua/_/-}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi
index 1007cc620a170dd7b5a666331422c61e05e34b44..f615c0100f45ac62852672dfbcf31a3e0dff0318 100644 (file)
@@ -19,6 +19,10 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
+for lingua in ${UNBI_LINGUAS}; do
+       IUSE="${IUSE} l10n_${lingua/_/-}"
+done
+
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -46,7 +50,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! has ${lingua} ${LINGUAS-${lingua}}; then
+               if ! use l10n_${lingua/_/-}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -76,7 +80,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if has ${lingua} ${LINGUAS-${lingua}}; then
+               if use l10n_${lingua/_/-}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi
index 1007cc620a170dd7b5a666331422c61e05e34b44..f615c0100f45ac62852672dfbcf31a3e0dff0318 100644 (file)
@@ -19,6 +19,10 @@ UNBI_LINGUAS="
        zh_CN zh_TW
 "
 
+for lingua in ${UNBI_LINGUAS}; do
+       IUSE="${IUSE} l10n_${lingua/_/-}"
+done
+
 S=${WORKDIR}/${P}/src/${PN}
 
 DEPEND="dev-qt/qtgui:4"
@@ -46,7 +50,7 @@ src_prepare() {
        # Remove localisations
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if ! has ${lingua} ${LINGUAS-${lingua}}; then
+               if ! use l10n_${lingua/_/-}; then
                        sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
                        rm ${PN}_${lingua}.ts || die
                fi
@@ -76,7 +80,7 @@ src_install() {
 
        local lingua
        for lingua in ${UNBI_LINGUAS}; do
-               if has ${lingua} ${LINGUAS-${lingua}}; then
+               if use l10n_${lingua/_/-}; then
                        insinto /usr/share/${PN}
                        doins ${PN}_${lingua}.qm
                fi