office/qpdfview-qt5: Patched for qt-5.15.x.

Thanks to kgha on LQ!

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2021-03-14 15:19:14 +01:00 committed by Robby Workman
parent 9789160d3a
commit 2d01c10f36
2 changed files with 26 additions and 0 deletions

View File

@ -72,6 +72,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/qt-5.15.patch
sed -i "s|/usr/lib/qpdfview|/usr/lib${LIBDIRSUFFIX}/qpdfview|" qpdfview.pri
# From Arch pkgbuild. Fix build with texlive in Slackware current.

View File

@ -0,0 +1,24 @@
Index: qpdfview-0.4.18/sources/djvumodel.cpp
===================================================================
--- qpdfview-0.4.18.orig/sources/djvumodel.cpp
+++ qpdfview-0.4.18/sources/djvumodel.cpp
@@ -29,6 +29,7 @@ along with qpdfview. If not, see <http:
#include <cstdio>
#include <QFile>
+#include <QPainterPath>
#include <qmath.h>
#if defined(Q_OS_WIN) && defined(DJVU_STATIC)
Index: qpdfview-0.4.18/sources/model.h
===================================================================
--- qpdfview-0.4.18.orig/sources/model.h
+++ qpdfview-0.4.18/sources/model.h
@@ -27,6 +27,7 @@ along with qpdfview. If not, see <http:
#include <QtPlugin>
#include <QWidget>
#include <QVector>
+#include <QPainterPath>
class QAbstractItemModel;
class QColor;