app-misc/tasque: Remove linguas_* from IUSE.
authorUlrich Müller <ulm@gentoo.org>
Sat, 6 Jan 2018 12:13:19 +0000 (13:13 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sat, 6 Jan 2018 12:22:56 +0000 (13:22 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-misc/tasque/tasque-0.1.12.ebuild

index c5096c46bd117f3a7fc63d40d00f5512bef15802..aee4663574b918ab2cb222e3640da27e4e8997f1 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
@@ -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
 }