1 |
commit: f7d3aeb9f6a10d62e906feab5d4a5c593f06ff89 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 4 11:54:25 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 4 11:58:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7d3aeb9 |
7 |
|
8 |
app-text/kjots: Fix build with >=kde-apps/akonadi-21.12.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/830580 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
.../kjots/files/kjots-5.1.0-akonadi-21.12.0.patch | 272 +++++++++++++++++++++ |
15 |
.../kjots/files/kjots-5.1.0-implicit-dep.patch | 26 ++ |
16 |
app-text/kjots/files/kjots-5.1.0-missing-lib.patch | 25 ++ |
17 |
app-text/kjots/kjots-5.1.0-r1.ebuild | 53 ++++ |
18 |
4 files changed, 376 insertions(+) |
19 |
|
20 |
diff --git a/app-text/kjots/files/kjots-5.1.0-akonadi-21.12.0.patch b/app-text/kjots/files/kjots-5.1.0-akonadi-21.12.0.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..3f0c4e52779b |
23 |
--- /dev/null |
24 |
+++ b/app-text/kjots/files/kjots-5.1.0-akonadi-21.12.0.patch |
25 |
@@ -0,0 +1,272 @@ |
26 |
+From 581548a1de9449efc0c77e9ac85c23066bac983e Mon Sep 17 00:00:00 2001 |
27 |
+From: "Friedrich W. H. Kossebau" <kossebau@×××.org> |
28 |
+Date: Wed, 8 Sep 2021 00:58:25 +0200 |
29 |
+Subject: [PATCH] Adapt to new Akonadi libraries includes using the C++ |
30 |
+ namespace as prefix |
31 |
+ |
32 |
+GIT_SILENT |
33 |
+--- |
34 |
+ src/kjotsedit.cpp | 5 +++++ |
35 |
+ src/kjotsmodel.cpp | 6 ++++++ |
36 |
+ src/kjotsmodel.h | 6 ++++++ |
37 |
+ src/kjotswidget.cpp | 20 +++++++++++++++++++- |
38 |
+ src/kjotswidget.h | 5 +++++ |
39 |
+ src/noteshared/notecreatorandselector.cpp | 7 +++++++ |
40 |
+ src/noteshared/notecreatorandselector.h | 6 ++++++ |
41 |
+ src/noteshared/notelockattribute.h | 6 ++++++ |
42 |
+ src/noteshared/notepinattribute.h | 6 ++++++ |
43 |
+ src/noteshared/standardnoteactionmanager.cpp | 8 ++++++++ |
44 |
+ src/noteshared/standardnoteactionmanager.h | 9 +++++++-- |
45 |
+ src/notesortproxymodel.cpp | 5 +++++ |
46 |
+ 12 files changed, 86 insertions(+), 3 deletions(-) |
47 |
+ |
48 |
+diff --git a/src/kjotsedit.cpp b/src/kjotsedit.cpp |
49 |
+index f1d61bd..c20bc42 100644 |
50 |
+--- a/src/kjotsedit.cpp |
51 |
++++ b/src/kjotsedit.cpp |
52 |
+@@ -33,7 +33,12 @@ |
53 |
+ #include <KPIMTextEdit/RichTextComposerActions> |
54 |
+ #include <KPIMTextEdit/RichTextComposerImages> |
55 |
+ |
56 |
++#include <akonadi_version.h> |
57 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
58 |
++#include <Akonadi/Item> |
59 |
++#else |
60 |
+ #include <AkonadiCore/Item> |
61 |
++#endif |
62 |
+ |
63 |
+ #include "kjotslinkdialog.h" |
64 |
+ #include "kjotsmodel.h" |
65 |
+diff --git a/src/kjotsmodel.cpp b/src/kjotsmodel.cpp |
66 |
+index e35c94f..99ee14f 100644 |
67 |
+--- a/src/kjotsmodel.cpp |
68 |
++++ b/src/kjotsmodel.cpp |
69 |
+@@ -13,8 +13,14 @@ |
70 |
+ #include <QTextDocument> |
71 |
+ #include <QIcon> |
72 |
+ |
73 |
++#include <akonadi_version.h> |
74 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
75 |
++#include <Akonadi/ChangeRecorder> |
76 |
++#include <Akonadi/EntityDisplayAttribute> |
77 |
++#else |
78 |
+ #include <AkonadiCore/ChangeRecorder> |
79 |
+ #include <AkonadiCore/EntityDisplayAttribute> |
80 |
++#endif |
81 |
+ #include <Akonadi/Notes/NoteUtils> |
82 |
+ |
83 |
+ #include <KMime/Message> |
84 |
+diff --git a/src/kjotsmodel.h b/src/kjotsmodel.h |
85 |
+index 71e0ca6..ec564a7 100644 |
86 |
+--- a/src/kjotsmodel.h |
87 |
++++ b/src/kjotsmodel.h |
88 |
+@@ -10,7 +10,13 @@ |
89 |
+ #ifndef KJOTSMODEL_H |
90 |
+ #define KJOTSMODEL_H |
91 |
+ |
92 |
++#include <akonadi_version.h> |
93 |
++#include <QtGlobal> // for QT_VERSION_CHECK |
94 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
95 |
++#include <Akonadi/EntityTreeModel> |
96 |
++#else |
97 |
+ #include <AkonadiCore/EntityTreeModel> |
98 |
++#endif |
99 |
+ |
100 |
+ class QTextDocument; |
101 |
+ |
102 |
+diff --git a/src/kjotswidget.cpp b/src/kjotswidget.cpp |
103 |
+index 3a3abd0..834fc33 100644 |
104 |
+--- a/src/kjotswidget.cpp |
105 |
++++ b/src/kjotswidget.cpp |
106 |
+@@ -35,6 +35,24 @@ |
107 |
+ |
108 |
+ // Akonadi |
109 |
+ #include <Akonadi/Notes/NoteUtils> |
110 |
++#include <akonadi_version.h> |
111 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
112 |
++#include <Akonadi/AttributeFactory> |
113 |
++#include <Akonadi/CollectionCreateJob> |
114 |
++#include <Akonadi/CollectionDeleteJob> |
115 |
++#include <Akonadi/ChangeRecorder> |
116 |
++#include <Akonadi/EntityDisplayAttribute> |
117 |
++#include <Akonadi/EntityMimeTypeFilterModel> |
118 |
++#include <Akonadi/Item> |
119 |
++#include <Akonadi/ItemCreateJob> |
120 |
++#include <Akonadi/ItemModifyJob> |
121 |
++#include <Akonadi/ItemDeleteJob> |
122 |
++#include <Akonadi/ItemFetchScope> |
123 |
++#include <Akonadi/EntityOrderProxyModel> |
124 |
++#include <Akonadi/EntityTreeView> |
125 |
++#include <Akonadi/ETMViewStateSaver> |
126 |
++#include <Akonadi/ControlGui> |
127 |
++#else |
128 |
+ #include <AkonadiCore/AttributeFactory> |
129 |
+ #include <AkonadiCore/CollectionCreateJob> |
130 |
+ #include <AkonadiCore/CollectionDeleteJob> |
131 |
+@@ -50,7 +68,7 @@ |
132 |
+ #include <AkonadiWidgets/EntityTreeView> |
133 |
+ #include <AkonadiWidgets/ETMViewStateSaver> |
134 |
+ #include <AkonadiWidgets/ControlGui> |
135 |
+- |
136 |
++#endif |
137 |
+ // Grantlee |
138 |
+ #include <grantlee/template.h> |
139 |
+ #include <grantlee/engine.h> |
140 |
+diff --git a/src/kjotswidget.h b/src/kjotswidget.h |
141 |
+index 7fe91ed..00a41b5 100644 |
142 |
+--- a/src/kjotswidget.h |
143 |
++++ b/src/kjotswidget.h |
144 |
+@@ -18,7 +18,12 @@ |
145 |
+ #include <QAbstractItemDelegate> |
146 |
+ #include <QPrinter> |
147 |
+ |
148 |
++#include <akonadi_version.h> |
149 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
150 |
++#include <Akonadi/Collection> |
151 |
++#else |
152 |
+ #include <AkonadiCore/Collection> |
153 |
++#endif |
154 |
+ |
155 |
+ #include <grantlee/templateloader.h> |
156 |
+ |
157 |
+diff --git a/src/noteshared/notecreatorandselector.cpp b/src/noteshared/notecreatorandselector.cpp |
158 |
+index 2172cbf..6d58c83 100644 |
159 |
+--- a/src/noteshared/notecreatorandselector.cpp |
160 |
++++ b/src/noteshared/notecreatorandselector.cpp |
161 |
+@@ -14,9 +14,16 @@ |
162 |
+ |
163 |
+ #include <KMime/Message> |
164 |
+ |
165 |
++#include <akonadi_version.h> |
166 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
167 |
++#include <Akonadi/EntityDisplayAttribute> |
168 |
++#include <Akonadi/EntityTreeModel> |
169 |
++#include <Akonadi/ItemCreateJob> |
170 |
++#else |
171 |
+ #include <AkonadiCore/EntityDisplayAttribute> |
172 |
+ #include <AkonadiCore/EntityTreeModel> |
173 |
+ #include <AkonadiCore/ItemCreateJob> |
174 |
++#endif |
175 |
+ #include <Akonadi/Notes/NoteUtils> |
176 |
+ |
177 |
+ #include "noteshared_debug.h" |
178 |
+diff --git a/src/noteshared/notecreatorandselector.h b/src/noteshared/notecreatorandselector.h |
179 |
+index 90055cf..986d042 100644 |
180 |
+--- a/src/noteshared/notecreatorandselector.h |
181 |
++++ b/src/noteshared/notecreatorandselector.h |
182 |
+@@ -14,8 +14,14 @@ |
183 |
+ #include <QItemSelectionModel> |
184 |
+ #include <QTimer> |
185 |
+ |
186 |
++#include <akonadi_version.h> |
187 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
188 |
++#include <Akonadi/Collection> |
189 |
++#include <Akonadi/Item> |
190 |
++#else |
191 |
+ #include <AkonadiCore/Collection> |
192 |
+ #include <AkonadiCore/Item> |
193 |
++#endif |
194 |
+ |
195 |
+ class KJob; |
196 |
+ |
197 |
+diff --git a/src/noteshared/notelockattribute.h b/src/noteshared/notelockattribute.h |
198 |
+index 9bdd8a2..b0ee819 100644 |
199 |
+--- a/src/noteshared/notelockattribute.h |
200 |
++++ b/src/noteshared/notelockattribute.h |
201 |
+@@ -11,7 +11,13 @@ |
202 |
+ #ifndef KJOTS_LOCK_ATTRIBUTE_H |
203 |
+ #define KJOTS_LOCK_ATTRIBUTE_H |
204 |
+ |
205 |
++#include <akonadi_version.h> |
206 |
++#include <QtGlobal> // for QT_VERSION_CHECK |
207 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
208 |
++#include <Akonadi/Attribute> |
209 |
++#else |
210 |
+ #include <AkonadiCore/Attribute> |
211 |
++#endif |
212 |
+ |
213 |
+ namespace NoteShared |
214 |
+ { |
215 |
+diff --git a/src/noteshared/notepinattribute.h b/src/noteshared/notepinattribute.h |
216 |
+index 3026dea..5f3903c 100644 |
217 |
+--- a/src/noteshared/notepinattribute.h |
218 |
++++ b/src/noteshared/notepinattribute.h |
219 |
+@@ -9,7 +9,13 @@ |
220 |
+ #ifndef NOTE_PIN_ATTRIBUTE_H |
221 |
+ #define NOTE_PIN_ATTRIBUTE_H |
222 |
+ |
223 |
++#include <akonadi_version.h> |
224 |
++#include <QtGlobal> // for QT_VERSION_CHECK |
225 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
226 |
++#include <Akonadi/Attribute> |
227 |
++#else |
228 |
+ #include <AkonadiCore/Attribute> |
229 |
++#endif |
230 |
+ |
231 |
+ namespace NoteShared |
232 |
+ { |
233 |
+diff --git a/src/noteshared/standardnoteactionmanager.cpp b/src/noteshared/standardnoteactionmanager.cpp |
234 |
+index a3f4b8b..2a2f4ce 100644 |
235 |
+--- a/src/noteshared/standardnoteactionmanager.cpp |
236 |
++++ b/src/noteshared/standardnoteactionmanager.cpp |
237 |
+@@ -13,10 +13,18 @@ |
238 |
+ #include <QColorDialog> |
239 |
+ #include <QItemSelectionModel> |
240 |
+ |
241 |
++#include <akonadi_version.h> |
242 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
243 |
++#include <Akonadi/EntityDisplayAttribute> |
244 |
++#include <Akonadi/EntityTreeModel> |
245 |
++#include <Akonadi/CollectionModifyJob> |
246 |
++#include <Akonadi/ItemModifyJob> |
247 |
++#else |
248 |
+ #include <AkonadiCore/EntityDisplayAttribute> |
249 |
+ #include <AkonadiCore/EntityTreeModel> |
250 |
+ #include <AkonadiCore/CollectionModifyJob> |
251 |
+ #include <AkonadiCore/ItemModifyJob> |
252 |
++#endif |
253 |
+ #include <Akonadi/Notes/NoteUtils> |
254 |
+ |
255 |
+ #include <KXmlGui/KActionCollection> |
256 |
+diff --git a/src/noteshared/standardnoteactionmanager.h b/src/noteshared/standardnoteactionmanager.h |
257 |
+index fe80dae..6605820 100644 |
258 |
+--- a/src/noteshared/standardnoteactionmanager.h |
259 |
++++ b/src/noteshared/standardnoteactionmanager.h |
260 |
+@@ -10,10 +10,15 @@ |
261 |
+ #ifndef AKONADI_STANDARDNOTESACTIONMANAGER_H |
262 |
+ #define AKONADI_STANDARDNOTESACTIONMANAGER_H |
263 |
+ |
264 |
+-#include <AkonadiWidgets/StandardActionManager> |
265 |
+- |
266 |
+ #include <QObject> |
267 |
+ |
268 |
++#include <akonadi_version.h> |
269 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
270 |
++#include <Akonadi/StandardActionManager> |
271 |
++#else |
272 |
++#include <AkonadiWidgets/StandardActionManager> |
273 |
++#endif |
274 |
++ |
275 |
+ class QAction; |
276 |
+ class KActionCollection; |
277 |
+ class QItemSelectionModel; |
278 |
+diff --git a/src/notesortproxymodel.cpp b/src/notesortproxymodel.cpp |
279 |
+index 89def1c..dbe582f 100644 |
280 |
+--- a/src/notesortproxymodel.cpp |
281 |
++++ b/src/notesortproxymodel.cpp |
282 |
+@@ -8,7 +8,12 @@ |
283 |
+ |
284 |
+ #include "notesortproxymodel.h" |
285 |
+ |
286 |
++#include <akonadi_version.h> |
287 |
++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) |
288 |
++#include <Akonadi/EntityTreeModel> |
289 |
++#else |
290 |
+ #include <AkonadiCore/EntityTreeModel> |
291 |
++#endif |
292 |
+ |
293 |
+ #include "noteshared/notepinattribute.h" |
294 |
+ |
295 |
+-- |
296 |
+GitLab |
297 |
+ |
298 |
|
299 |
diff --git a/app-text/kjots/files/kjots-5.1.0-implicit-dep.patch b/app-text/kjots/files/kjots-5.1.0-implicit-dep.patch |
300 |
new file mode 100644 |
301 |
index 000000000000..b81bafc1889f |
302 |
--- /dev/null |
303 |
+++ b/app-text/kjots/files/kjots-5.1.0-implicit-dep.patch |
304 |
@@ -0,0 +1,26 @@ |
305 |
+From 8803636bf4e0238d0f23bedebdcb4d1e6283ffb7 Mon Sep 17 00:00:00 2001 |
306 |
+From: Nicolas Fella <nicolas.fella@×××.de> |
307 |
+Date: Mon, 26 Apr 2021 17:09:51 +0200 |
308 |
+Subject: [PATCH] Make dependency on KI18n explicit |
309 |
+ |
310 |
+It already pulled in by KParts, but we better not rely on that |
311 |
+--- |
312 |
+ src/kontact_plugin/CMakeLists.txt | 2 +- |
313 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
314 |
+ |
315 |
+diff --git a/src/kontact_plugin/CMakeLists.txt b/src/kontact_plugin/CMakeLists.txt |
316 |
+index dec4b8b..f1d56ec 100644 |
317 |
+--- a/src/kontact_plugin/CMakeLists.txt |
318 |
++++ b/src/kontact_plugin/CMakeLists.txt |
319 |
+@@ -13,7 +13,7 @@ set(kontact_kjots_PART_SRCS |
320 |
+ ) |
321 |
+ |
322 |
+ add_library(kontact_kjotsplugin MODULE ${kontact_kjots_PART_SRCS}) |
323 |
+-target_link_libraries(kontact_kjotsplugin KF5::KontactInterface) |
324 |
++target_link_libraries(kontact_kjotsplugin KF5::I18n KF5::KontactInterface) |
325 |
+ kcoreaddons_desktop_to_json(kontact_kjotsplugin kjotsplugin.desktop) |
326 |
+ |
327 |
+ install(TARGETS kontact_kjotsplugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/kontact5) |
328 |
+-- |
329 |
+GitLab |
330 |
+ |
331 |
|
332 |
diff --git a/app-text/kjots/files/kjots-5.1.0-missing-lib.patch b/app-text/kjots/files/kjots-5.1.0-missing-lib.patch |
333 |
new file mode 100644 |
334 |
index 000000000000..28418717d3be |
335 |
--- /dev/null |
336 |
+++ b/app-text/kjots/files/kjots-5.1.0-missing-lib.patch |
337 |
@@ -0,0 +1,25 @@ |
338 |
+From 3d3cee8caeec813802a1af54c14805203fb1ddf6 Mon Sep 17 00:00:00 2001 |
339 |
+From: "Friedrich W. H. Kossebau" <kossebau@×××.org> |
340 |
+Date: Tue, 7 Sep 2021 23:21:34 +0200 |
341 |
+Subject: [PATCH] noteshared: add missing library to link list |
342 |
+ |
343 |
+GIT_SILENT |
344 |
+--- |
345 |
+ src/noteshared/CMakeLists.txt | 1 + |
346 |
+ 1 file changed, 1 insertion(+) |
347 |
+ |
348 |
+diff --git a/src/noteshared/CMakeLists.txt b/src/noteshared/CMakeLists.txt |
349 |
+index 5de60ab..6aa0b0a 100644 |
350 |
+--- a/src/noteshared/CMakeLists.txt |
351 |
++++ b/src/noteshared/CMakeLists.txt |
352 |
+@@ -16,6 +16,7 @@ target_link_libraries(noteshared |
353 |
+ Qt5::Core |
354 |
+ Qt5::Widgets |
355 |
+ KF5::I18n |
356 |
++ KF5::AkonadiWidgets |
357 |
+ KF5::AkonadiCore |
358 |
+ KF5::AkonadiNotes |
359 |
+ KF5::XmlGui |
360 |
+-- |
361 |
+GitLab |
362 |
+ |
363 |
|
364 |
diff --git a/app-text/kjots/kjots-5.1.0-r1.ebuild b/app-text/kjots/kjots-5.1.0-r1.ebuild |
365 |
new file mode 100644 |
366 |
index 000000000000..dd1910ad60f6 |
367 |
--- /dev/null |
368 |
+++ b/app-text/kjots/kjots-5.1.0-r1.ebuild |
369 |
@@ -0,0 +1,53 @@ |
370 |
+# Copyright 1999-2022 Gentoo Authors |
371 |
+# Distributed under the terms of the GNU General Public License v2 |
372 |
+ |
373 |
+EAPI=8 |
374 |
+ |
375 |
+KDE_ORG_CATEGORY="pim" |
376 |
+KFMIN=5.82.0 |
377 |
+QTMIN=5.15.2 |
378 |
+inherit ecm kde.org |
379 |
+ |
380 |
+DESCRIPTION="Note taking utility by KDE" |
381 |
+HOMEPAGE="https://userbase.kde.org/KJots https://community.kde.org/PIM/KJots" |
382 |
+ |
383 |
+if [[ ${KDE_BUILD_TYPE} != live ]]; then |
384 |
+ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" |
385 |
+ KEYWORDS="~amd64 ~x86" |
386 |
+fi |
387 |
+ |
388 |
+LICENSE="GPL-2" |
389 |
+SLOT="5" |
390 |
+IUSE="" |
391 |
+ |
392 |
+DEPEND=" |
393 |
+ dev-libs/grantlee:5 |
394 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
395 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
396 |
+ >=dev-qt/qtprintsupport-${QTMIN}:5 |
397 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
398 |
+ >=kde-apps/akonadi-20.12.2:5 |
399 |
+ >=kde-apps/akonadi-notes-20.12.2:5 |
400 |
+ >=kde-apps/kmime-20.12.2:5 |
401 |
+ >=kde-apps/kontactinterface-20.12.2:5 |
402 |
+ >=kde-apps/kpimtextedit-20.12.2:5 |
403 |
+ >=kde-frameworks/kbookmarks-${KFMIN}:5 |
404 |
+ >=kde-frameworks/kcmutils-${KFMIN}:5 |
405 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
406 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
407 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
408 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
409 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
410 |
+ >=kde-frameworks/kitemmodels-${KFMIN}:5 |
411 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
412 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
413 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
414 |
+" |
415 |
+RDEPEND="${DEPEND}" |
416 |
+ |
417 |
+PATCHES=( |
418 |
+ "${FILESDIR}/${P}-unused-dep.patch" |
419 |
+ "${FILESDIR}/${P}-implicit-dep.patch" |
420 |
+ "${FILESDIR}/${P}-missing-lib.patch" |
421 |
+ "${FILESDIR}/${P}-akonadi-21.12.0.patch" # bug 830580 |
422 |
+) |