1 |
commit: 8637d093d5b79d97f5ee4d27a83029845beb88d9 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 1 16:17:16 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 1 19:40:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8637d093 |
7 |
|
8 |
app-office/calligraplan: New package |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
app-office/calligraplan/Manifest | 1 + |
14 |
app-office/calligraplan/calligraplan-3.1.0.ebuild | 105 +++++++++++++++++ |
15 |
.../files/calligraplan-3.1.0-qca.patch | 127 +++++++++++++++++++++ |
16 |
.../files/calligraplan-3.1.0-qt-5.11.patch | 124 ++++++++++++++++++++ |
17 |
app-office/calligraplan/metadata.xml | 18 +++ |
18 |
5 files changed, 375 insertions(+) |
19 |
|
20 |
diff --git a/app-office/calligraplan/Manifest b/app-office/calligraplan/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..7ff08e55465 |
23 |
--- /dev/null |
24 |
+++ b/app-office/calligraplan/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST calligraplan-3.1.0.tar.xz 3617600 BLAKE2B af45aa28529c18c9fa9fae2b7c03ea1b795d3fec3fd44dbcc4ed056a4b1b843b10cb8a9ad6dab319775a7d7032520721a4719605859dd60100a19eafdcb621ed SHA512 a8ccc6ee2f0381b811926a296122464bdb79aad7c75ff0f7a554e4596165ff7fd7ef62c9af9232ea36542d6b538446c8920fe77cbbe7ffacdf6e6b99a1b68156 |
27 |
|
28 |
diff --git a/app-office/calligraplan/calligraplan-3.1.0.ebuild b/app-office/calligraplan/calligraplan-3.1.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..1ee634ee176 |
31 |
--- /dev/null |
32 |
+++ b/app-office/calligraplan/calligraplan-3.1.0.ebuild |
33 |
@@ -0,0 +1,105 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+KDE_HANDBOOK="forceoptional" |
40 |
+KDE_TEST="forceoptional" |
41 |
+inherit kde5 |
42 |
+ |
43 |
+DESCRIPTION="Project management application" |
44 |
+HOMEPAGE="https://www.calligra.org/" |
45 |
+SRC_URI="mirror://kde/stable/${PN/plan/}/${PV}/${P}.tar.xz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="activities +holidays kwallet pim X" |
50 |
+ |
51 |
+# FIXME: Disabled by upstream for good reason |
52 |
+# Crashes plan (https://bugs.kde.org/show_bug.cgi?id=311940) |
53 |
+# $(add_kdeapps_dep akonadi) |
54 |
+# $(add_kdeapps_dep akonadi-contacts) |
55 |
+# Currently upstream-disabled in plan |
56 |
+# =dev-libs/kproperty-3.0*:5 |
57 |
+# =dev-libs/kreport-3.0*:5 |
58 |
+DEPEND=" |
59 |
+ $(add_frameworks_dep karchive) |
60 |
+ $(add_frameworks_dep kconfig) |
61 |
+ $(add_frameworks_dep kconfigwidgets) |
62 |
+ $(add_frameworks_dep kcoreaddons) |
63 |
+ $(add_frameworks_dep kdbusaddons) |
64 |
+ $(add_frameworks_dep kglobalaccel) |
65 |
+ $(add_frameworks_dep kguiaddons) |
66 |
+ $(add_frameworks_dep khtml) |
67 |
+ $(add_frameworks_dep ki18n) |
68 |
+ $(add_frameworks_dep kiconthemes) |
69 |
+ $(add_frameworks_dep kio) |
70 |
+ $(add_frameworks_dep kitemviews) |
71 |
+ $(add_frameworks_dep kjobwidgets) |
72 |
+ $(add_frameworks_dep knotifications) |
73 |
+ $(add_frameworks_dep kparts) |
74 |
+ $(add_frameworks_dep kservice) |
75 |
+ $(add_frameworks_dep ktextwidgets) |
76 |
+ $(add_frameworks_dep kwidgetsaddons) |
77 |
+ $(add_frameworks_dep kwindowsystem) |
78 |
+ $(add_frameworks_dep kxmlgui) |
79 |
+ $(add_qt_dep designer) |
80 |
+ $(add_qt_dep qtdbus) |
81 |
+ $(add_qt_dep qtgui) |
82 |
+ $(add_qt_dep qtprintsupport) |
83 |
+ $(add_qt_dep qtwidgets) |
84 |
+ $(add_qt_dep qtxml) |
85 |
+ dev-lang/perl |
86 |
+ dev-libs/kdiagram:5 |
87 |
+ sys-libs/zlib |
88 |
+ activities? ( $(add_frameworks_dep kactivities) ) |
89 |
+ holidays? ( $(add_frameworks_dep kholidays) ) |
90 |
+ kwallet? ( |
91 |
+ $(add_frameworks_dep kwallet) |
92 |
+ app-crypt/qca:2[qt5(+)] |
93 |
+ ) |
94 |
+ pim? ( |
95 |
+ $(add_kdeapps_dep kcalcore) |
96 |
+ $(add_kdeapps_dep kcontacts) |
97 |
+ ) |
98 |
+ X? ( |
99 |
+ $(add_qt_dep qtx11extras) |
100 |
+ x11-libs/libX11 |
101 |
+ ) |
102 |
+" |
103 |
+RDEPEND="${DEPEND} |
104 |
+ !app-office/calligra[calligra_features_plan(-)] |
105 |
+ !app-office/calligra-l10n:4 |
106 |
+ $(add_qt_dep qtsvg) |
107 |
+" |
108 |
+ |
109 |
+RESTRICT+=" test" |
110 |
+ |
111 |
+PATCHES=( |
112 |
+ "${FILESDIR}"/${P}-qt-5.11.patch |
113 |
+ "${FILESDIR}"/${P}-qca.patch |
114 |
+) |
115 |
+ |
116 |
+src_prepare() { |
117 |
+ kde5_src_prepare |
118 |
+ # Unconditionally disable deprecated deps |
119 |
+ punt_bogus_dep Qt5 OpenGL |
120 |
+ # FIXME: disable bogus deps |
121 |
+ punt_bogus_dep KF5 KCMUtils |
122 |
+ punt_bogus_dep Qt5 Network |
123 |
+ punt_bogus_dep Qt5 Svg |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ local mycmakeargs=( |
128 |
+ $(cmake-utils_use_find_package activities KF5Activities) |
129 |
+ $(cmake-utils_use_find_package holidays KF5Holidays) |
130 |
+ $(cmake-utils_use_find_package pim KF5CalendarCore) |
131 |
+ $(cmake-utils_use_find_package pim KF5Contacts) |
132 |
+ $(cmake-utils_use_find_package kwallet Qca-qt5) |
133 |
+ $(cmake-utils_use_find_package kwallet KF5Wallet) |
134 |
+ ) |
135 |
+ # Qt5DBus can't be disabled because of KF5DBusAddons dependency |
136 |
+ |
137 |
+ kde5_src_configure |
138 |
+} |
139 |
|
140 |
diff --git a/app-office/calligraplan/files/calligraplan-3.1.0-qca.patch b/app-office/calligraplan/files/calligraplan-3.1.0-qca.patch |
141 |
new file mode 100644 |
142 |
index 00000000000..213cc9935be |
143 |
--- /dev/null |
144 |
+++ b/app-office/calligraplan/files/calligraplan-3.1.0-qca.patch |
145 |
@@ -0,0 +1,127 @@ |
146 |
+From 9c5eb86128da46899e719209a92a65df012c6d8e Mon Sep 17 00:00:00 2001 |
147 |
+From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
148 |
+Date: Tue, 1 Jan 2019 19:19:19 +0100 |
149 |
+Subject: [PATCH] Re-add accidentally removed test for QCA, KF5Wallet is |
150 |
+ optional |
151 |
+ |
152 |
+--- |
153 |
+ CMakeLists.txt | 18 +++++++++++++++++- |
154 |
+ src/libs/store/CMakeLists.txt | 15 +++++++-------- |
155 |
+ 2 files changed, 24 insertions(+), 9 deletions(-) |
156 |
+ |
157 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
158 |
+index eed9d3c..3cb4b63 100644 |
159 |
+--- a/CMakeLists.txt |
160 |
++++ b/CMakeLists.txt |
161 |
+@@ -128,7 +128,6 @@ find_package(KF5 ${REQUIRED_KF5_VERSION} REQUIRED |
162 |
+ Parts |
163 |
+ # Sonnet |
164 |
+ TextWidgets |
165 |
+- Wallet |
166 |
+ WidgetsAddons |
167 |
+ WindowSystem |
168 |
+ XmlGui |
169 |
+@@ -260,6 +259,23 @@ set_package_properties(KChart PROPERTIES |
170 |
+ TYPE REQUIRED |
171 |
+ ) |
172 |
+ |
173 |
++## |
174 |
++## Test for QCA2 |
175 |
++## |
176 |
++macro_optional_find_package(Qca-qt5 2.1.0 QUIET) |
177 |
++set_package_properties(Qca-qt5 PROPERTIES |
178 |
++ DESCRIPTION "Qt Cryptographic Architecture" |
179 |
++ URL "https:/download.kde.org/stable/qca-qt5" |
180 |
++ PURPOSE "Required for encrypted OpenDocument files and encrypted xls files support" |
181 |
++ TYPE OPTIONAL |
182 |
++) |
183 |
++ |
184 |
++find_package(KF5Wallet ${REQUIRED_KF5_VERSION}) |
185 |
++ |
186 |
++if(Qca-qt5_FOUND AND KF5Wallet_FOUND) |
187 |
++ add_definitions( -DQCA2 ) |
188 |
++endif() |
189 |
++ |
190 |
+ find_package(Perl REQUIRED) |
191 |
+ find_package(ZLIB REQUIRED) |
192 |
+ |
193 |
+diff --git a/src/libs/store/CMakeLists.txt b/src/libs/store/CMakeLists.txt |
194 |
+index 2c96fa7..f998264 100644 |
195 |
+--- a/src/libs/store/CMakeLists.txt |
196 |
++++ b/src/libs/store/CMakeLists.txt |
197 |
+@@ -4,14 +4,8 @@ endif() |
198 |
+ |
199 |
+ ########### libkostore ############### |
200 |
+ |
201 |
+-if( Qca-qt5_FOUND ) |
202 |
+- add_definitions( -DQCA2 ) |
203 |
+-endif() |
204 |
+- |
205 |
+ set(kostore_LIB_SRCS |
206 |
+ KoDirectoryStore.cpp |
207 |
+- KoEncryptedStore.cpp |
208 |
+- KoEncryptionChecker.cpp |
209 |
+ KoLZF.cpp |
210 |
+ KoStore.cpp |
211 |
+ KoStoreDevice.cpp |
212 |
+@@ -23,6 +17,12 @@ set(kostore_LIB_SRCS |
213 |
+ StoreDebug.cpp |
214 |
+ KoNetAccess.cpp # temporary while porting |
215 |
+ ) |
216 |
++if( Qca-qt5_FOUND ) |
217 |
++ set(kostore_LIB_SRCS ${kostore_LIB_SRCS} |
218 |
++ KoEncryptedStore.cpp |
219 |
++ KoEncryptionChecker.cpp |
220 |
++ ) |
221 |
++endif() |
222 |
+ |
223 |
+ add_library(planstore SHARED ${kostore_LIB_SRCS}) |
224 |
+ generate_export_header(planstore BASE_NAME kostore) |
225 |
+@@ -35,12 +35,11 @@ target_link_libraries(planstore |
226 |
+ PRIVATE |
227 |
+ Qt5::Gui |
228 |
+ KF5::Archive |
229 |
+- KF5::Wallet |
230 |
+ KF5::KIOWidgets |
231 |
+ KF5::I18n |
232 |
+ ) |
233 |
+ if( Qca-qt5_FOUND ) |
234 |
+- target_link_libraries(planstore PRIVATE qca-qt5) |
235 |
++ target_link_libraries(planstore PRIVATE qca-qt5 KF5::Wallet) |
236 |
+ endif() |
237 |
+ |
238 |
+ set_target_properties(planstore PROPERTIES |
239 |
+diff --git a/src/libs/widgets/KoDocumentInfoDlg.cpp b/src/libs/widgets/KoDocumentInfoDlg.cpp |
240 |
+index 1615a61..55e2c32 100644 |
241 |
+--- a/src/libs/widgets/KoDocumentInfoDlg.cpp |
242 |
++++ b/src/libs/widgets/KoDocumentInfoDlg.cpp |
243 |
+@@ -26,7 +26,9 @@ |
244 |
+ #include "KoDocumentInfo.h" |
245 |
+ #include "KoDocumentBase.h" |
246 |
+ #include "KoGlobal.h" |
247 |
++#ifdef QCA2 |
248 |
+ #include <KoEncryptionChecker.h> |
249 |
++#endif |
250 |
+ #include "KoPageWidgetItem.h" |
251 |
+ //#include <KoDocumentRdfBase.h> |
252 |
+ #include <KoIcon.h> |
253 |
+@@ -105,12 +107,16 @@ KoDocumentInfoDlg::KoDocumentInfoDlg(QWidget* parent, KoDocumentInfo* docInfo) |
254 |
+ d->aboutUi = new Ui::KoDocumentInfoAboutWidget(); |
255 |
+ QWidget *infodlg = new QWidget(); |
256 |
+ d->aboutUi->setupUi(infodlg); |
257 |
++#ifdef QCA2 |
258 |
+ if (!KoEncryptionChecker::isEncryptionSupported()) { |
259 |
++#endif |
260 |
+ d->aboutUi->lblEncryptedDesc->setVisible(false); |
261 |
+ d->aboutUi->lblEncrypted->setVisible(false); |
262 |
+ d->aboutUi->pbEncrypt->setVisible(false); |
263 |
+ d->aboutUi->lblEncryptedPic->setVisible(false); |
264 |
++#ifdef QCA2 |
265 |
+ } |
266 |
++#endif |
267 |
+ d->aboutUi->cbLanguage->addItems(KoGlobal::listOfLanguages()); |
268 |
+ d->aboutUi->cbLanguage->setCurrentIndex(-1); |
269 |
+ |
270 |
+-- |
271 |
+2.20.1 |
272 |
+ |
273 |
|
274 |
diff --git a/app-office/calligraplan/files/calligraplan-3.1.0-qt-5.11.patch b/app-office/calligraplan/files/calligraplan-3.1.0-qt-5.11.patch |
275 |
new file mode 100644 |
276 |
index 00000000000..584d14e447e |
277 |
--- /dev/null |
278 |
+++ b/app-office/calligraplan/files/calligraplan-3.1.0-qt-5.11.patch |
279 |
@@ -0,0 +1,124 @@ |
280 |
+From f53805bdc108b608e40f217e6a78e7e4df4284f2 Mon Sep 17 00:00:00 2001 |
281 |
+From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
282 |
+Date: Sun, 18 Mar 2018 11:56:57 +0100 |
283 |
+Subject: [PATCH] Fix build with Qt 5.11 (missing headers) |
284 |
+ |
285 |
+Reviewers: #calligra:_3.0 |
286 |
+ |
287 |
+Tags: #calligra:_3.0 |
288 |
+ |
289 |
+Differential Revision: https://phabricator.kde.org/D11454 |
290 |
+--- |
291 |
+ src/kptview.h | 1 + |
292 |
+ src/kptviewlist.cpp | 1 + |
293 |
+ src/libs/ui/kptaccountseditor.cpp | 1 + |
294 |
+ src/libs/ui/kptdocumentspanel.h | 1 + |
295 |
+ src/libs/ui/kptitemviewsettup.cpp | 2 +- |
296 |
+ src/libs/ui/kpttaskeditor.cpp | 1 + |
297 |
+ src/libs/ui/reportsgenerator/ReportsGeneratorView.cpp | 1 + |
298 |
+ src/libs/widgets/KoPageLayoutWidget.cpp | 2 ++ |
299 |
+ 15 files changed, 18 insertions(+), 1 deletion(-) |
300 |
+ |
301 |
+diff --git a/src/kptview.h b/src/kptview.h |
302 |
+index 44d11935e71..a98e55342db 100644 |
303 |
+--- a/src/kptview.h |
304 |
++++ b/src/kptview.h |
305 |
+@@ -28,6 +28,7 @@ |
306 |
+ #include "kptcontext.h" |
307 |
+ #include "kptviewbase.h" |
308 |
+ |
309 |
++#include <QActionGroup> |
310 |
+ #include <QDockWidget> |
311 |
+ #include <QMap> |
312 |
+ |
313 |
+diff --git a/src/kptviewlist.cpp b/src/kptviewlist.cpp |
314 |
+index f34e702e055..0e6db7b2ffe 100644 |
315 |
+--- a/src/kptviewlist.cpp |
316 |
++++ b/src/kptviewlist.cpp |
317 |
+@@ -25,6 +25,7 @@ |
318 |
+ #include <QStyle> |
319 |
+ #include <QBrush> |
320 |
+ #include <QContextMenuEvent> |
321 |
++#include <QHeaderView> |
322 |
+ #include <QMenu> |
323 |
+ |
324 |
+ #include <kmessagebox.h> |
325 |
+diff --git a/src/libs/ui/kptaccountseditor.cpp b/src/libs/ui/kptaccountseditor.cpp |
326 |
+index 7991fafd779..54e3a87c94f 100644 |
327 |
+--- a/src/libs/ui/kptaccountseditor.cpp |
328 |
++++ b/src/libs/ui/kptaccountseditor.cpp |
329 |
+@@ -40,6 +40,7 @@ |
330 |
+ #include <QContextMenuEvent> |
331 |
+ #include <QMenu> |
332 |
+ #include <QAction> |
333 |
++#include <QHeaderView> |
334 |
+ |
335 |
+ #include <KLocalizedString> |
336 |
+ #include <kactioncollection.h> |
337 |
+diff --git a/src/libs/ui/kptdocumentspanel.h b/src/libs/ui/kptdocumentspanel.h |
338 |
+index 00ea3af80b2..491cb1ebb86 100644 |
339 |
+--- a/src/libs/ui/kptdocumentspanel.h |
340 |
++++ b/src/libs/ui/kptdocumentspanel.h |
341 |
+@@ -26,6 +26,7 @@ |
342 |
+ |
343 |
+ #include "kptdocuments.h" |
344 |
+ |
345 |
++#include <QModelIndexList> |
346 |
+ #include <QWidget> |
347 |
+ #include <kundo2qstack.h> |
348 |
+ |
349 |
+diff --git a/src/libs/ui/kptitemviewsettup.cpp b/src/libs/ui/kptitemviewsettup.cpp |
350 |
+index d1c3b1fc157..7c97a070b9a 100644 |
351 |
+--- a/src/libs/ui/kptitemviewsettup.cpp |
352 |
++++ b/src/libs/ui/kptitemviewsettup.cpp |
353 |
+@@ -25,9 +25,9 @@ |
354 |
+ |
355 |
+ #include "KoPageLayoutWidget.h" |
356 |
+ |
357 |
++#include <QHeaderView> |
358 |
+ #include <QPushButton> |
359 |
+ |
360 |
+- |
361 |
+ namespace KPlato |
362 |
+ { |
363 |
+ |
364 |
+diff --git a/src/libs/ui/kpttaskeditor.cpp b/src/libs/ui/kpttaskeditor.cpp |
365 |
+index 21546118d33..91db5acbb18 100644 |
366 |
+--- a/src/libs/ui/kpttaskeditor.cpp |
367 |
++++ b/src/libs/ui/kpttaskeditor.cpp |
368 |
+@@ -45,6 +45,7 @@ |
369 |
+ #include <QVBoxLayout> |
370 |
+ #include <QDragMoveEvent> |
371 |
+ #include <QAction> |
372 |
++#include <QHeaderView> |
373 |
+ #include <QMenu> |
374 |
+ |
375 |
+ #include <kactionmenu.h> |
376 |
+diff --git a/src/libs/ui/reportsgenerator/ReportsGeneratorView.cpp b/src/libs/ui/reportsgenerator/ReportsGeneratorView.cpp |
377 |
+index 344ebc2b599..9146f06ab8c 100644 |
378 |
+--- a/src/libs/ui/reportsgenerator/ReportsGeneratorView.cpp |
379 |
++++ b/src/libs/ui/reportsgenerator/ReportsGeneratorView.cpp |
380 |
+@@ -31,6 +31,7 @@ |
381 |
+ #include <KFile> |
382 |
+ |
383 |
+ #include <QAction> |
384 |
++#include <QHeaderView> |
385 |
+ #include <QTreeView> |
386 |
+ #include <QStandardItemModel> |
387 |
+ #include <QModelIndex> |
388 |
+diff --git a/src/libs/widgets/KoPageLayoutWidget.cpp b/src/libs/widgets/KoPageLayoutWidget.cpp |
389 |
+index c9e17b748a9..b67e9848807 100644 |
390 |
+--- a/src/libs/widgets/KoPageLayoutWidget.cpp |
391 |
++++ b/src/libs/widgets/KoPageLayoutWidget.cpp |
392 |
+@@ -23,6 +23,8 @@ |
393 |
+ |
394 |
+ #include <KoUnit.h> |
395 |
+ |
396 |
++#include <QButtonGroup> |
397 |
++ |
398 |
+ class Q_DECL_HIDDEN KoPageLayoutWidget::Private |
399 |
+ { |
400 |
+ public: |
401 |
+-- |
402 |
+2.16.2 |
403 |
+ |
404 |
|
405 |
diff --git a/app-office/calligraplan/metadata.xml b/app-office/calligraplan/metadata.xml |
406 |
new file mode 100644 |
407 |
index 00000000000..a7529db60e6 |
408 |
--- /dev/null |
409 |
+++ b/app-office/calligraplan/metadata.xml |
410 |
@@ -0,0 +1,18 @@ |
411 |
+<?xml version="1.0" encoding="UTF-8"?> |
412 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
413 |
+<pkgmetadata> |
414 |
+ <maintainer type="project"> |
415 |
+ <email>kde@g.o</email> |
416 |
+ <name>Gentoo KDE Project</name> |
417 |
+ </maintainer> |
418 |
+ <maintainer type="project"> |
419 |
+ <email>office@g.o</email> |
420 |
+ <name>Gentoo Office project</name> |
421 |
+ </maintainer> |
422 |
+ <use> |
423 |
+ <flag name="activities">Enable kactivities support</flag> |
424 |
+ <flag name="holidays">Enable <pkg>kde-frameworks/kholidays</pkg> integration</flag> |
425 |
+ <flag name="kwallet">Enable access to encrypted OpenDocument files with <pkg>kde-frameworks/kwallet</pkg> storage</flag> |
426 |
+ <flag name="pim">Enable support for KDE PIM resources integration</flag> |
427 |
+ </use> |
428 |
+</pkgmetadata> |