summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-plasma/plasma-desktop/files/plasma-desktop-9999-tests-optional.patch35
-rw-r--r--kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild3
2 files changed, 38 insertions, 0 deletions
diff --git a/kde-plasma/plasma-desktop/files/plasma-desktop-9999-tests-optional.patch b/kde-plasma/plasma-desktop/files/plasma-desktop-9999-tests-optional.patch
new file mode 100644
index 00000000000..f417286862a
--- /dev/null
+++ b/kde-plasma/plasma-desktop/files/plasma-desktop-9999-tests-optional.patch
@@ -0,0 +1,35 @@
+--- a/CMakeLists.txt 2015-01-21 01:59:46.589187275 +0100
++++ b/CMakeLists.txt 2015-01-21 02:00:47.260569833 +0100
+@@ -25,7 +25,6 @@
+ Widgets
+ X11Extras
+ Svg
+- Test
+ Concurrent
+ )
+
+--- a/kcms/lookandfeel/CMakeLists.txt 2015-01-21 01:59:46.643187615 +0100
++++ b/kcms/lookandfeel/CMakeLists.txt 2015-01-21 02:05:09.909255405 +0100
+@@ -44,6 +44,9 @@
+ install(FILES kcm_lookandfeel.desktop DESTINATION ${SERVICES_INSTALL_DIR})
+ install(TARGETS kcm_lookandfeel DESTINATION ${PLUGIN_INSTALL_DIR})
+
+-add_subdirectory(autotests)
++if(BUILD_TESTING)
++ find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
++ add_subdirectory(autotests)
++endif()
+
+ plasma_install_package(package kcm_lookandfeel kcms kcm_lookandfeel)
+--- a/kcms/keyboard/CMakeLists.txt 2015-01-21 01:59:46.629187527 +0100
++++ b/kcms/keyboard/CMakeLists.txt 2015-01-21 02:08:24.103523804 +0100
+@@ -183,5 +183,7 @@
+
+
+ # Unit tests
+-
+-add_subdirectory( tests )
++if(BUILD_TESTING)
++ find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
++ add_subdirectory( tests )
++endif()
diff --git a/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild b/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild
index 7beb6c203c7..8a7f22f157c 100644
--- a/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild
+++ b/kde-plasma/plasma-desktop/plasma-desktop-9999.ebuild
@@ -5,6 +5,7 @@
EAPI=5
KDE_HANDBOOK="true"
+KDE_TEST="true"
inherit kde5
DESCRIPTION="KDE Plasma desktop"
@@ -104,6 +105,8 @@ DEPEND="${COMMON_DEPEND}
fontconfig? ( x11-libs/libXrender )
"
+PATCHES=( "${FILESDIR}/${PN}-9999-tests-optional.patch" )
+
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_find_package fontconfig Fontconfig)