commit: 4b1760efed8701b8029c6ca973087a131c410d7a
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Fri Jan 23 19:32:59 2015 +0000
Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sun Jan 25 19:24:43 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=4b1760ef
[kde-apps/okular] Make tests optional
---
.../files/okular-5.9999-tests-optional.patch | 24 ++++++++++++++++++++++
kde-apps/okular/okular-5.9999.ebuild | 7 +++++++
2 files changed, 31 insertions(+)
diff --git a/kde-apps/okular/files/okular-5.9999-tests-optional.patch
b/kde-apps/okular/files/okular-5.9999-tests-optional.patch
new file mode 100644
index 0000000..9494cbc
--- /dev/null
+++ b/kde-apps/okular/files/okular-5.9999-tests-optional.patch
@@ -0,0 +1,24 @@
+--- a/CMakeLists.txt 2015-01-25 14:40:33.935040773 +0100
++++ b/CMakeLists.txt 2015-01-25 14:42:53.287043165 +0100
+@@ -20,7 +20,7 @@
+ include(ECMAddTests)
+
+
+-find_package(Qt5 CONFIG REQUIRED COMPONENTS Core DBus Test Widgets
PrintSupport Svg Qml Quick)
++find_package(Qt5 CONFIG REQUIRED COMPONENTS Core DBus Widgets PrintSupport
Svg Qml Quick)
+ find_package(KF5 REQUIRED COMPONENTS
+ Activities
+ Archive
+@@ -68,7 +68,11 @@
+ add_subdirectory( ui )
+ add_subdirectory( shell )
+ add_subdirectory( generators )
+-add_subdirectory( autotests )
++
++if(BUILD_TESTING)
++ find_package(Qt5Test CONFIG REQUIRED)
++ add_subdirectory( autotests )
++endif()
+
+ add_subdirectory(doc)
+
diff --git a/kde-apps/okular/okular-5.9999.ebuild
b/kde-apps/okular/okular-5.9999.ebuild
index ec6c217..54e3c2e 100644
--- a/kde-apps/okular/okular-5.9999.ebuild
+++ b/kde-apps/okular/okular-5.9999.ebuild
@@ -58,6 +58,13 @@ RDEPEND="${DEPEND}
RESTRICT=test
# test 2: parttest hangs
+src_prepare() {
+ # whole patch should be upstreamed, doesn't work in PATCHES
+ epatch "${FILESDIR}/${PN}-5.9999-tests-optional.patch"
+
+ kde5_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_with chm)