commit: a9e2217aa7b8f45400f5a4867e3997a88304ad45
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 12 18:02:48 2014 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Oct 12 18:02:48 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=a9e2217a
[eclass] Remove KDE_NLS.
All it did was control adding a USE flag (which we can easily do manually in
the few packages it's required) and toggle installing linguas (which is
controlled anyway by LINGUAS).
---
eclass/kde5.eclass | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 6c67803..d513d6a 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -73,19 +73,6 @@ fi
# generate and install KDE handbook.
: ${KDE_HANDBOOK:=false}
-# @ECLASS-VARIABLE: KDE_NLS
-# @DESCRIPTION:
-# If set to "false", do nothing.
-# Otherwise, add "nls" to IUSE, generate and install translations based on
-# the LINGUAS environment variable.
-if [[ ${CATEGORY} = kde-frameworks ]]; then
- : ${KDE_NLS:=true}
-elif [[ ${CATEGORY} = kde-base ]]; then
- : ${KDE_NLS:=true}
-else
- : ${KDE_NLS:=false}
-fi
-
# @ECLASS-VARIABLE: KDE_TEST
# @DESCRIPTION:
# If set to "false", do nothing.
@@ -162,13 +149,6 @@ case ${KDE_HANDBOOK} in
;;
esac
-case ${KDE_NLS} in
- false) ;;
- *)
- IUSE+=" nls"
- ;;
-esac
-
case ${KDE_TEST} in
false) ;;
*)
@@ -337,7 +317,7 @@ kde5_src_prepare() {
# enable only the requested translations
# when required
- if [[ ${KDE_BUILD_TYPE} = release ]] && use_if_iuse nls ; then
+ if [[ ${KDE_BUILD_TYPE} = release ]] ; then
for lang in $(ls po) ; do
if ! has ${lang} ${LINGUAS} ; then
rm -rf po/${lang}