summaryrefslogtreecommitdiff
path: root/graphics/inkscape
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2021-11-07 21:28:48 +0000
committerwiz <wiz@pkgsrc.org>2021-11-07 21:28:48 +0000
commita93adbd11d4ff89ac1d2d8a576e75e5151578b98 (patch)
treefc149d583caf272dbc7a8a1a23a5f2478df2c1f6 /graphics/inkscape
parente388d0d9ed3b28eed8deaeb9204128f7edbb0677 (diff)
downloadpkgsrc-a93adbd11d4ff89ac1d2d8a576e75e5151578b98.tar.gz
inkscape: fix build with poppler-21.11.0
Diffstat (limited to 'graphics/inkscape')
-rw-r--r--graphics/inkscape/distinfo3
-rw-r--r--graphics/inkscape/patches/patch-src_extension_internal_pdfinput_pdf-parser.cpp19
2 files changed, 21 insertions, 1 deletions
diff --git a/graphics/inkscape/distinfo b/graphics/inkscape/distinfo
index cc6c91a2565..42b17729ff0 100644
--- a/graphics/inkscape/distinfo
+++ b/graphics/inkscape/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.85 2021/10/26 10:46:20 nia Exp $
+$NetBSD: distinfo,v 1.86 2021/11/07 21:28:48 wiz Exp $
BLAKE2s (inkscape-1.1.1_2021-09-20_3bf5ae0d25.tar.xz) = a3cd5ffae74aefb0f553393204a36f76eae6d36c4fec8c68040f2c0a903d1904
SHA512 (inkscape-1.1.1_2021-09-20_3bf5ae0d25.tar.xz) = 22b1b584a344c4f4ebd0b6e84a4af44e472ef47b3971cb97cbb026a4bf7cb5bea49a7de0c2af2a9e439c7c794f775081c8d1904f33eadb49a5389ea01bc0896c
Size (inkscape-1.1.1_2021-09-20_3bf5ae0d25.tar.xz) = 34221284 bytes
SHA1 (patch-CMakeScripts_DefineDependsandFlags.cmake) = 26351c300629e28f6523fe2167a2eed5802435cf
SHA1 (patch-src_extension_implementation_script.cpp) = da46549f688da5c9c0ecbeaeac7962e4f261cae4
+SHA1 (patch-src_extension_internal_pdfinput_pdf-parser.cpp) = e65c9c731927cec6ae595b7f2abbb94791dfde59
diff --git a/graphics/inkscape/patches/patch-src_extension_internal_pdfinput_pdf-parser.cpp b/graphics/inkscape/patches/patch-src_extension_internal_pdfinput_pdf-parser.cpp
new file mode 100644
index 00000000000..0331a5f516a
--- /dev/null
+++ b/graphics/inkscape/patches/patch-src_extension_internal_pdfinput_pdf-parser.cpp
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_extension_internal_pdfinput_pdf-parser.cpp,v 1.15 2021/11/07 21:28:48 wiz Exp $
+
+Fix build with poppler-21.11.0
+https://gitlab.com/inkscape/inkscape/-/merge_requests/3622/diffs?commit_id=d7fb99ff5708d4fe3cf3526966b73d81da71a7b2
+
+--- src/extension/internal/pdfinput/pdf-parser.cpp.orig 2021-05-25 11:35:00.000000000 +0000
++++ src/extension/internal/pdfinput/pdf-parser.cpp
+@@ -2169,7 +2169,11 @@ void PdfParser::opSetFont(Object args[],
+ }
+ if (printCommands) {
+ printf(" font: tag=%s name='%s' %g\n",
++#if POPPLER_CHECK_VERSION(21,11,0)
++ font->getTag().c_str(),
++#else
+ font->getTag()->getCString(),
++#endif
+ font->getName() ? font->getName()->getCString() : "???",
+ args[1].getNum());
+ fflush(stdout);