aboutsummaryrefslogtreecommitdiff
path: root/office/qpdfview-qt5
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-03-14 15:19:14 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:56:16 -0500
commit2d01c10f362b6ca0a7070690519ddfc5f62b120a (patch)
treec98d5bb26bb5e37ede25827f8b9000053d180040 /office/qpdfview-qt5
parent9789160d3a8322907de885cd957d94cf3fe6f691 (diff)
office/qpdfview-qt5: Patched for qt-5.15.x.
Thanks to kgha on LQ! Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/qpdfview-qt5')
-rw-r--r--office/qpdfview-qt5/qpdfview-qt5.SlackBuild2
-rw-r--r--office/qpdfview-qt5/qt-5.15.patch24
2 files changed, 26 insertions, 0 deletions
diff --git a/office/qpdfview-qt5/qpdfview-qt5.SlackBuild b/office/qpdfview-qt5/qpdfview-qt5.SlackBuild
index 97404863973ab..6665bfff693ce 100644
--- a/office/qpdfview-qt5/qpdfview-qt5.SlackBuild
+++ b/office/qpdfview-qt5/qpdfview-qt5.SlackBuild
@@ -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.
diff --git a/office/qpdfview-qt5/qt-5.15.patch b/office/qpdfview-qt5/qt-5.15.patch
new file mode 100644
index 0000000000000..ca48432b85ecf
--- /dev/null
+++ b/office/qpdfview-qt5/qt-5.15.patch
@@ -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;