commit:     59dbb99a1c384e91f5600723613a21dbbe6dfa5c
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Mon Jan 19 23:40:17 2015 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Wed Jan 21 20:47:43 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=59dbb99a

[app-cdr/k3b] Make tests optional

---
 app-cdr/k3b/files/k3b-5.9999-tests-optional.patch | 24 +++++++++++++++++++++++
 app-cdr/k3b/k3b-5.9999.ebuild                     |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/app-cdr/k3b/files/k3b-5.9999-tests-optional.patch 
b/app-cdr/k3b/files/k3b-5.9999-tests-optional.patch
new file mode 100644
index 0000000..81d982f
--- /dev/null
+++ b/app-cdr/k3b/files/k3b-5.9999-tests-optional.patch
@@ -0,0 +1,24 @@
+--- a/CMakeLists.txt   2015-01-20 00:28:45.286789787 +0100
++++ b/CMakeLists.txt   2015-01-20 00:30:11.829341844 +0100
+@@ -48,7 +48,7 @@
+ include(GenerateExportHeader)
+ include(ECMInstallIcons)
+ 
+-find_package(Qt5 REQUIRED COMPONENTS Core DBus Gui Test WebKitWidgets)
++find_package(Qt5 REQUIRED COMPONENTS Core DBus Gui WebKitWidgets)
+ find_package(KF5 REQUIRED COMPONENTS Archive Config CoreAddons DocTools 
FileMetaData I18n IconThemes JobWidgets
+                                      KCMUtils KIO Notifications NotifyConfig 
Service Solid WidgetsAddons XmlGui)
+ find_package(Iconv)
+@@ -274,7 +274,11 @@
+ add_subdirectory( kioslaves )
+ add_subdirectory( plugins )
+ add_subdirectory( doc )
+-add_subdirectory( tests )
++
++if(BUILD_TESTING)
++    find_package(Qt5Test REQUIRED)
++    add_subdirectory( tests )
++endif()
+ 
+ ###################  K3b config summary ################################
+ feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)

diff --git a/app-cdr/k3b/k3b-5.9999.ebuild b/app-cdr/k3b/k3b-5.9999.ebuild
index f9485e0..522967e 100644
--- a/app-cdr/k3b/k3b-5.9999.ebuild
+++ b/app-cdr/k3b/k3b-5.9999.ebuild
@@ -6,7 +6,7 @@ EAPI=5
 
 EGIT_BRANCH="kf5"
 KDE_HANDBOOK="true"
-
+KDE_TEST="true"
 # Translations are only in the tarballs, not in the git repo
 if [[ ${PV} != *9999* ]]; then
        KDE_LINGUAS="ast be bg ca ca@valencia cs csb da de el en_GB eo es et eu 
fi fr ga
@@ -82,6 +82,8 @@ REQUIRED_USE="
        sox? ( encode )
 "
 
+PATCHES=( "${FILESDIR}/${PN}-5.9999-tests-optional.patch" )
+
 src_configure() {
        local mycmakeargs=(
                -DK3B_BUILD_API_DOCS=OFF

Reply via email to