kde5.eclass: Drop translations when nls not wanted
authorJohannes Huber <johu@gentoo.org>
Sat, 23 Apr 2016 18:01:13 +0000 (20:01 +0200)
committerJohannes Huber <johu@gentoo.org>
Sat, 23 Apr 2016 18:01:13 +0000 (20:01 +0200)
Gentoo-bug: 580720

eclass/kde5.eclass

index 675023b6e515de1e21602d9a6a3729f2251cccf2..c880cee9b56865597fce39ef1c97317c3ffc87ef 100644 (file)
@@ -391,6 +391,11 @@ kde5_src_prepare() {
                fi
        fi
 
+       # drop translations when nls is not wanted
+       if [[ -d po ]] && ! use_if_isue nls ; then
+               rm -rf po || die
+       fi
+
        # enable only the requested translations
        # when required
        if [[ -d po ]] ; then