diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-03-14 15:19:14 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:56:16 -0500 |
commit | 2d01c10f362b6ca0a7070690519ddfc5f62b120a (patch) | |
tree | c98d5bb26bb5e37ede25827f8b9000053d180040 | |
parent | 9789160d3a8322907de885cd957d94cf3fe6f691 (diff) | |
download | slackbuilds-2d01c10f362b6ca0a7070690519ddfc5f62b120a.tar.gz |
office/qpdfview-qt5: Patched for qt-5.15.x.
Thanks to kgha on LQ!
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | office/qpdfview-qt5/qpdfview-qt5.SlackBuild | 2 | ||||
-rw-r--r-- | office/qpdfview-qt5/qt-5.15.patch | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/office/qpdfview-qt5/qpdfview-qt5.SlackBuild b/office/qpdfview-qt5/qpdfview-qt5.SlackBuild index 9740486397..6665bfff69 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 0000000000..ca48432b85 --- /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; |