commit:     2c3014f6a6dc7ab31520e65680eb5def3e18cd11
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  5 18:29:38 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Jan  5 18:30:09 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c3014f6

app-text/iso-codes: Test LINGUAS rather than linguas_* USE flags.

Closes: https://bugs.gentoo.org/643594
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-text/iso-codes/iso-codes-3.75.ebuild | 4 ++--
 app-text/iso-codes/iso-codes-3.76.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app-text/iso-codes/iso-codes-3.75.ebuild 
b/app-text/iso-codes/iso-codes-3.75.ebuild
index 7b19bfc4b0e..b5a8f0e064c 100644
--- a/app-text/iso-codes/iso-codes-3.75.ebuild
+++ b/app-text/iso-codes/iso-codes-3.75.ebuild
@@ -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
@@ -64,7 +64,7 @@ src_prepare() {
                pushd "${std}" >/dev/null || die
                mylinguas=()
                for loc in *.po; do
-                       if use "linguas_${loc%.po}"; then
+                       if has ${loc%.po} ${LINGUAS-${loc%.po}}; then
                                mylinguas+=( "${loc}" )
                        fi
                done

diff --git a/app-text/iso-codes/iso-codes-3.76.ebuild 
b/app-text/iso-codes/iso-codes-3.76.ebuild
index 64c8a46ae42..c2b56244931 100644
--- a/app-text/iso-codes/iso-codes-3.76.ebuild
+++ b/app-text/iso-codes/iso-codes-3.76.ebuild
@@ -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
@@ -64,7 +64,7 @@ src_prepare() {
                pushd "${std}" >/dev/null || die
                mylinguas=()
                for loc in *.po; do
-                       if use "linguas_${loc%.po}"; then
+                       if has ${loc%.po} ${LINGUAS-${loc%.po}}; then
                                mylinguas+=( "${loc}" )
                        fi
                done

Reply via email to