sci-chemistry/gperiodic: Test LINGUAS rather than linguas_* USE flags.
authorUlrich Müller <ulm@gentoo.org>
Sat, 6 Jan 2018 20:39:43 +0000 (21:39 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sat, 6 Jan 2018 20:40:23 +0000 (21:40 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sci-chemistry/gperiodic/gperiodic-3.0.1.ebuild

index 5e16fff43ec1718e44380b3306ddfa38cc4f0b5f..e0d3ee51c5e64261e3157c95560a313bcb4cb69b 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 @@ SLOT="0"
 LICENSE="GPL-2"
 IUSE="nls"
 MY_AVAILABLE_LINGUAS=" be bg cs da de es fi fr gl id is it lt ms nl pl pt_BR pt ru sv tr uk"
-IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
 
 RDEPEND="
        sys-libs/ncurses:0
@@ -29,7 +28,7 @@ src_prepare() {
                "${FILESDIR}"/${P}-makefile.patch \
                "${FILESDIR}"/${P}-nls.patch
        for lang in ${MY_AVAILABLE_LINGUAS}; do
-               if ! use linguas_${lang}; then
+               if ! has ${lang} ${LINGUAS-${lang}}; then
                        einfo "Cleaning translation for ${lang}"
                        rm po/${lang}.po || die
                fi