commit:     45764c663860dd908384a7704b749ad7f950d01c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 17 19:25:35 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 17 19:25:53 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45764c66

kde-apps/kpat: Fix build with Qt 5.11

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/kpat/files/kpat-18.04.3-qt-5.11.patch | 23 +++++++++++++++++++++++
 kde-apps/kpat/kpat-18.04.3.ebuild              |  4 +++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/kde-apps/kpat/files/kpat-18.04.3-qt-5.11.patch 
b/kde-apps/kpat/files/kpat-18.04.3-qt-5.11.patch
new file mode 100644
index 00000000000..d3c7b784361
--- /dev/null
+++ b/kde-apps/kpat/files/kpat-18.04.3-qt-5.11.patch
@@ -0,0 +1,23 @@
+From 7a69e3f4b15a902c4008a428d5fbf0335526f49b Mon Sep 17 00:00:00 2001
+From: Jonathan Marten <[email protected]>
+Date: Sat, 22 Sep 2018 16:56:04 +0100
+Subject: Needs include of <QBuffer> for Qt 5.11
+
+---
+ mainwindow.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/mainwindow.cpp b/mainwindow.cpp
+index cec0685..a597717 100644
+--- a/mainwindow.cpp
++++ b/mainwindow.cpp
+@@ -78,6 +78,7 @@
+ #include <QList>
+ #include <QPointer>
+ #include <QTimer>
++#include <QBuffer>
+ #include <QXmlStreamReader>
+ #include <QDesktopWidget>
+ #include <QKeySequence>
+-- 
+cgit v1.1

diff --git a/kde-apps/kpat/kpat-18.04.3.ebuild 
b/kde-apps/kpat/kpat-18.04.3.ebuild
index a023a866ad0..f6681caac28 100644
--- a/kde-apps/kpat/kpat-18.04.3.ebuild
+++ b/kde-apps/kpat/kpat-18.04.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -34,3 +34,5 @@ DEPEND="
        x11-misc/shared-mime-info
 "
 RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" )

Reply via email to