aboutsummaryrefslogtreecommitdiff
path: root/graphics/katarakt/files/patch-katarakt.pro
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/katarakt/files/patch-katarakt.pro')
-rw-r--r--graphics/katarakt/files/patch-katarakt.pro14
1 files changed, 12 insertions, 2 deletions
diff --git a/graphics/katarakt/files/patch-katarakt.pro b/graphics/katarakt/files/patch-katarakt.pro
index db6edd849e8c..a6364ffa312d 100644
--- a/graphics/katarakt/files/patch-katarakt.pro
+++ b/graphics/katarakt/files/patch-katarakt.pro
@@ -1,6 +1,16 @@
---- katarakt.pro.orig 2019-12-29 14:08:42 UTC
+--- katarakt.pro.orig 2017-08-23 19:28:21 UTC
+++ katarakt.pro
-@@ -57,3 +57,6 @@ web.depends = $$website.target
+@@ -18,7 +18,8 @@ unix {
+ isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config # same as in link_pkgconfig.prf
+ POPPLER_VERSION = $$system($$PKG_CONFIG --modversion $$POPPLER)
+ POPPLER_VERSION_MAJOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 1)
+- POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2)
++ # With the new version scheme the minor version can have leading zeroes (calendar month)
++ POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2 | sed "s|^0*||g")
+ POPPLER_VERSION_MICRO = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 3)
+
+ DEFINES += POPPLER_VERSION_MAJOR=$$POPPLER_VERSION_MAJOR
+@@ -57,3 +58,6 @@ web.depends = $$website.target
web.CONFIG = phony
QMAKE_EXTRA_TARGETS += documentation website doc web