diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2019-05-13 18:33:10 +0000 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2019-05-13 18:33:10 +0000 |
commit | 753388101e291ed46b1fc54ed58ff511947cdb05 (patch) | |
tree | e4795e5c4118cbabea98249dfbd9e7b649168ad6 /graphics/inkscape | |
parent | e56f67821d507984a934ea018df587993586b9d4 (diff) | |
download | ports-753388101e291ed46b1fc54ed58ff511947cdb05.tar.gz ports-753388101e291ed46b1fc54ed58ff511947cdb05.zip |
Notes
Diffstat (limited to 'graphics/inkscape')
-rw-r--r-- | graphics/inkscape/Makefile | 1 | ||||
-rw-r--r-- | graphics/inkscape/files/patch-gentoo_inkscape-0.92.4-poppler-0.76.0.patch | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/graphics/inkscape/Makefile b/graphics/inkscape/Makefile index 538f190fb83c..952a99ba3944 100644 --- a/graphics/inkscape/Makefile +++ b/graphics/inkscape/Makefile @@ -3,6 +3,7 @@ PORTNAME= inkscape PORTVERSION= 0.92.4 +PORTREVISION= 1 CATEGORIES= graphics gnome MASTER_SITES= https://media.inkscape.org/dl/resources/file/ diff --git a/graphics/inkscape/files/patch-gentoo_inkscape-0.92.4-poppler-0.76.0.patch b/graphics/inkscape/files/patch-gentoo_inkscape-0.92.4-poppler-0.76.0.patch new file mode 100644 index 000000000000..d9c23a860d52 --- /dev/null +++ b/graphics/inkscape/files/patch-gentoo_inkscape-0.92.4-poppler-0.76.0.patch @@ -0,0 +1,44 @@ +From dc25406853353320078eca22cf817fb052c97082 Mon Sep 17 00:00:00 2001 +From: Marc Jeanmougin <marc@jeanmougin.fr> +Date: Wed, 24 Apr 2019 14:11:26 +0200 +Subject: [PATCH] Tentative fix for poppler 0.76 + +--- + src/extension/internal/pdfinput/pdf-parser.cpp | 2 +- + src/extension/internal/pdfinput/poppler-transition-api.h | 7 +++++++ + 2 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp +index 2981d6ee51..ddbff7671f 100644 +--- src/extension/internal/pdfinput/pdf-parser.cpp ++++ src/extension/internal/pdfinput/pdf-parser.cpp +@@ -426,7 +426,7 @@ void PdfParser::parse(Object *obj, GBool topLevel) { + error(errInternal, -1, "Weird page contents"); + return; + } +- parser = new Parser(xref, new Lexer(xref, obj), gFalse); ++ parser = new _POPPLER_NEW_PARSER(xref, obj); + go(topLevel); + delete parser; + parser = NULL; +diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h +index 6e4dde7dee..21a60702fa 100644 +--- src/extension/internal/pdfinput/poppler-transition-api.h ++++ src/extension/internal/pdfinput/poppler-transition-api.h +@@ -3,6 +3,13 @@ + + #include <glib/poppler-features.h> + ++#if POPPLER_CHECK_VERSION(0, 76, 0) ++#define _POPPLER_NEW_PARSER(xref, obj) Parser(xref, obj, gFalse) ++#else ++#define _POPPLER_NEW_PARSER(xref, obj) Parser(xref, new Lexer(xref, obj), gFalse) ++#endif ++ ++ + #if POPPLER_CHECK_VERSION(0, 72, 0) + #define getCString c_str + #endif +-- +2.18.1 + |