commit:     f6b3729b380cab8ef3574a5884107602c8b6e19c
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  6 12:13:19 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jan  6 12:22:56 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6b3729b

app-misc/tasque: Remove linguas_* from IUSE.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-misc/tasque/tasque-0.1.12.ebuild | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/app-misc/tasque/tasque-0.1.12.ebuild 
b/app-misc/tasque/tasque-0.1.12.ebuild
index c5096c46bd1..aee4663574b 100644
--- a/app-misc/tasque/tasque-0.1.12.ebuild
+++ b/app-misc/tasque/tasque-0.1.12.ebuild
@@ -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
@@ -15,10 +15,6 @@ IUSE="+rememberthemilk +sqlite hiveminder debug"
 LANGS="ca ca@valencia cs da de el en_GB eo es et fi fr gl hu id it ja lv nb 
nds nl pl
        pt pt_BR ro ru sl sr sr@latin sv th tr zh_CN zh_TW"
 
-for lang in ${LANGS}; do
-       IUSE+=" linguas_${lang}"
-done
-
 REQUIRED_USE="|| ( rememberthemilk sqlite hiveminder )"
 
 RDEPEND=">=dev-dotnet/gtk-sharp-2.12.7-r5
@@ -41,12 +37,15 @@ src_configure() {
 src_install() {
        default
        mv_command="cp -pPR" mono_multilib_comply
-       einfo "Cleaning up locales..."
-       for lang in ${LANGS}; do
-               use "linguas_${lang}" && {
-                       einfo "- keeping ${lang}"
-                       continue
-               }
-               rm -Rf "${D}"/usr/share/locale/"${lang}" || die
-       done
+
+       if [[ -n ${LINGUAS+set} ]]; then
+               einfo "Cleaning up locales..."
+               for lang in ${LANGS}; do
+                       if has ${lang} ${LINGUAS}; then
+                               einfo "- keeping ${lang}"
+                       else
+                               rm -Rf "${D}"/usr/share/locale/"${lang}" || die
+                       fi
+               done
+       fi
 }

Reply via email to