commit:     bf806ee6299c1e3d78ab7db193f981fe38768fde
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: Mon Oct 23 23:19:32 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=bf806ee6

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 52e063c5a6..67ac4ac165 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -619,7 +619,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