commit: 1113ca15d1439bd3356275cf5dbcf135dba8cc0b
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Wed Jan 21 21:17:34 2015 +0000
Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Wed Jan 21 22:52:41 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=1113ca15
[kde-apps/kate] Make tests optional
---
kde-apps/kate/files/kate-9999-tests-optional.patch | 15 +++++++++++++++
kde-apps/kate/kate-9999.ebuild | 5 ++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/kde-apps/kate/files/kate-9999-tests-optional.patch
b/kde-apps/kate/files/kate-9999-tests-optional.patch
new file mode 100644
index 0000000..f7e29ef
--- /dev/null
+++ b/kde-apps/kate/files/kate-9999-tests-optional.patch
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt 2015-01-21 21:44:44.786490427 +0100
++++ b/CMakeLists.txt 2015-01-21 22:07:15.833138021 +0100
+@@ -30,7 +30,11 @@
+ include(KDECMakeSettings)
+ include(KDECompilerSettings)
+
+-find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets Script
Sql Test)
++find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets Script
Sql)
++
++if(BUILD_TESTING)
++ find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
++endif()
+
+ # Load the frameworks we need
+ find_package(KF5 REQUIRED COMPONENTS
diff --git a/kde-apps/kate/kate-9999.ebuild b/kde-apps/kate/kate-9999.ebuild
index af4c41b..6f556c7 100644
--- a/kde-apps/kate/kate-9999.ebuild
+++ b/kde-apps/kate/kate-9999.ebuild
@@ -4,7 +4,8 @@
EAPI=5
-KDE_HANDBOOK="optional"
+KDE_HANDBOOK="true"
+KDE_TEST="true"
inherit kde5
DESCRIPTION="Kate is an advanced text editor"
@@ -53,6 +54,8 @@ RDEPEND="${DEPEND}
!kde-base/kate:4
"
+PATCHES=( "${FILESDIR}/${PN}-9999-tests-optional.patch" )
+
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_build addons)