commit: 9d1466fdf69c88b90c9d12299a111e6ff97275a9
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed May 17 20:26:54 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed May 17 20:26:54 2017 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=9d1466fd
kde5.eclass: Don't remove cmake_modules, simplify filtering LINGUAS
Recent changes in KDE Applications packaging added a new directory
'cmake_modules' for some type of data content inside po/${lang}/
eclass/kde5.eclass | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 60d8f131f1..7183973348 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -566,17 +566,18 @@ kde5_src_prepare() {
pushd ${po} > /dev/null || die
local lang
for lang in *; do
- if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS}
; then
- rm -r ${lang} || die
+ if [[ -e ${lang} ]] && ! has ${lang/.po/}
${LINGUAS} ; then
+ case ${lang} in
+ cmake_modules | \
+ CMakeLists.txt | \
+ ${PN}.pot) ;;
+ *) rm -r ${lang} || die ;;
+ esac
if [[ -e CMakeLists.txt ]] ; then
cmake_comment_add_subdirectory
${lang}
sed -e
"/add_subdirectory([[:space:]]*${lang}\/.*[[:space:]]*)/d" \
-i CMakeLists.txt || die
fi
- elif [[ -f ${lang} ]] && ! has ${lang/.po/}
${LINGUAS} ; then
- if [[ ${lang} != CMakeLists.txt &&
${lang} != ${PN}.pot ]] ; then
- rm ${lang} || die
- fi
fi
done
popd > /dev/null || die