1 |
commit: 52f646111106c38e769db57d9d6d17480cf6acf5 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jan 28 22:59:07 2015 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 30 23:31:29 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=52f64611 |
7 |
|
8 |
[kde-apps/kapptemplate] Make tests optional |
9 |
|
10 |
Package-Manager: portage-2.2.15 |
11 |
|
12 |
--- |
13 |
.../files/kapptemplate-9999-tests-optional.patch | 20 ++++++++++++++++++++ |
14 |
kde-apps/kapptemplate/kapptemplate-9999.ebuild | 8 +++++--- |
15 |
2 files changed, 25 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/kde-apps/kapptemplate/files/kapptemplate-9999-tests-optional.patch b/kde-apps/kapptemplate/files/kapptemplate-9999-tests-optional.patch |
18 |
new file mode 100644 |
19 |
index 0000000..b512f74 |
20 |
--- /dev/null |
21 |
+++ b/kde-apps/kapptemplate/files/kapptemplate-9999-tests-optional.patch |
22 |
@@ -0,0 +1,20 @@ |
23 |
+--- a/CMakeLists.txt 2015-01-28 23:35:43.818842308 +0100 |
24 |
++++ b/CMakeLists.txt 2015-01-28 23:39:20.690063158 +0100 |
25 |
+@@ -12,7 +12,6 @@ |
26 |
+ include(FeatureSummary) |
27 |
+ include(KAppTemplateMacro) |
28 |
+ |
29 |
+-find_package(Qt5 REQUIRED COMPONENTS Test) |
30 |
+ find_package(KF5 REQUIRED COMPONENTS CoreAddons ConfigWidgets Completion Archive KIO I18n DocTools) |
31 |
+ |
32 |
+ add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) |
33 |
+@@ -20,4 +19,8 @@ |
34 |
+ add_subdirectory(doc) |
35 |
+ add_subdirectory(icons) |
36 |
+ add_subdirectory(src) |
37 |
+-add_subdirectory(tests) |
38 |
++ |
39 |
++if(BUILD_TESTING) |
40 |
++ find_package(Qt5Test REQUIRED) |
41 |
++ add_subdirectory(tests) |
42 |
++endif() |
43 |
|
44 |
diff --git a/kde-apps/kapptemplate/kapptemplate-9999.ebuild b/kde-apps/kapptemplate/kapptemplate-9999.ebuild |
45 |
index c28a606..3c584e0 100644 |
46 |
--- a/kde-apps/kapptemplate/kapptemplate-9999.ebuild |
47 |
+++ b/kde-apps/kapptemplate/kapptemplate-9999.ebuild |
48 |
@@ -5,6 +5,7 @@ |
49 |
EAPI=5 |
50 |
|
51 |
KDE_HANDBOOK="true" |
52 |
+KDE_TEST="true" |
53 |
inherit kde5 |
54 |
|
55 |
DESCRIPTION="A shell script to create the necessary framework to develop KDE applications" |
56 |
@@ -24,6 +25,7 @@ DEPEND=" |
57 |
dev-qt/qtgui:5 |
58 |
dev-qt/qtwidgets:5 |
59 |
" |
60 |
-RDEPEND="${DEPEND} |
61 |
- !kde-base/kapptemplate:4 |
62 |
-" |
63 |
+ |
64 |
+RDEPEND="${DEPEND}" |
65 |
+ |
66 |
+PATCHES=( "${FILESDIR}/${PN}"-9999-tests-optional.patch ) |