commit:     cbd8067af84cfbe52d9a44c93a15270259d23209
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 23 22:08:04 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 26 08:22:33 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbd8067a

kde5.eclass: Don't add BUILD_TESTING=OFF if test not in IUSE

 eclass/kde5.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index fba09c01186..da0faafec26 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -620,7 +620,7 @@ kde5_src_configure() {
 
        local cmakeargs
 
-       if ! use_if_iuse test ; then
+       if in_iuse test && ! use test ; then
                cmakeargs+=( -DBUILD_TESTING=OFF )
 
                if [[ ${KDE_TEST} = optional ]] ; then

Reply via email to