Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/kube/, mail-client/kube/files/
Date: Sun, 29 Sep 2019 20:07:34
Message-Id: 1569787626.b40dfc26904023df04f4fa2f09400f5866d03b64.asturm@gentoo
1 commit: b40dfc26904023df04f4fa2f09400f5866d03b64
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 29 19:40:12 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 29 20:07:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b40dfc26
7
8 mail-client/kube: Accept kde-frameworks/kcalendarcore
9
10 Add missing dev-qt/qtconcurrent:5
11 Update DESCRIPTION
12 Use patch and switch to KDE_TEST="forceoptional"
13
14 Package-Manager: Portage-2.3.76, Repoman-2.3.17
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16
17 .../kube/files/kube-0.7.0-tests-optional.patch | 64 ++++++++++++++++++++++
18 mail-client/kube/kube-0.7.0.ebuild | 12 +++-
19 2 files changed, 73 insertions(+), 3 deletions(-)
20
21 diff --git a/mail-client/kube/files/kube-0.7.0-tests-optional.patch b/mail-client/kube/files/kube-0.7.0-tests-optional.patch
22 new file mode 100644
23 index 00000000000..efdf09c775b
24 --- /dev/null
25 +++ b/mail-client/kube/files/kube-0.7.0-tests-optional.patch
26 @@ -0,0 +1,64 @@
27 +--- a/CMakeLists.txt 2019-09-29 21:36:28.419106801 +0200
28 ++++ b/CMakeLists.txt 2019-09-29 21:36:28.423106839 +0200
29 +@@ -43,7 +43,9 @@
30 + add_subdirectory(applications)
31 + add_subdirectory(views)
32 + add_subdirectory(accounts)
33 ++if(BUILD_TESTING)
34 + add_subdirectory(tests)
35 ++endif()
36 + if (${ENABLE_EXTENSION})
37 + add_subdirectory(extensions)
38 + endif()
39 +--- a/framework/CMakeLists.txt 2019-09-29 21:36:28.428106886 +0200
40 ++++ b/framework/CMakeLists.txt 2019-09-29 21:36:28.433106934 +0200
41 +@@ -4,4 +4,6 @@
42 + install(FILES qmldir DESTINATION ${FRAMEWORK_INSTALL_DIR})
43 +
44 + add_subdirectory(src)
45 ++if(BUILD_TESTING)
46 + add_subdirectory(qml/tests)
47 ++endif()
48 +--- a/framework/src/CMakeLists.txt 2019-09-29 21:36:28.437106972 +0200
49 ++++ b/framework/src/CMakeLists.txt 2019-09-29 21:36:28.450107095 +0200
50 +@@ -86,10 +86,16 @@
51 +
52 + set(BUILD_TESTING ON)
53 +
54 ++if(BUILD_TESTING)
55 + add_subdirectory(tests)
56 ++endif()
57 + add_subdirectory(domain/mime)
58 ++if(BUILD_TESTING)
59 + add_subdirectory(domain/mime/tests)
60 ++endif()
61 + add_subdirectory(domain/mime/mimetreeparser)
62 ++if(BUILD_TESTING)
63 + add_subdirectory(domain/settings/tests)
64 ++endif()
65 +
66 + feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
67 +--- a/framework/src/domain/mime/mimetreeparser/CMakeLists.txt 2019-09-29 21:36:28.455107143 +0200
68 ++++ b/framework/src/domain/mime/mimetreeparser/CMakeLists.txt 2019-09-29 21:36:28.458107171 +0200
69 +@@ -49,5 +49,9 @@
70 + Gpgme::Gpgme
71 + )
72 +
73 ++if(BUILD_TESTING)
74 + add_subdirectory(autotests)
75 ++endif()
76 ++if(BUILD_TESTING)
77 + add_subdirectory(tests)
78 ++endif()
79 +--- a/components/CMakeLists.txt 2019-09-29 21:36:28.463107218 +0200
80 ++++ b/components/CMakeLists.txt 2019-09-29 21:36:28.476107341 +0200
81 +@@ -8,7 +8,9 @@
82 + endmacro(install_qml_component)
83 +
84 + install_qml_component(kube)
85 ++if(BUILD_TESTING)
86 + add_subdirectory(kube/tests)
87 ++endif()
88 + install_qml_component(accounts)
89 +
90 +
91
92 diff --git a/mail-client/kube/kube-0.7.0.ebuild b/mail-client/kube/kube-0.7.0.ebuild
93 index 75753f8bb2f..9b40730b0d6 100644
94 --- a/mail-client/kube/kube-0.7.0.ebuild
95 +++ b/mail-client/kube/kube-0.7.0.ebuild
96 @@ -3,10 +3,10 @@
97
98 EAPI=7
99
100 -KDE_TEST="forceoptional-recursive"
101 +KDE_TEST="forceoptional"
102 inherit kde5
103
104 -DESCRIPTION="A mail client by KDE"
105 +DESCRIPTION="Mail client based on KDE Frameworks"
106 HOMEPAGE="https://kube.kde.org/"
107 SRC_URI="https://github.com/KDE/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
108 KEYWORDS="~amd64"
109 @@ -14,8 +14,12 @@ KEYWORDS="~amd64"
110 RDEPEND="
111 $(add_frameworks_dep breeze-icons)
112 $(add_frameworks_dep kcodecs)
113 - $(add_kdeapps_dep kcontacts)
114 + || (
115 + $(add_frameworks_dep kcontacts)
116 + $(add_kdeapps_dep kcontacts)
117 + )
118 $(add_kdeapps_dep kmime)
119 + $(add_qt_dep qtconcurrent)
120 $(add_qt_dep qtdeclarative)
121 $(add_qt_dep qtgui)
122 $(add_qt_dep qtnetwork)
123 @@ -34,6 +38,8 @@ DEPEND="${RDEPEND}
124
125 RESTRICT+=" test"
126
127 +PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" )
128 +
129 src_prepare() {
130 kde5_src_prepare