app-misc/emelfm2: Test LINGUAS rather than linguas_* USE flags.
authorUlrich Müller <ulm@gentoo.org>
Sun, 7 Jan 2018 11:14:08 +0000 (12:14 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sun, 7 Jan 2018 11:20:39 +0000 (12:20 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-misc/emelfm2/emelfm2-0.9.1-r1.ebuild
app-misc/emelfm2/emelfm2-0.9.1-r2.ebuild

index 6c74bb99d21abaa1848b5e054f7e2ecbafd3a3fd..afac8716bab90b5ac556f3fe1c60f2a4e2528dbe 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -14,7 +14,6 @@ KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
 IUSE="acl ansi gimp gtk3 kernel_linux nls policykit spell udisks"
 
 EMELFM2_LINGUAS=( de fr ja pl ru zh_CN )
-IUSE+=" ${EMELFM2_LINGUAS[@]/#/linguas_}"
 
 COMMON_DEPEND="
        >=dev-libs/glib-2.26:2
@@ -46,7 +45,7 @@ src_prepare() {
 
        local lingua
        for lingua in ${EMELFM2_LINGUAS[@]}; do
-               use linguas_${lingua} || mv po/${lingua}.po{,.unwanted}
+               has ${lingua} ${LINGUAS-${lingua}} || mv po/${lingua}.po{,.unwanted}
        done
 }
 
index e3fc45f7773b115bdf885999a23356aa3dd71507..f59d82948f662cc799cdb64cc03cdad36a7cb169 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
@@ -14,7 +14,6 @@ KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
 IUSE="acl ansi gimp gtk3 kernel_linux nls policykit spell udisks"
 
 EMELFM2_LINGUAS=( de fr ja pl ru zh_CN )
-IUSE+=" ${EMELFM2_LINGUAS[@]/#/linguas_}"
 
 COMMON_DEPEND="
        >=dev-libs/glib-2.26:2
@@ -46,7 +45,7 @@ src_prepare() {
 
        local lingua
        for lingua in ${EMELFM2_LINGUAS[@]}; do
-               use linguas_${lingua} || mv po/${lingua}.po{,.unwanted}
+               has ${lingua} ${LINGUAS-${lingua}} || mv po/${lingua}.po{,.unwanted}
        done
 }