commit:     f3331211456dcb58bc4ba8c30d67c29689dddeeb
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 16 12:49:55 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Apr 16 12:50:00 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=f3331211

[eclass] Only fiddle with test subdirectories for KDE proper packages.

This was causing kdevplatform to break, and may have an unknown affect on other
packages that don't follow KDE test structure. We can revisit later as 
necessary.

 eclass/kde5.eclass | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index c6dbfc9..6755541 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -388,10 +388,12 @@ kde5_src_prepare() {
                comment_add_subdirectory tests
        fi
 
-       # only build unit tests when required
-       if ! use_if_iuse test ; then
-               comment_add_subdirectory autotests
-               comment_add_subdirectory tests
+       if [[ ${CATEGORY} = kde-frameworks || ${CATEGORY} = kde-plasma || 
${CATEGORY} = kde-apps ]] ; then
+               # only build unit tests when required
+               if ! use_if_iuse test ; then
+                       comment_add_subdirectory autotests
+                       comment_add_subdirectory tests
+               fi
        fi
 
        if [[ ${CATEGORY} = kde-plasma ]] && ! use_if_iuse test ; then

Reply via email to