poplpler: fix patch for 0.90.1. (#18969)
This commit is contained in:
parent
5a49c2bcaf
commit
6383ef808d
@ -62,7 +62,8 @@ class Poppler(CMakePackage):
|
|||||||
# Splash is unconditionally disabled. Unfortunately there's
|
# Splash is unconditionally disabled. Unfortunately there's
|
||||||
# a small section of code in the QT5 wrappers that expects it
|
# a small section of code in the QT5 wrappers that expects it
|
||||||
# to be present.
|
# to be present.
|
||||||
patch('poppler_page_splash.patch', when='@0.64.0: ^qt@5.0:')
|
patch('poppler_page_splash.patch', when='@0.64.0:0.90.0 ^qt@5.0:')
|
||||||
|
patch('poppler_page_splash.0.90.1.patch', when='@0.90.1: ^qt@5.0:')
|
||||||
|
|
||||||
# Only needed to run `make test`
|
# Only needed to run `make test`
|
||||||
resource(
|
resource(
|
||||||
|
20
var/spack/repos/builtin/packages/poppler/poppler_page_splash.0.90.1.patch
Executable file
20
var/spack/repos/builtin/packages/poppler/poppler_page_splash.0.90.1.patch
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
diff --git a/qt5/src/poppler-page.cc b/qt5/src/poppler-page.cc
|
||||||
|
index c4d00a6..e72c26b 100644
|
||||||
|
--- a/qt5/src/poppler-page.cc
|
||||||
|
+++ b/qt5/src/poppler-page.cc
|
||||||
|
@@ -103,6 +103,8 @@ public:
|
||||||
|
QVariant payload;
|
||||||
|
};
|
||||||
|
|
||||||
|
+#if defined(HAVE_SPLASH)
|
||||||
|
+
|
||||||
|
class Qt5SplashOutputDev : public SplashOutputDev, public OutputDevCallbackHelper
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
@@ -163,5 +156,6 @@ private:
|
||||||
|
bool ignorePaperColor;
|
||||||
|
};
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
class QImageDumpingArthurOutputDev : public ArthurOutputDev, public OutputDevCallbackHelper
|
||||||
|
{
|
Loading…
Reference in New Issue
Block a user