commit: c7e30f34dd64a17b0a753ef53dc0a825a9154ac6 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Feb 18 13:31:48 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Feb 18 13:32:11 2018 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=c7e30f34
kde-plasma/plasma-workspace: Fix build w/o tests Thanks-to: Duncan <1i5t5.duncan <AT> cox.net> Bug: https://bugs.gentoo.org/646264 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../files/plasma-workspace-5.12.80-tests-optional.patch | 14 ++++++++++++++ kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.12.80-tests-optional.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.12.80-tests-optional.patch new file mode 100644 index 0000000000..73979f73b0 --- /dev/null +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.12.80-tests-optional.patch @@ -0,0 +1,14 @@ +--- a/dataengines/notifications/CMakeLists.txt 2018-01-31 19:54:26.608634042 -0700 ++++ b/dataengines/notifications/CMakeLists.txt 2018-01-31 21:00:17.040830824 -0700 +@@ -33,6 +33,8 @@ install(FILES notifications.operations D + + #unit test + +-add_executable(notification_test notificationsanitizer.cpp notifications_test.cpp) +-target_link_libraries(notification_test Qt5::Test Qt5::Core) +-ecm_mark_as_test(notification_test) ++if(BUILD_TESTING) ++ add_executable(notification_test notificationsanitizer.cpp notifications_test.cpp) ++ target_link_libraries(notification_test Qt5::Test Qt5::Core) ++ ecm_mark_as_test(notification_test) ++endif() diff --git a/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild index 923f193500..21b940bcc9 100644 --- a/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild +++ b/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild @@ -4,7 +4,7 @@ EAPI=6 KDE_HANDBOOK="forceoptional" -KDE_TEST="forceoptional-recursive" +KDE_TEST="forceoptional" VIRTUALX_REQUIRED="test" inherit kde5 qmake-utils @@ -125,6 +125,7 @@ PATCHES=( "${FILESDIR}/${PN}-5.4-startkde-script.patch" "${FILESDIR}/${PN}-5.10-startplasmacompositor-script.patch" "${FILESDIR}/${PN}-5.10.4-unused-dep.patch" + "${FILESDIR}/${PN}-5.12.80-tests-optional.patch" ) RESTRICT+=" test"
