From 084e7f70c5ecff5841c1ba4e20939c979b662a19 Mon Sep 17 00:00:00 2001 From: Rob van Nues Date: Thu, 4 Nov 2021 15:21:22 +0100 Subject: graphics/inkscape: Updated for version 1.1.1. Patch for the newe poppler (ndponce) Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- graphics/inkscape/inkscape.SlackBuild | 7 +++++-- graphics/inkscape/inkscape.info | 6 +++--- graphics/inkscape/poppler-21.11.0.patch | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 graphics/inkscape/poppler-21.11.0.patch (limited to 'graphics') diff --git a/graphics/inkscape/inkscape.SlackBuild b/graphics/inkscape/inkscape.SlackBuild index 3c5182be72..986a956eba 100644 --- a/graphics/inkscape/inkscape.SlackBuild +++ b/graphics/inkscape/inkscape.SlackBuild @@ -25,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=inkscape -VERSION=${VERSION:-1.1} -EXTRAVER=${EXTRAVER:-2021-05-24_c4e8f9ed74} +VERSION=${VERSION:-1.1.1} +EXTRAVER=${EXTRAVER:-2021-09-20_3bf5ae0d25} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -94,6 +94,9 @@ dos2unix -k -q share/extensions/*.py # Fix man page location: sed -i CMakeScripts/Pod2man.cmake -e "s/SHARE_INSTALL/CMAKE_INSTALL_PREFIX/g" +# patch from archlinux +patch -p1 < $CWD/poppler-21.11.0.patch + mkdir -p build cd build # imagemagick >= 7.x is unsupported yet, so use GraphicsMagick diff --git a/graphics/inkscape/inkscape.info b/graphics/inkscape/inkscape.info index aede4aa381..710bd53110 100644 --- a/graphics/inkscape/inkscape.info +++ b/graphics/inkscape/inkscape.info @@ -1,8 +1,8 @@ PRGNAM="inkscape" -VERSION="1.1" +VERSION="1.1.1" HOMEPAGE="http://www.inkscape.org/" -DOWNLOAD="https://media.inkscape.org/dl/resources/file/inkscape-1.1.tar.xz" -MD5SUM="45e38e25fb93c7c91c51b84b9e4cf0ee" +DOWNLOAD="https://media.inkscape.org/dl/resources/file/inkscape-1.1.1.tar.xz" +MD5SUM="1852c535a1aec7ca25eca9de110330d7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="GraphicsMagick gdl dos2unix double-conversion libcdr lxml numpy potrace pstoedit scour" diff --git a/graphics/inkscape/poppler-21.11.0.patch b/graphics/inkscape/poppler-21.11.0.patch new file mode 100644 index 0000000000..dd908756f0 --- /dev/null +++ b/graphics/inkscape/poppler-21.11.0.patch @@ -0,0 +1,26 @@ +From ff61b5e3df3351d4ab5437181fe6d34729f4cbbb Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Mon, 1 Nov 2021 21:45:38 +0200 +Subject: [PATCH] Fix build with poppler 21.11.0 + +GfxFont::tag is now of type std::string instead of GooString *. +--- + src/extension/internal/pdfinput/pdf-parser.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp +index e3d04d544b..feecefa043 100644 +--- a/src/extension/internal/pdfinput/pdf-parser.cpp ++++ b/src/extension/internal/pdfinput/pdf-parser.cpp +@@ -2169,7 +2169,11 @@ void PdfParser::opSetFont(Object args[], int /*numArgs*/) + } + 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); -- cgit v1.2.3