commit:     7114304391ba3261f74725906fdc5a0b8d192b29
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 22 08:28:18 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Apr 22 08:31:42 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=71143043

kde5.eclass: Check for and remove 'poqm' directory if USE=-nls

 eclass/kde5.eclass | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index e071a82b5d..5e9a731b59 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -540,8 +540,13 @@ kde5_src_prepare() {
        fi
 
        # drop translations when nls is not wanted
-       if [[ -d po ]] && in_iuse nls && ! use nls ; then
-               rm -r po || die
+       if in_iuse nls && ! use nls ; then
+               if [[ -d po ]] ; then
+                       rm -r po || die
+               fi
+               if [[ -d poqm ]] ; then
+                       rm -r poqm || die
+               fi
        fi
 
        # enable only the requested translations

Reply via email to