* [gentoo-commits] repo/gentoo:master commit in: kde-apps/libksieve/files/, kde-apps/libksieve/
@ 2019-11-15 17:37 Andreas Sturmlechner
0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2019-11-15 17:37 UTC (permalink / raw
To: gentoo-commits
commit: 35cb1f6518052796774bf6660423d193c6de6569
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 15 11:53:37 2019 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Nov 15 17:37:39 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35cb1f65
kde-apps/libksieve: Fix build with Qt 5.14.0_beta3
Package-Manager: Portage-2.3.79, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../files/libksieve-19.08.3-qt-5.14.patch | 36 ++++++++++++++++++++++
kde-apps/libksieve/libksieve-19.08.3.ebuild | 2 ++
2 files changed, 38 insertions(+)
diff --git a/kde-apps/libksieve/files/libksieve-19.08.3-qt-5.14.patch b/kde-apps/libksieve/files/libksieve-19.08.3-qt-5.14.patch
new file mode 100644
index 00000000000..403e58dd5f8
--- /dev/null
+++ b/kde-apps/libksieve/files/libksieve-19.08.3-qt-5.14.patch
@@ -0,0 +1,36 @@
+From 31b0ec79d4d58077bbb391c170fe9fef08d460a6 Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Fri, 15 Nov 2019 12:07:37 +0100
+Subject: Make it compile against 5.14 beta3
+
+---
+ src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp b/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
+index d4968dc..87305e9 100644
+--- a/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
++++ b/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
+@@ -16,6 +16,8 @@
+ */
+
+ #include "sieveeditorwebengineview.h"
++#include <qtwebenginewidgetsversion.h>
++
+ #include <KLocalizedString>
+ #include <QContextMenuEvent>
+ #include <QMenu>
+@@ -61,7 +63,11 @@ void SieveEditorWebEngineView::downloadRequested(QWebEngineDownloadItem *downloa
+ const QString filename = QFileDialog::getSaveFileName(this, i18n("Save Web Page"));
+ if (!filename.isEmpty()) {
+ download->setSavePageFormat(QWebEngineDownloadItem::SingleHtmlSaveFormat);
++#if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 14, 0)
++ download->setDownloadFileName(filename);
++#else
+ download->setPath(filename);
++#endif
+ download->accept();
+ } else {
+ download->cancel();
+--
+cgit v1.1
diff --git a/kde-apps/libksieve/libksieve-19.08.3.ebuild b/kde-apps/libksieve/libksieve-19.08.3.ebuild
index 1df2bd92074..b702cee164b 100644
--- a/kde-apps/libksieve/libksieve-19.08.3.ebuild
+++ b/kde-apps/libksieve/libksieve-19.08.3.ebuild
@@ -55,6 +55,8 @@ RDEPEND="${COMMON_DEPEND}
RESTRICT+=" test"
+PATCHES=( "${FILESDIR}/${P}-qt-5.14.patch" )
+
src_prepare() {
ecm_src_prepare
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-15 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-15 17:37 [gentoo-commits] repo/gentoo:master commit in: kde-apps/libksieve/files/, kde-apps/libksieve/ Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox