summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-11-15 12:53:37 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-11-15 18:37:39 +0100
commit35cb1f6518052796774bf6660423d193c6de6569 (patch)
tree1187735ed0e6824cffceca372298d15d42c8ea45 /kde-apps
parentdev-python/future: Bump to 0.18.2 (diff)
downloadgentoo-35cb1f6518052796774bf6660423d193c6de6569.tar.gz
gentoo-35cb1f6518052796774bf6660423d193c6de6569.tar.bz2
gentoo-35cb1f6518052796774bf6660423d193c6de6569.zip
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@gentoo.org>
Diffstat (limited to 'kde-apps')
-rw-r--r--kde-apps/libksieve/files/libksieve-19.08.3-qt-5.14.patch36
-rw-r--r--kde-apps/libksieve/libksieve-19.08.3.ebuild2
2 files changed, 38 insertions, 0 deletions
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 000000000000..403e58dd5f8d
--- /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 1df2bd920747..b702cee164be 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