diff options
author | 2015-01-20 00:40:17 +0100 | |
---|---|---|
committer | 2015-01-21 21:47:43 +0100 | |
commit | 59dbb99a1c384e91f5600723613a21dbbe6dfa5c (patch) | |
tree | b9171636c026d3b9b2bbc8cc26e6b354e6c07013 /app-cdr | |
parent | [kde-misc/kdeconnect] Make tests optional (diff) | |
download | kde-59dbb99a1c384e91f5600723613a21dbbe6dfa5c.tar.gz kde-59dbb99a1c384e91f5600723613a21dbbe6dfa5c.tar.bz2 kde-59dbb99a1c384e91f5600723613a21dbbe6dfa5c.zip |
[app-cdr/k3b] Make tests optional
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/k3b/files/k3b-5.9999-tests-optional.patch | 24 | ||||
-rw-r--r-- | app-cdr/k3b/k3b-5.9999.ebuild | 4 |
2 files changed, 27 insertions, 1 deletions
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 0000000000..81d982f930 --- /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 f9485e0d80..522967e23c 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 |