diff options
author | Johannes Huber <johu@gentoo.org> | 2016-03-26 18:56:55 +0100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-04-03 01:59:21 +1100 |
commit | c27feb9ce5bdc9b1a1cdd06d8cafac218fddbcb1 (patch) | |
tree | 7da449a08215ea63e22eff00832cc00cea97deec /eclass/kde5.eclass | |
parent | dev-perl/Net-Server-Mail: Remove old (diff) | |
download | gentoo-c27feb9ce5bdc9b1a1cdd06d8cafac218fddbcb1.tar.gz gentoo-c27feb9ce5bdc9b1a1cdd06d8cafac218fddbcb1.tar.bz2 gentoo-c27feb9ce5bdc9b1a1cdd06d8cafac218fddbcb1.zip |
kde5.eclass: Improve translation handling
Do not remove unconditionally po file for non release versions.
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r-- | eclass/kde5.eclass | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 47ced0915868..db331cbaa5de 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -387,24 +387,24 @@ kde5_src_prepare() { # enable only the requested translations # when required - if [[ ${KDE_BUILD_TYPE} = release ]] ; then - if [[ -d po ]] ; then - pushd po > /dev/null || die - for lang in *; do - if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then - rm -r ${lang} || die - if [[ -e CMakeLists.txt ]] ; then - cmake_comment_add_subdirectory ${lang} - fi - elif ! has ${lang/.po/} ${LINGUAS} ; then - if [[ ${lang} != CMakeLists.txt ]] ; then - rm ${lang} || die - fi + if [[ -d po ]] ; then + pushd po > /dev/null || die + for lang in *; do + if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then + rm -r ${lang} || die + if [[ -e CMakeLists.txt ]] ; then + cmake_comment_add_subdirectory ${lang} fi - done - popd > /dev/null || die - fi + elif ! has ${lang/.po/} ${LINGUAS} ; then + if [[ ${lang} != CMakeLists.txt ]] ; then + rm ${lang} || die + fi + fi + done + popd > /dev/null || die + fi + if [[ ${KDE_BUILD_TYPE} = release ]] ; then if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then pushd ${KDE_DOC_DIR} > /dev/null || die for lang in *; do @@ -414,8 +414,6 @@ kde5_src_prepare() { done popd > /dev/null || die fi - else - rm -rf po fi # in frameworks, tests = manual tests so never build them |