app-text/qpdfview: Fix build with Qt 5.15
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 30 May 2020 09:27:20 +0000 (11:27 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 30 May 2020 09:31:06 +0000 (11:31 +0200)
Thanks-to: Petr Zima <zima@matfyz.cz>
Closes: https://bugs.gentoo.org/726064
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
app-text/qpdfview/files/qpdfview-0.4.18-qt-5.15.patch [new file with mode: 0644]
app-text/qpdfview/qpdfview-0.4.18.ebuild

diff --git a/app-text/qpdfview/files/qpdfview-0.4.18-qt-5.15.patch b/app-text/qpdfview/files/qpdfview-0.4.18-qt-5.15.patch
new file mode 100644 (file)
index 0000000..b19f247
--- /dev/null
@@ -0,0 +1,11 @@
+diff -ur qpdfview-0.4.18.orig/sources/model.h qpdfview-0.4.18/sources/model.h
+--- a/sources/model.h  2019-07-24 21:18:33.000000000 +0200
++++ b/sources/model.h  2020-05-29 11:44:33.012891583 +0200
+@@ -27,6 +27,7 @@
+ #include <QtPlugin>
+ #include <QWidget>
+ #include <QVector>
++#include <QPainterPath>
+ class QAbstractItemModel;
+ class QColor;
index 5e1fefad37b7245f5bfca90db8fed87f49fbdb8b..de52c7c7b922a4bd55564c5d0dd70beb6f83d49a 100644 (file)
@@ -42,6 +42,8 @@ DEPEND="${RDEPEND}"
 
 DOCS=( CHANGES CONTRIBUTORS README TODO )
 
+PATCHES=( "${FILESDIR}/${P}-qt-5.15.patch" ) # bug 726064
+
 src_prepare() {
        default