commit:     6c164fa7819a09c8c529da4997f76d2e92150247
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 11 19:22:53 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Apr 11 19:22:53 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=6c164fa7

[eclass] Punt bogus deps only when not required.

This could cause tests to fail to build since Qt5Test would never be found, 
even when wanted.

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

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 0e4a4b3..c6dbfc9 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -394,7 +394,7 @@ kde5_src_prepare() {
                comment_add_subdirectory tests
        fi
 
-       if [[ ${CATEGORY} = kde-plasma ]]; then
+       if [[ ${CATEGORY} = kde-plasma ]] && ! use_if_iuse test ; then
                punt_bogus_deps
        fi
 

Reply via email to