kde-apps/messagelib: Fix messageview header with Qt 5.15.0_rc
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 14 May 2020 11:34:12 +0000 (13:34 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 14 May 2020 17:20:45 +0000 (19:20 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-apps/messagelib/files/messagelib-20.04.0-qt-5.15.patch [new file with mode: 0644]
kde-apps/messagelib/messagelib-20.04.0-r1.ebuild [new file with mode: 0644]

diff --git a/kde-apps/messagelib/files/messagelib-20.04.0-qt-5.15.patch b/kde-apps/messagelib/files/messagelib-20.04.0-qt-5.15.patch
new file mode 100644 (file)
index 0000000..93f632b
--- /dev/null
@@ -0,0 +1,25 @@
+From 1f2548805df60707ffba2bba27d35d441232d140 Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Thu, 14 May 2020 13:27:14 +0200
+Subject: Fix load header with qt5.15
+
+---
+ messageviewer/src/viewer/webengine/mailwebenginepage.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/messageviewer/src/viewer/webengine/mailwebenginepage.cpp b/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
+index b9d7b9f..f1c3eab 100644
+--- a/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
++++ b/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
+@@ -40,7 +40,8 @@ void MailWebEnginePage::initialize()
+     settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, enableElement);
+     settings()->setAttribute(QWebEngineSettings::XSSAuditingEnabled, enableElement);
+     settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, enableElement);
+-    settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, enableElement);
++    //We need to activate it in qt5.15 otherwise we can't load local css file and co
++    //settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, enableElement);
+     settings()->setAttribute(QWebEngineSettings::ErrorPageEnabled, enableElement);
+     settings()->setAttribute(QWebEngineSettings::HyperlinkAuditingEnabled, enableElement);
+     settings()->setAttribute(QWebEngineSettings::FullScreenSupportEnabled, enableElement);
+-- 
+cgit v1.1
diff --git a/kde-apps/messagelib/messagelib-20.04.0-r1.ebuild b/kde-apps/messagelib/messagelib-20.04.0-r1.ebuild
new file mode 100644 (file)
index 0000000..f6471d9
--- /dev/null
@@ -0,0 +1,73 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_TEST="forceoptional-recursive"
+PVCUT=$(ver_cut 1-3)
+KFMIN=5.69.0
+QTMIN=5.12.3
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="Libraries for messaging functions"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE=""
+
+DEPEND="
+       >=app-crypt/gpgme-1.8.0-r1[cxx,qt5]
+       >=app-crypt/qca-2.3.0:2
+       >=dev-libs/grantlee-5.1.0:5
+       >=dev-qt/qtgui-${QTMIN}:5
+       >=dev-qt/qtnetwork-${QTMIN}:5
+       >=dev-qt/qtprintsupport-${QTMIN}:5
+       >=dev-qt/qtwebengine-${QTMIN}:5[widgets]
+       >=dev-qt/qtwidgets-${QTMIN}:5
+       >=kde-apps/akonadi-${PVCUT}:5
+       >=kde-apps/akonadi-contacts-${PVCUT}:5
+       >=kde-apps/akonadi-mime-${PVCUT}:5
+       >=kde-apps/grantleetheme-${PVCUT}:5
+       >=kde-apps/incidenceeditor-${PVCUT}:5
+       >=kde-apps/kdepim-apps-libs-${PVCUT}:5
+       >=kde-apps/kidentitymanagement-${PVCUT}:5
+       >=kde-apps/kldap-${PVCUT}:5
+       >=kde-apps/kmailtransport-${PVCUT}:5
+       >=kde-apps/kmbox-${PVCUT}:5
+       >=kde-apps/kmime-${PVCUT}:5
+       >=kde-apps/kpimtextedit-${PVCUT}:5
+       >=kde-apps/libgravatar-${PVCUT}:5
+       >=kde-apps/libkdepim-${PVCUT}:5
+       >=kde-apps/libkleo-${PVCUT}:5
+       >=kde-frameworks/karchive-${KFMIN}:5
+       >=kde-frameworks/kcalendarcore-${KFMIN}:5
+       >=kde-frameworks/kcodecs-${KFMIN}:5
+       >=kde-frameworks/kcompletion-${KFMIN}:5
+       >=kde-frameworks/kconfig-${KFMIN}:5
+       >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+       >=kde-frameworks/kcontacts-${KFMIN}:5
+       >=kde-frameworks/kcoreaddons-${KFMIN}:5
+       >=kde-frameworks/kdbusaddons-${KFMIN}:5
+       >=kde-frameworks/ki18n-${KFMIN}:5
+       >=kde-frameworks/kiconthemes-${KFMIN}:5
+       >=kde-frameworks/kio-${KFMIN}:5
+       >=kde-frameworks/kitemmodels-${KFMIN}:5
+       >=kde-frameworks/kitemviews-${KFMIN}:5
+       >=kde-frameworks/kjobwidgets-${KFMIN}:5
+       >=kde-frameworks/knotifications-${KFMIN}:5
+       >=kde-frameworks/kservice-${KFMIN}:5
+       >=kde-frameworks/ktextwidgets-${KFMIN}:5
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+       >=kde-frameworks/kwindowsystem-${KFMIN}:5
+       >=kde-frameworks/kxmlgui-${KFMIN}:5
+       >=kde-frameworks/sonnet-${KFMIN}:5
+       >=kde-frameworks/syntax-highlighting-${KFMIN}:5
+"
+RDEPEND="${DEPEND}"
+
+# bug 579630
+RESTRICT+=" test"
+
+PATCHES=( "${FILESDIR}/${P}-qt-5.15.patch" )