From d84040f2ada52a9a01e555158ab835c0296b0356 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 30 May 2020 11:27:20 +0200 Subject: [PATCH] app-text/qpdfview: Fix build with Qt 5.15 Thanks-to: Petr Zima Closes: https://bugs.gentoo.org/726064 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner --- app-text/qpdfview/files/qpdfview-0.4.18-qt-5.15.patch | 11 +++++++++++ app-text/qpdfview/qpdfview-0.4.18.ebuild | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 app-text/qpdfview/files/qpdfview-0.4.18-qt-5.15.patch 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 + #include + #include ++#include + + 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 -- 2.26.2