summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-05-30 11:27:20 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-05-30 11:31:06 +0200
commitd84040f2ada52a9a01e555158ab835c0296b0356 (patch)
tree2eaa40e3cc3a46f43d87984cf750e6a86cb562ec /app-text
parentapp-office/scribus: Fix build with Qt 5.15 (diff)
downloadgentoo-d84040f2ada52a9a01e555158ab835c0296b0356.tar.gz
gentoo-d84040f2ada52a9a01e555158ab835c0296b0356.tar.bz2
gentoo-d84040f2ada52a9a01e555158ab835c0296b0356.zip
app-text/qpdfview: Fix build with Qt 5.15
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>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/qpdfview/files/qpdfview-0.4.18-qt-5.15.patch11
-rw-r--r--app-text/qpdfview/qpdfview-0.4.18.ebuild2
2 files changed, 13 insertions, 0 deletions
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
index 000000000000..b19f247a7c38
--- /dev/null
+++ b/app-text/qpdfview/files/qpdfview-0.4.18-qt-5.15.patch
@@ -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;
diff --git a/app-text/qpdfview/qpdfview-0.4.18.ebuild b/app-text/qpdfview/qpdfview-0.4.18.ebuild
index 5e1fefad37b7..de52c7c7b922 100644
--- a/app-text/qpdfview/qpdfview-0.4.18.ebuild
+++ b/app-text/qpdfview/qpdfview-0.4.18.ebuild
@@ -42,6 +42,8 @@ DEPEND="${RDEPEND}"
DOCS=( CHANGES CONTRIBUTORS README TODO )
+PATCHES=( "${FILESDIR}/${P}-qt-5.15.patch" ) # bug 726064
+
src_prepare() {
default