1 |
commit: 8a8382264b06c181b312b99ba422fffa4a93a797 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 21:24:42 2023 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 22:32:25 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a838226 |
7 |
|
8 |
kde-apps/kmail: Backport various fixes to 22.08.3 and 22.12.1 |
9 |
|
10 |
In 22.08.3-r2 and 22.12.3-r2: |
11 |
- Crash on attempting to replay a message with a user template |
12 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=463935 |
13 |
|
14 |
In 22.08.3-r2: |
15 |
- Opening the detailed progress window does nothing |
16 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=460289 |
17 |
- Kontact Crashes Upon Start |
18 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=460747 |
19 |
- ShowUserAgent=true does not show x-mailer |
20 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=448348 |
21 |
- Random text in kmail's message list configuration settings |
22 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=459399 |
23 |
|
24 |
Bug: https://bugs.gentoo.org/891509 |
25 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
26 |
|
27 |
...3-fix-crash-on-replay-msg-w-user-template.patch | 38 +++++++ |
28 |
.../files/kmail-22.08.3-fix-crash-on-startup.patch | 47 ++++++++ |
29 |
...il-22.08.3-fix-open-detailed-progress-bar.patch | 52 +++++++++ |
30 |
...2.08.3-fix-random-text-in-config-settings.patch | 29 +++++ |
31 |
...mail-22.08.3-remove-removed-ShowUserAgent.patch | 41 +++++++ |
32 |
kde-apps/kmail/kmail-22.08.3-r2.ebuild | 123 +++++++++++++++++++++ |
33 |
kde-apps/kmail/kmail-22.12.1-r2.ebuild | 119 ++++++++++++++++++++ |
34 |
7 files changed, 449 insertions(+) |
35 |
|
36 |
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch |
37 |
new file mode 100644 |
38 |
index 000000000000..5692a4916129 |
39 |
--- /dev/null |
40 |
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch |
41 |
@@ -0,0 +1,38 @@ |
42 |
+From 94e28559c96b71721b02393a23cbfeefa93a607b Mon Sep 17 00:00:00 2001 |
43 |
+From: Laurent Montel <montel@×××.org> |
44 |
+Date: Sat, 7 Jan 2023 00:31:18 +0100 |
45 |
+Subject: [PATCH] Fix bug 463935: Crash on attempting to replay a message with |
46 |
+ an user template |
47 |
+ |
48 |
+BUG: 463935 |
49 |
+FIXED-IN: 5.22.2 |
50 |
+--- |
51 |
+ src/kmmainwidget.cpp | 5 ++--- |
52 |
+ 1 file changed, 2 insertions(+), 3 deletions(-) |
53 |
+ |
54 |
+diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp |
55 |
+index b00db6f53..3ab6a18af 100644 |
56 |
+--- a/src/kmmainwidget.cpp |
57 |
++++ b/src/kmmainwidget.cpp |
58 |
+@@ -2096,8 +2096,7 @@ void KMMainWidget::slotCustomReplyAllToMsg(const QString &tmpl) |
59 |
+ qCDebug(KMAIL_LOG) << "Reply to All with template:" << tmpl; |
60 |
+ |
61 |
+ auto command = new KMReplyCommand(this, msg, MessageComposer::ReplyAll, text, false, tmpl); |
62 |
+- command->setReplyAsHtml(messageView()->htmlMail()); |
63 |
+- |
64 |
++ command->setReplyAsHtml(messageView() ? messageView()->htmlMail() : false); |
65 |
+ command->start(); |
66 |
+ } |
67 |
+ |
68 |
+@@ -4745,7 +4744,7 @@ void KMMainWidget::slotRedirectCurrentMessage() |
69 |
+ void KMMainWidget::replyMessageTo(const Akonadi::Item &item, bool replyToAll) |
70 |
+ { |
71 |
+ auto command = new KMReplyCommand(this, item, replyToAll ? MessageComposer::ReplyAll : MessageComposer::ReplyAuthor); |
72 |
+- command->setReplyAsHtml(messageView()->htmlMail()); |
73 |
++ command->setReplyAsHtml(messageView() ? messageView()->htmlMail() : false); |
74 |
+ command->start(); |
75 |
+ } |
76 |
+ |
77 |
+-- |
78 |
+GitLab |
79 |
+ |
80 |
|
81 |
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-startup.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-startup.patch |
82 |
new file mode 100644 |
83 |
index 000000000000..a798f1afe567 |
84 |
--- /dev/null |
85 |
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-startup.patch |
86 |
@@ -0,0 +1,47 @@ |
87 |
+From 9d37b837eca35bd7976709a9d25d3700c70e321e Mon Sep 17 00:00:00 2001 |
88 |
+From: Laurent Montel <montel@×××.org> |
89 |
+Date: Sat, 31 Dec 2022 10:55:34 +0100 |
90 |
+Subject: [PATCH] Fix bug 460747: Kontact Crashes Upon Start |
91 |
+ |
92 |
+BUG: 460747 |
93 |
+FIXED-IN: 5.22.1 |
94 |
+--- |
95 |
+ src/kmmainwidget.cpp | 15 ++++++++------- |
96 |
+ 1 file changed, 8 insertions(+), 7 deletions(-) |
97 |
+ |
98 |
+diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp |
99 |
+index 8d332b36b..8c7013f8b 100644 |
100 |
+--- a/src/kmmainwidget.cpp |
101 |
++++ b/src/kmmainwidget.cpp |
102 |
+@@ -3403,6 +3403,14 @@ void KMMainWidget::setupActions() |
103 |
+ QAction *act = actionCollection()->addAction(KStandardAction::Undo, QStringLiteral("kmail_undo")); |
104 |
+ connect(act, &QAction::triggered, this, &KMMainWidget::slotUndo); |
105 |
+ |
106 |
++ mAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("configure")), i18n("Account &Settings"), this); |
107 |
++ actionCollection()->addAction(QStringLiteral("resource_settings"), mAccountSettings); |
108 |
++ connect(mAccountSettings, &QAction::triggered, this, &KMMainWidget::slotAccountSettings); |
109 |
++ |
110 |
++ mRestartAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Restart Account"), this); |
111 |
++ actionCollection()->addAction(QStringLiteral("resource_restart"), mRestartAccountSettings); |
112 |
++ connect(mRestartAccountSettings, &QAction::triggered, this, &KMMainWidget::slotRestartAccount); |
113 |
++ |
114 |
+ menutimer = new QTimer(this); |
115 |
+ menutimer->setObjectName(QStringLiteral("menutimer")); |
116 |
+ menutimer->setSingleShot(true); |
117 |
+@@ -3535,13 +3543,6 @@ void KMMainWidget::setupActions() |
118 |
+ actionCollection()->addAction(QStringLiteral("remove_duplicate_recursive"), mRemoveDuplicateRecursiveAction); |
119 |
+ connect(mRemoveDuplicateRecursiveAction, &KToggleAction::triggered, this, &KMMainWidget::slotRemoveDuplicateRecursive); |
120 |
+ |
121 |
+- mAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("configure")), i18n("Account &Settings"), this); |
122 |
+- actionCollection()->addAction(QStringLiteral("resource_settings"), mAccountSettings); |
123 |
+- connect(mAccountSettings, &QAction::triggered, this, &KMMainWidget::slotAccountSettings); |
124 |
+- |
125 |
+- mRestartAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Restart Account"), this); |
126 |
+- actionCollection()->addAction(QStringLiteral("resource_restart"), mRestartAccountSettings); |
127 |
+- connect(mRestartAccountSettings, &QAction::triggered, this, &KMMainWidget::slotRestartAccount); |
128 |
+ { |
129 |
+ QList<QAction *> listActions; |
130 |
+ auto act = new QAction(i18n("Previous Selected Folder"), this); // TODO fix me i18n |
131 |
+-- |
132 |
+GitLab |
133 |
+ |
134 |
|
135 |
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-open-detailed-progress-bar.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-open-detailed-progress-bar.patch |
136 |
new file mode 100644 |
137 |
index 000000000000..1ff35b388dc7 |
138 |
--- /dev/null |
139 |
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-open-detailed-progress-bar.patch |
140 |
@@ -0,0 +1,52 @@ |
141 |
+From 437295a534eca2907e749f18d8d895da50d343b9 Mon Sep 17 00:00:00 2001 |
142 |
+From: Laurent Montel <montel@×××.org> |
143 |
+Date: Sat, 10 Dec 2022 19:55:33 +0100 |
144 |
+Subject: [PATCH] Fix bug 460289: Opening the detailed progress window does |
145 |
+ nothing |
146 |
+ |
147 |
+BUG: 460289 |
148 |
+FIXED-IN: 5.22.1 |
149 |
+--- |
150 |
+ src/kmmainwin.cpp | 5 ++++- |
151 |
+ src/kmmainwin.h | 2 +- |
152 |
+ 2 files changed, 5 insertions(+), 2 deletions(-) |
153 |
+ |
154 |
+diff --git a/src/kmmainwin.cpp b/src/kmmainwin.cpp |
155 |
+index 5900bf309..9952667fe 100644 |
156 |
+--- a/src/kmmainwin.cpp |
157 |
++++ b/src/kmmainwin.cpp |
158 |
+@@ -36,7 +36,6 @@ using namespace std::chrono_literals; |
159 |
+ |
160 |
+ KMMainWin::KMMainWin(QWidget *) |
161 |
+ : KXmlGuiWindow(nullptr) |
162 |
+- , mProgressBar(new KPIM::ProgressStatusBarWidget(statusBar(), this)) |
163 |
+ , mMessageLabel(new QLabel(i18n("Starting..."))) |
164 |
+ |
165 |
+ { |
166 |
+@@ -51,6 +50,10 @@ KMMainWin::KMMainWin(QWidget *) |
167 |
+ resize(700, 500); // The default size |
168 |
+ |
169 |
+ mKMMainWidget = new KMMainWidget(this, this, actionCollection()); |
170 |
++ |
171 |
++ // Don't initialize in constructor. We need this statusbar created |
172 |
++ // Bug 460289 |
173 |
++ mProgressBar = new KPIM::ProgressStatusBarWidget(statusBar(), this); |
174 |
+ connect(mKMMainWidget, &KMMainWidget::recreateGui, this, &KMMainWin::slotUpdateGui); |
175 |
+ setCentralWidget(mKMMainWidget); |
176 |
+ setupStatusBar(); |
177 |
+diff --git a/src/kmmainwin.h b/src/kmmainwin.h |
178 |
+index 314f14d47..377f6818b 100644 |
179 |
+--- a/src/kmmainwin.h |
180 |
++++ b/src/kmmainwin.h |
181 |
+@@ -57,7 +57,7 @@ private: |
182 |
+ void updateHamburgerMenu(); |
183 |
+ void slotShortcutSaved(); |
184 |
+ void slotFullScreen(bool t); |
185 |
+- KPIM::ProgressStatusBarWidget *const mProgressBar; |
186 |
++ KPIM::ProgressStatusBarWidget *mProgressBar = nullptr; |
187 |
+ KMMainWidget *mKMMainWidget = nullptr; |
188 |
+ KToggleAction *mShowMenuBarAction = nullptr; |
189 |
+ QLabel *const mMessageLabel; |
190 |
+-- |
191 |
+GitLab |
192 |
+ |
193 |
|
194 |
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-random-text-in-config-settings.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-random-text-in-config-settings.patch |
195 |
new file mode 100644 |
196 |
index 000000000000..282fb6109acc |
197 |
--- /dev/null |
198 |
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-random-text-in-config-settings.patch |
199 |
@@ -0,0 +1,29 @@ |
200 |
+From 6618f8f80ccadff908d11db7506b3af8d15ad032 Mon Sep 17 00:00:00 2001 |
201 |
+From: Laurent Montel <montel@×××.org> |
202 |
+Date: Fri, 16 Dec 2022 06:59:17 +0100 |
203 |
+Subject: [PATCH] BUG: 459399 Fix Random text in kmail's message list |
204 |
+ configuration settings |
205 |
+ |
206 |
+Apply patch from Yaroslav Sidlovsky (thanks) |
207 |
+BUG: 459399 |
208 |
+FIXED-IN: 5.22.1 |
209 |
+--- |
210 |
+ src/configuredialog/configureappearancepage.cpp | 2 +- |
211 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
212 |
+ |
213 |
+diff --git a/src/configuredialog/configureappearancepage.cpp b/src/configuredialog/configureappearancepage.cpp |
214 |
+index 085179f05..0909db227 100644 |
215 |
+--- a/src/configuredialog/configureappearancepage.cpp |
216 |
++++ b/src/configuredialog/configureappearancepage.cpp |
217 |
+@@ -622,7 +622,7 @@ AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent) |
218 |
+ .subs(DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay)) |
219 |
+ .toString(); // i18n(label, DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay)); |
220 |
+ } else { |
221 |
+- buttonLabel = i18n(label); |
222 |
++ buttonLabel = KLocalizedString(dateDisplayConfig[i].displayName).toString(); |
223 |
+ } |
224 |
+ if (dateDisplayConfig[i].dateDisplay == DateFormatter::Custom) { |
225 |
+ auto hbox = new QWidget(this); |
226 |
+-- |
227 |
+GitLab |
228 |
+ |
229 |
|
230 |
diff --git a/kde-apps/kmail/files/kmail-22.08.3-remove-removed-ShowUserAgent.patch b/kde-apps/kmail/files/kmail-22.08.3-remove-removed-ShowUserAgent.patch |
231 |
new file mode 100644 |
232 |
index 000000000000..a6484b11ae50 |
233 |
--- /dev/null |
234 |
+++ b/kde-apps/kmail/files/kmail-22.08.3-remove-removed-ShowUserAgent.patch |
235 |
@@ -0,0 +1,41 @@ |
236 |
+From fc0b487d3f3ac9c9ca0650aa635795b5478de85b Mon Sep 17 00:00:00 2001 |
237 |
+From: Laurent Montel <montel@×××.org> |
238 |
+Date: Fri, 16 Dec 2022 07:28:28 +0100 |
239 |
+Subject: [PATCH] Remove info about removed feature (ShowUserAgent) |
240 |
+ |
241 |
+CCBUG: 448348 |
242 |
+--- |
243 |
+ doc/kmail2/configure.docbook | 17 ----------------- |
244 |
+ 1 file changed, 17 deletions(-) |
245 |
+ |
246 |
+diff --git a/doc/kmail2/configure.docbook b/doc/kmail2/configure.docbook |
247 |
+index 4916acd8b..bb2648370 100644 |
248 |
+--- a/doc/kmail2/configure.docbook |
249 |
++++ b/doc/kmail2/configure.docbook |
250 |
+@@ -4167,23 +4167,6 @@ behavior, add to the [OutOfOffice] section:</para> |
251 |
+ </itemizedlist> |
252 |
+ </listitem> |
253 |
+ </varlistentry> |
254 |
+-<varlistentry> |
255 |
+-<term><guilabel>ShowUserAgent</guilabel></term> |
256 |
+-<listitem> |
257 |
+-<para> |
258 |
+-Starting in version 1.9, &kmail; can show the User-Agent or X-Mailer value |
259 |
+-from the message header when using Fancy Headers (see <menuchoice><guimenu>View</guimenu> |
260 |
+-<guisubmenu>Headers</guisubmenu></menuchoice> menu). |
261 |
+-To enable this feature, add to the <quote>[Reader]</quote> section:</para> |
262 |
+-<itemizedlist> |
263 |
+-<listitem><para>Configuration file:</para> |
264 |
+-<programlisting>ShowUserAgent=true</programlisting></listitem> |
265 |
+-<listitem><para><command>kwriteconfig</command></para> |
266 |
+-<para><prompt>%</prompt> <userinput><command>kwriteconfig</command> <option>--file <replaceable>/path/to/kmail2rc</replaceable> --group Reader --key ShowUserAgent true</option></userinput> |
267 |
+-</para></listitem> |
268 |
+-</itemizedlist> |
269 |
+-</listitem> |
270 |
+-</varlistentry> |
271 |
+ </variablelist> |
272 |
+ </sect1> |
273 |
+ |
274 |
+-- |
275 |
+GitLab |
276 |
+ |
277 |
|
278 |
diff --git a/kde-apps/kmail/kmail-22.08.3-r2.ebuild b/kde-apps/kmail/kmail-22.08.3-r2.ebuild |
279 |
new file mode 100644 |
280 |
index 000000000000..1bbe4c685f7c |
281 |
--- /dev/null |
282 |
+++ b/kde-apps/kmail/kmail-22.08.3-r2.ebuild |
283 |
@@ -0,0 +1,123 @@ |
284 |
+# Copyright 1999-2023 Gentoo Authors |
285 |
+# Distributed under the terms of the GNU General Public License v2 |
286 |
+ |
287 |
+EAPI=8 |
288 |
+ |
289 |
+ECM_HANDBOOK="optional" |
290 |
+ECM_TEST="forceoptional" |
291 |
+PVCUT=$(ver_cut 1-3) |
292 |
+KFMIN=5.96.0 |
293 |
+QTMIN=5.15.5 |
294 |
+VIRTUALX_REQUIRED="test" |
295 |
+inherit ecm gear.kde.org optfeature |
296 |
+ |
297 |
+DESCRIPTION="Email client, supporting POP3 and IMAP mailboxes" |
298 |
+HOMEPAGE="https://apps.kde.org/kmail2/ |
299 |
+https://kontact.kde.org/components/kmail/" |
300 |
+ |
301 |
+LICENSE="GPL-2+ handbook? ( FDL-1.2+ )" |
302 |
+SLOT="5" |
303 |
+KEYWORDS="amd64 arm64 ~ppc64 x86" |
304 |
+IUSE="pch speech telemetry" |
305 |
+ |
306 |
+RESTRICT="test" # bug 616878 |
307 |
+ |
308 |
+# kde-frameworks/kwindowsystem[X]: Unconditional use of KX11Extras |
309 |
+COMMON_DEPEND=" |
310 |
+ >=app-crypt/gpgme-1.16.0:=[cxx,qt5] |
311 |
+ >=dev-qt/qtcore-${QTMIN}:5 |
312 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
313 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
314 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
315 |
+ >=dev-qt/qtwebengine-${QTMIN}:5[widgets] |
316 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
317 |
+ >=kde-apps/akonadi-${PVCUT}:5 |
318 |
+ >=kde-apps/akonadi-contacts-${PVCUT}:5 |
319 |
+ >=kde-apps/akonadi-mime-${PVCUT}:5 |
320 |
+ >=kde-apps/akonadi-search-${PVCUT}:5 |
321 |
+ >=kde-apps/kidentitymanagement-${PVCUT}:5 |
322 |
+ >=kde-apps/kmailtransport-${PVCUT}:5 |
323 |
+ >=kde-apps/kmime-${PVCUT}:5 |
324 |
+ >=kde-apps/kontactinterface-${PVCUT}:5 |
325 |
+ >=kde-apps/kpimtextedit-${PVCUT}:5[speech=] |
326 |
+ >=kde-apps/libgravatar-${PVCUT}:5 |
327 |
+ >=kde-apps/libkdepim-${PVCUT}:5 |
328 |
+ >=kde-apps/libkleo-${PVCUT}:5 |
329 |
+ >=kde-apps/libksieve-${PVCUT}:5 |
330 |
+ >=kde-apps/libktnef-${PVCUT}:5 |
331 |
+ >=kde-apps/mailcommon-${PVCUT}:5 |
332 |
+ >=kde-apps/messagelib-${PVCUT}:5 |
333 |
+ >=kde-apps/pimcommon-${PVCUT}:5 |
334 |
+ >=kde-frameworks/kbookmarks-${KFMIN}:5 |
335 |
+ >=kde-frameworks/kcalendarcore-${KFMIN}:5 |
336 |
+ >=kde-frameworks/kcmutils-${KFMIN}:5 |
337 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
338 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
339 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
340 |
+ >=kde-frameworks/kcontacts-${KFMIN}:5 |
341 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
342 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
343 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
344 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
345 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
346 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
347 |
+ >=kde-frameworks/kitemviews-${KFMIN}:5 |
348 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
349 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
350 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
351 |
+ >=kde-frameworks/knotifyconfig-${KFMIN}:5 |
352 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
353 |
+ >=kde-frameworks/kservice-${KFMIN}:5 |
354 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
355 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
356 |
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5[X] |
357 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
358 |
+ >=kde-frameworks/sonnet-${KFMIN}:5 |
359 |
+ telemetry? ( >=dev-libs/kuserfeedback-1.2.0:5 ) |
360 |
+" |
361 |
+DEPEND="${COMMON_DEPEND} |
362 |
+ >=kde-apps/kcalutils-${PVCUT}:5 |
363 |
+ >=kde-apps/kldap-${PVCUT}:5 |
364 |
+ test? ( >=kde-apps/akonadi-${PVCUT}:5[sqlite] ) |
365 |
+" |
366 |
+RDEPEND="${COMMON_DEPEND} |
367 |
+ >=kde-apps/kdepim-runtime-${PVCUT}:5 |
368 |
+ >=kde-apps/kmail-account-wizard-${PVCUT}:5 |
369 |
+" |
370 |
+BDEPEND=" |
371 |
+ dev-libs/libxslt |
372 |
+ test? ( >=kde-apps/akonadi-${PVCUT}:5[tools] ) |
373 |
+" |
374 |
+ |
375 |
+PATCHES=( |
376 |
+ "${FILESDIR}/${P}-fix-open-detailed-progress-bar.patch" # bug 891509 |
377 |
+ "${FILESDIR}/${P}-fix-random-text-in-config-settings.patch" |
378 |
+ "${FILESDIR}/${P}-remove-removed-ShowUserAgent.patch" |
379 |
+ "${FILESDIR}/${P}-fix-crash-on-startup.patch" |
380 |
+ "${FILESDIR}/${P}-fix-crash-on-replay-msg-w-user-template.patch" |
381 |
+) |
382 |
+ |
383 |
+src_prepare() { |
384 |
+ ecm_src_prepare |
385 |
+ use handbook || cmake_run_in ktnef cmake_comment_add_subdirectory doc |
386 |
+} |
387 |
+ |
388 |
+src_configure() { |
389 |
+ local mycmakeargs=( |
390 |
+ -DUSE_PRECOMPILED_HEADERS=$(usex pch) |
391 |
+ $(cmake_use_find_package telemetry KUserFeedback) |
392 |
+ ) |
393 |
+ |
394 |
+ ecm_src_configure |
395 |
+} |
396 |
+ |
397 |
+pkg_postinst() { |
398 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
399 |
+ optfeature "virus detection" app-antivirus/clamav |
400 |
+ optfeature "spam filtering" mail-filter/bogofilter mail-filter/spamassassin |
401 |
+ optfeature "fancy e-mail headers and useful plugins" kde-apps/kdepim-addons:${SLOT} |
402 |
+ optfeature "crypto config and certificate details GUI" kde-apps/kleopatra:${SLOT} |
403 |
+ optfeature "import PIM data from other applications" kde-apps/akonadi-import-wizard:${SLOT} |
404 |
+ fi |
405 |
+ ecm_pkg_postinst |
406 |
+} |
407 |
|
408 |
diff --git a/kde-apps/kmail/kmail-22.12.1-r2.ebuild b/kde-apps/kmail/kmail-22.12.1-r2.ebuild |
409 |
new file mode 100644 |
410 |
index 000000000000..4130f4de525d |
411 |
--- /dev/null |
412 |
+++ b/kde-apps/kmail/kmail-22.12.1-r2.ebuild |
413 |
@@ -0,0 +1,119 @@ |
414 |
+# Copyright 1999-2023 Gentoo Authors |
415 |
+# Distributed under the terms of the GNU General Public License v2 |
416 |
+ |
417 |
+EAPI=8 |
418 |
+ |
419 |
+ECM_HANDBOOK="optional" |
420 |
+ECM_TEST="forceoptional" |
421 |
+PVCUT=$(ver_cut 1-3) |
422 |
+KFMIN=5.101.0 |
423 |
+QTMIN=5.15.5 |
424 |
+VIRTUALX_REQUIRED="test" |
425 |
+inherit ecm gear.kde.org optfeature |
426 |
+ |
427 |
+DESCRIPTION="Email client, supporting POP3 and IMAP mailboxes" |
428 |
+HOMEPAGE="https://apps.kde.org/kmail2/ |
429 |
+https://kontact.kde.org/components/kmail/" |
430 |
+ |
431 |
+LICENSE="GPL-2+ handbook? ( FDL-1.2+ )" |
432 |
+SLOT="5" |
433 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
434 |
+IUSE="pch speech telemetry" |
435 |
+ |
436 |
+RESTRICT="test" # bug 616878 |
437 |
+ |
438 |
+# kde-frameworks/kwindowsystem[X]: Unconditional use of KX11Extras |
439 |
+COMMON_DEPEND=" |
440 |
+ >=app-crypt/gpgme-1.16.0:=[cxx,qt5] |
441 |
+ >=dev-qt/qtcore-${QTMIN}:5 |
442 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
443 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
444 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
445 |
+ >=dev-qt/qtwebengine-${QTMIN}:5[widgets] |
446 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
447 |
+ >=kde-apps/akonadi-${PVCUT}:5 |
448 |
+ >=kde-apps/akonadi-contacts-${PVCUT}:5 |
449 |
+ >=kde-apps/akonadi-mime-${PVCUT}:5 |
450 |
+ >=kde-apps/akonadi-search-${PVCUT}:5 |
451 |
+ >=kde-apps/kidentitymanagement-${PVCUT}:5 |
452 |
+ >=kde-apps/kmailtransport-${PVCUT}:5 |
453 |
+ >=kde-apps/kmime-${PVCUT}:5 |
454 |
+ >=kde-apps/kontactinterface-${PVCUT}:5 |
455 |
+ >=kde-apps/kpimtextedit-${PVCUT}:5[speech=] |
456 |
+ >=kde-apps/libgravatar-${PVCUT}:5 |
457 |
+ >=kde-apps/libkdepim-${PVCUT}:5 |
458 |
+ >=kde-apps/libkleo-${PVCUT}:5 |
459 |
+ >=kde-apps/libksieve-${PVCUT}:5 |
460 |
+ >=kde-apps/libktnef-${PVCUT}:5 |
461 |
+ >=kde-apps/mailcommon-${PVCUT}:5 |
462 |
+ >=kde-apps/messagelib-${PVCUT}:5 |
463 |
+ >=kde-apps/pimcommon-${PVCUT}:5 |
464 |
+ >=kde-frameworks/kbookmarks-${KFMIN}:5 |
465 |
+ >=kde-frameworks/kcalendarcore-${KFMIN}:5 |
466 |
+ >=kde-frameworks/kcmutils-${KFMIN}:5 |
467 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
468 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
469 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
470 |
+ >=kde-frameworks/kcontacts-${KFMIN}:5 |
471 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
472 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
473 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
474 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
475 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
476 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
477 |
+ >=kde-frameworks/kitemviews-${KFMIN}:5 |
478 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
479 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
480 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
481 |
+ >=kde-frameworks/knotifyconfig-${KFMIN}:5 |
482 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
483 |
+ >=kde-frameworks/kservice-${KFMIN}:5 |
484 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
485 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
486 |
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5[X] |
487 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
488 |
+ >=kde-frameworks/sonnet-${KFMIN}:5 |
489 |
+ telemetry? ( >=dev-libs/kuserfeedback-1.2.0:5 ) |
490 |
+" |
491 |
+DEPEND="${COMMON_DEPEND} |
492 |
+ >=kde-apps/kcalutils-${PVCUT}:5 |
493 |
+ >=kde-apps/kldap-${PVCUT}:5 |
494 |
+ test? ( >=kde-apps/akonadi-${PVCUT}:5[sqlite] ) |
495 |
+" |
496 |
+RDEPEND="${COMMON_DEPEND} |
497 |
+ >=kde-apps/kdepim-runtime-${PVCUT}:5 |
498 |
+ >=kde-apps/kmail-account-wizard-${PVCUT}:5 |
499 |
+" |
500 |
+BDEPEND=" |
501 |
+ dev-libs/libxslt |
502 |
+ test? ( >=kde-apps/akonadi-${PVCUT}:5[tools] ) |
503 |
+" |
504 |
+ |
505 |
+PATCHES=( |
506 |
+ "${FILESDIR}/${PN}-22.08.3-fix-crash-on-replay-msg-w-user-template.patch" |
507 |
+) |
508 |
+ |
509 |
+src_prepare() { |
510 |
+ ecm_src_prepare |
511 |
+ use handbook || cmake_run_in ktnef cmake_comment_add_subdirectory doc |
512 |
+} |
513 |
+ |
514 |
+src_configure() { |
515 |
+ local mycmakeargs=( |
516 |
+ -DUSE_PRECOMPILED_HEADERS=$(usex pch) |
517 |
+ $(cmake_use_find_package telemetry KUserFeedback) |
518 |
+ ) |
519 |
+ |
520 |
+ ecm_src_configure |
521 |
+} |
522 |
+ |
523 |
+pkg_postinst() { |
524 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
525 |
+ optfeature "virus detection" app-antivirus/clamav |
526 |
+ optfeature "spam filtering" mail-filter/bogofilter mail-filter/spamassassin |
527 |
+ optfeature "fancy e-mail headers and useful plugins" kde-apps/kdepim-addons:${SLOT} |
528 |
+ optfeature "crypto config and certificate details GUI" kde-apps/kleopatra:${SLOT} |
529 |
+ optfeature "import PIM data from other applications" kde-apps/akonadi-import-wizard:${SLOT} |
530 |
+ fi |
531 |
+ ecm_pkg_postinst |
532 |
+} |