commit: 23e26a51e95398da17690a334bd5b69054bf75b7
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Tue Jun 16 18:57:09 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Jun 17 19:43:35 2015 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=23e26a51
[eclass] Fix translations handling
eclass/kde5.eclass | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 91a2e6a..73511bf 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -373,11 +373,18 @@ kde5_src_prepare() {
# enable only the requested translations
# when required
if [[ ${KDE_BUILD_TYPE} = release ]] ; then
- for lang in $(ls po 2> /dev/null) ; do
+ pushd po > /dev/null
+ for lang in $(ls) ; do
if ! has ${lang} ${LINGUAS} ; then
- rm -rf po/${lang}
+ if [[ ${lang} != CMakeLists.txt ]] ; then
+ rm -rf ${lang}
+ fi
+ if [[ -e CMakeLists.txt ]] ; then
+ comment_add_subdirectory ${lang}
+ fi
fi
done
+ popd > /dev/null
if [[ ${KDE_HANDBOOK} = true ]] ; then
pushd doc > /dev/null