summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-apps/kdepim-addons/kdepim-addons-9999.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild b/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild
index 14c0e6677c2..e7d44490805 100644
--- a/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild
+++ b/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild
@@ -67,6 +67,13 @@ RDEPEND="${COMMON_DEPEND}
src_prepare() {
kde5_src_prepare
+ if ! use test; then
+ sed -i -e "/add_subdirectory(.*tests)/ s/^/#DONT/" \
+ plugins/webengineurlinterceptor/donottrack/CMakeLists.txt \
+ plugins/messageviewer/bodypartformatter/CMakeLists.txt \
+ || die "Failed to disable tests"
+ fi
+
for pim_ft in ${PIM_FTS}; do
use kdepim_features_${pim_ft} || cmake_comment_add_subdirectory ${pim_ft}
done