summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2015-04-16 22:49:55 +1000
committerMichael Palimaka <kensington@gentoo.org>2015-04-16 22:50:00 +1000
commitf3331211456dcb58bc4ba8c30d67c29689dddeeb (patch)
tree5d4f24135cce8e30c4f9fbfa00f0d1ec61250ab6
parentf865a40afb0cab3df623eb7d458f3ffd6533db59 (diff)
downloadkde-f3331211456dcb58bc4ba8c30d67c29689dddeeb.tar.gz
kde-f3331211456dcb58bc4ba8c30d67c29689dddeeb.tar.bz2
kde-f3331211456dcb58bc4ba8c30d67c29689dddeeb.zip
[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.
-rw-r--r--eclass/kde5.eclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index c6dbfc91534..6755541fff2 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