Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kdepim-runtime/, kde-apps/kdepim-runtime/files/
Date: Fri, 16 Nov 2018 22:17:22
Message-Id: 1542405124.5160336c5b12b0550572f908dcf08a195ee70201.asturm@gentoo
1 commit: 5160336c5b12b0550572f908dcf08a195ee70201
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 16 21:52:04 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 16 21:52:04 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=5160336c
7
8 kde-apps/kdepim-runtime: Add back kdelibs4support DEPEND, add USE oauth
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 ...kdepim-runtime-18.11.80-nokdelibs4support.patch | 55 ----------------------
14 .../kdepim-runtime-18.12.49.9999.ebuild | 12 ++++-
15 kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild | 12 ++++-
16 kde-apps/kdepim-runtime/metadata.xml | 3 ++
17 4 files changed, 23 insertions(+), 59 deletions(-)
18
19 diff --git a/kde-apps/kdepim-runtime/files/kdepim-runtime-18.11.80-nokdelibs4support.patch b/kde-apps/kdepim-runtime/files/kdepim-runtime-18.11.80-nokdelibs4support.patch
20 deleted file mode 100644
21 index d1a916cb1d..0000000000
22 --- a/kde-apps/kdepim-runtime/files/kdepim-runtime-18.11.80-nokdelibs4support.patch
23 +++ /dev/null
24 @@ -1,55 +0,0 @@
25 -From 952b572f381f965edbb0b339f7c04a4054aa262e Mon Sep 17 00:00:00 2001
26 -From: Andreas Sturmlechner <asturm@g.o>
27 -Date: Tue, 13 Nov 2018 19:23:21 +0100
28 -Subject: [PATCH] Move required KF5KDELibs4Support dependency to conditional
29 - kolab resource
30 -
31 -Fix definitions required for build when not provided by KF5KDELibs4Support.
32 -
33 -BUG: 400934
34 ----
35 - CMakeLists.txt | 7 +++----
36 - resources/CMakeLists.txt | 1 +
37 - 2 files changed, 4 insertions(+), 4 deletions(-)
38 -
39 -diff --git a/CMakeLists.txt b/CMakeLists.txt
40 -index 9c567ab0e..f16bc117a 100644
41 ---- a/CMakeLists.txt
42 -+++ b/CMakeLists.txt
43 -@@ -126,7 +126,6 @@ find_package(KF5DocTools ${KF5_VERSION} CONFIG REQUIRED) # pop3
44 - find_package(KF5Holidays ${KF5_VERSION} CONFIG REQUIRED)
45 - find_package(KF5DBusAddons ${KF5_VERSION} CONFIG REQUIRED)
46 - find_package(KF5IconThemes ${KF5_VERSION} CONFIG REQUIRED)
47 --find_package(KF5KDELibs4Support ${KF5_VERSION} CONFIG REQUIRED)
48 -
49 - # KdepimLibs package
50 - find_package(KF5Akonadi ${AKONADI_VERSION} CONFIG REQUIRED)
51 -@@ -149,10 +148,10 @@ find_package(KPimGAPI ${KGAPI_LIB_VERSION} CONFIG REQUIRED)
52 -
53 - option(KDEPIM_RUN_ISOLATED_TESTS "Run the isolated tests." FALSE)
54 -
55 --
56 - #add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
57 --
58 --
59 -+# QUrl
60 -+add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
61 -+remove_definitions(-DQT_NO_CAST_FROM_ASCII)
62 -
63 - add_subdirectory(resources)
64 - add_subdirectory(agents)
65 -diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt
66 -index 99f7dbf00..d2534cd92 100644
67 ---- a/resources/CMakeLists.txt
68 -+++ b/resources/CMakeLists.txt
69 -@@ -43,6 +43,7 @@ add_subdirectory( dav )
70 - add_subdirectory( ical )
71 - add_subdirectory( imap )
72 - if (Libkolabxml_FOUND)
73 -+ find_package(KF5KDELibs4Support ${KF5_VERSION} CONFIG REQUIRED)
74 - add_subdirectory( kolab )
75 - endif()
76 - add_subdirectory( facebook )
77 ---
78 -2.19.1
79 -
80
81 diff --git a/kde-apps/kdepim-runtime/kdepim-runtime-18.12.49.9999.ebuild b/kde-apps/kdepim-runtime/kdepim-runtime-18.12.49.9999.ebuild
82 index 2df05fd0fe..440c589d90 100644
83 --- a/kde-apps/kdepim-runtime/kdepim-runtime-18.12.49.9999.ebuild
84 +++ b/kde-apps/kdepim-runtime/kdepim-runtime-18.12.49.9999.ebuild
85 @@ -11,7 +11,7 @@ inherit kde5
86 DESCRIPTION="Runtime plugin collection to extend the functionality of KDE PIM"
87 LICENSE="GPL-2+ LGPL-2.1+"
88 KEYWORDS=""
89 -IUSE=""
90 +IUSE="+oauth"
91
92 # TODO kolab
93 COMMON_DEPEND="
94 @@ -21,6 +21,7 @@ COMMON_DEPEND="
95 $(add_frameworks_dep kconfigwidgets)
96 $(add_frameworks_dep kcoreaddons)
97 $(add_frameworks_dep kdbusaddons)
98 + $(add_frameworks_dep kdelibs4support)
99 $(add_frameworks_dep kholidays)
100 $(add_frameworks_dep ki18n)
101 $(add_frameworks_dep kio)
102 @@ -60,6 +61,7 @@ COMMON_DEPEND="
103 $(add_qt_dep qtxml)
104 dev-libs/cyrus-sasl:2
105 dev-libs/libical:=
106 + oauth? ( $(add_qt_dep qtnetworkauth) )
107 "
108 DEPEND="${COMMON_DEPEND}
109 $(add_qt_dep qtxmlpatterns)
110 @@ -74,4 +76,10 @@ RDEPEND="${COMMON_DEPEND}
111
112 RESTRICT+=" test"
113
114 -PATCHES=( "${FILESDIR}/${PN}-18.11.80-nokdelibs4support.patch" )
115 +src_configure() {
116 + local mycmakeargs=(
117 + $(cmake-utils_use_find_package oauth Qt5NetworkAuth)
118 + )
119 +
120 + kde5_src_configure
121 +}
122
123 diff --git a/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild b/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild
124 index 2df05fd0fe..440c589d90 100644
125 --- a/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild
126 +++ b/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild
127 @@ -11,7 +11,7 @@ inherit kde5
128 DESCRIPTION="Runtime plugin collection to extend the functionality of KDE PIM"
129 LICENSE="GPL-2+ LGPL-2.1+"
130 KEYWORDS=""
131 -IUSE=""
132 +IUSE="+oauth"
133
134 # TODO kolab
135 COMMON_DEPEND="
136 @@ -21,6 +21,7 @@ COMMON_DEPEND="
137 $(add_frameworks_dep kconfigwidgets)
138 $(add_frameworks_dep kcoreaddons)
139 $(add_frameworks_dep kdbusaddons)
140 + $(add_frameworks_dep kdelibs4support)
141 $(add_frameworks_dep kholidays)
142 $(add_frameworks_dep ki18n)
143 $(add_frameworks_dep kio)
144 @@ -60,6 +61,7 @@ COMMON_DEPEND="
145 $(add_qt_dep qtxml)
146 dev-libs/cyrus-sasl:2
147 dev-libs/libical:=
148 + oauth? ( $(add_qt_dep qtnetworkauth) )
149 "
150 DEPEND="${COMMON_DEPEND}
151 $(add_qt_dep qtxmlpatterns)
152 @@ -74,4 +76,10 @@ RDEPEND="${COMMON_DEPEND}
153
154 RESTRICT+=" test"
155
156 -PATCHES=( "${FILESDIR}/${PN}-18.11.80-nokdelibs4support.patch" )
157 +src_configure() {
158 + local mycmakeargs=(
159 + $(cmake-utils_use_find_package oauth Qt5NetworkAuth)
160 + )
161 +
162 + kde5_src_configure
163 +}
164
165 diff --git a/kde-apps/kdepim-runtime/metadata.xml b/kde-apps/kdepim-runtime/metadata.xml
166 index 2fdbf33d96..bf1135a307 100644
167 --- a/kde-apps/kdepim-runtime/metadata.xml
168 +++ b/kde-apps/kdepim-runtime/metadata.xml
169 @@ -5,4 +5,7 @@
170 <email>kde@g.o</email>
171 <name>Gentoo KDE Project</name>
172 </maintainer>
173 + <use>
174 + <flag name="oauth">Enable support OAuth authentication for EWS via <pkg>dev-qt/qtnetworkauth</pkg></flag>
175 + </use>
176 </pkgmetadata>