diff options
author | tcberner <tcberner@FreeBSD.org> | 2018-12-16 23:10:42 +0800 |
---|---|---|
committer | tcberner <tcberner@FreeBSD.org> | 2018-12-16 23:10:42 +0800 |
commit | e5accc2f3ffd43ce8844e508fc53e37f16b57ab0 (patch) | |
tree | d25c257492f3b7cfcf0c4195b31b86d6981d8edc /graphics | |
parent | 68db32dc6be35d6d84e2ac879fec13655bc7c763 (diff) | |
download | freebsd-ports-gnome-e5accc2f3ffd43ce8844e508fc53e37f16b57ab0.tar.gz freebsd-ports-gnome-e5accc2f3ffd43ce8844e508fc53e37f16b57ab0.tar.zst freebsd-ports-gnome-e5accc2f3ffd43ce8844e508fc53e37f16b57ab0.zip |
Update poppler to 0.72
This update brings many changes
- the build system has switched to cmake
- some ports needed to be switched to use their bundled
version of poppler:
- print/tex-luatex (r487226)
- print/tex-xetex (r487226)
- editors/opeonffice-devel
- Qt4 support has been dropped
- print/frescobaldi has been removed for this reason.
- most of the added patches can be removed with the next
upgrade of the concerning port.
PR: 233452
Exp-run by: antoine
Approved by: gnome (kwm)
Differential Revision: https://reviews.freebsd.org/D17456
Diffstat (limited to 'graphics')
36 files changed, 1254 insertions, 490 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 5ca7667ac9b9..6b468d6f1f76 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -864,7 +864,6 @@ SUBDIR += poppler SUBDIR += poppler-data SUBDIR += poppler-glib - SUBDIR += poppler-qt4 SUBDIR += poppler-qt5 SUBDIR += poppler-utils SUBDIR += potrace @@ -935,7 +934,6 @@ SUBDIR += py-plotly SUBDIR += py-png SUBDIR += py-poppler - SUBDIR += py-poppler-qt4 SUBDIR += py-pycha SUBDIR += py-pycollada SUBDIR += py-pydot diff --git a/graphics/diff-pdf/Makefile b/graphics/diff-pdf/Makefile index 27d3002c3718..2d2f7b56367a 100644 --- a/graphics/diff-pdf/Makefile +++ b/graphics/diff-pdf/Makefile @@ -4,6 +4,7 @@ PORTNAME= diff-pdf DISTVERSIONPREFIX= v DISTVERSION= 0.2-27 DISTVERSIONSUFFIX= -gc4d6722 +PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= uzsolt@uzsolt.hu diff --git a/graphics/inkscape/Makefile b/graphics/inkscape/Makefile index cf01d93fb102..84a8b6b9ba2e 100644 --- a/graphics/inkscape/Makefile +++ b/graphics/inkscape/Makefile @@ -3,7 +3,7 @@ PORTNAME= inkscape PORTVERSION= 0.92.3 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= graphics gnome MASTER_SITES= https://inkscape.org/en/gallery/item/12187/ @@ -82,5 +82,8 @@ USES+= gettext post-patch: @${REINPLACE_CMD} -e 's|COMMAND python|COMMAND ${PYTHON_VERSION}|g' \ ${WRKSRC}/share/*/CMakeLists.txt + # Obtained from Arch Linux + @${REINPLACE_CMD} -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' \ + ${WRKSRC}/src/extension/internal/pdfinput/pdf-parser.* .include <bsd.port.mk> diff --git a/graphics/inkscape/files/patch-CMakeScripts_Pod2man.cmake b/graphics/inkscape/files/patch-CMakeScripts_Pod2man.cmake index 444de6438b1a..99e053ddb697 100644 --- a/graphics/inkscape/files/patch-CMakeScripts_Pod2man.cmake +++ b/graphics/inkscape/files/patch-CMakeScripts_Pod2man.cmake @@ -1,6 +1,6 @@ ---- CMakeScripts/Pod2man.cmake.orig 2017-01-06 16:19:54.351838000 +0100 -+++ CMakeScripts/Pod2man.cmake 2017-01-06 16:20:26.957487000 +0100 -@@ -48,7 +48,7 @@ +--- CMakeScripts/Pod2man.cmake.orig 2018-03-11 20:38:09 UTC ++++ CMakeScripts/Pod2man.cmake +@@ -48,7 +48,7 @@ macro(pod2man PODFILE_FULL RELEASE SECTION CENTER) ) install( FILES ${MANFILE_FULL} diff --git a/graphics/inkscape/files/patch-archgit_bee18ea b/graphics/inkscape/files/patch-archgit_bee18ea new file mode 100644 index 000000000000..e5554ecbfe4e --- /dev/null +++ b/graphics/inkscape/files/patch-archgit_bee18ea @@ -0,0 +1,1156 @@ +--- CMakeScripts/DefineDependsandFlags.cmake.orig 2018-03-11 20:38:09 UTC ++++ CMakeScripts/DefineDependsandFlags.cmake +@@ -116,18 +116,6 @@ if(ENABLE_POPPLER) + set(HAVE_POPPLER_GLIB ON) + endif() + endif() +- if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR +- POPPLER_VERSION VERSION_EQUAL "0.26.0") +- set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON) +- endif() +- if(POPPLER_VERSION VERSION_GREATER "0.29.0" OR +- POPPLER_VERSION VERSION_EQUAL "0.29.0") +- set(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API ON) +- endif() +- if(POPPLER_VERSION VERSION_GREATER "0.58.0" OR +- POPPLER_VERSION VERSION_EQUAL "0.58.0") +- set(POPPLER_NEW_OBJECT_API ON) +- endif() + else() + set(ENABLE_POPPLER_CAIRO OFF) + endif() +--- src/extension/internal/pdfinput/pdf-input.cpp.orig 2018-03-11 20:38:09 UTC ++++ src/extension/internal/pdfinput/pdf-input.cpp +@@ -319,7 +319,7 @@ PdfImportDialog::PdfImportDialog(PDFDoc *doc, const gc + _render_thumb = true; + + // Create PopplerDocument +- Glib::ustring filename = _pdf_doc->getFileName()->getCString(); ++ Glib::ustring filename = _pdf_doc->getFileName()->c_str(); + if (!Glib::path_is_absolute(filename)) { + filename = Glib::build_filename(Glib::get_current_dir(),filename); + } +@@ -793,7 +793,7 @@ PdfInput::open(::Inkscape::Extension::Input * /*mod*/, + dlg->getImportSettings(prefs); + + // Apply crop settings +- PDFRectangle *clipToBox = NULL; ++ _POPPLER_CONST PDFRectangle *clipToBox = NULL; + double crop_setting; + sp_repr_get_double(prefs, "cropTo", &crop_setting); + +--- src/extension/internal/pdfinput/pdf-input.h.orig 2018-03-11 20:38:09 UTC ++++ src/extension/internal/pdfinput/pdf-input.h +@@ -15,6 +15,7 @@ + #endif + + #ifdef HAVE_POPPLER ++#include "poppler-transition-api.h" + + #include <gtkmm/dialog.h> + +--- src/extension/internal/pdfinput/pdf-parser.cpp.orig 2018-03-11 20:38:09 UTC ++++ src/extension/internal/pdfinput/pdf-parser.cpp +@@ -38,7 +38,6 @@ extern "C" { + + #include "goo/gmem.h" + #include "goo/GooTimer.h" +-#include "goo/GooHash.h" + #include "GlobalParams.h" + #include "CharTypes.h" + #include "Object.h" +@@ -271,7 +270,7 @@ class ClipHistoryEntry { (public) + // Manipulate clip path stack + ClipHistoryEntry *save(); + ClipHistoryEntry *restore(); +- GBool hasSaves() { return saved != NULL; } ++ bool hasSaves() { return saved != NULL; } + void setClip(GfxPath *newClipPath, GfxClipType newClipType = clipNormal); + GfxPath *getClipPath() { return clipPath; } + GfxClipType getClipType() { return clipType; } +@@ -295,15 +294,15 @@ PdfParser::PdfParser(XRef *xrefA, + int /*pageNum*/, + int rotate, + Dict *resDict, +- PDFRectangle *box, +- PDFRectangle *cropBox) : ++ _POPPLER_CONST PDFRectangle *box, ++ _POPPLER_CONST PDFRectangle *cropBox) : + xref(xrefA), + builder(builderA), +- subPage(gFalse), ++ subPage(false), + printCommands(false), + res(new GfxResources(xref, resDict, NULL)), // start the resource stack +- state(new GfxState(72.0, 72.0, box, rotate, gTrue)), +- fontChanged(gFalse), ++ state(new GfxState(72.0, 72.0, box, rotate, true)), ++ fontChanged(false), + clip(clipNone), + ignoreUndef(0), + baseMatrix(), +@@ -318,7 +317,7 @@ PdfParser::PdfParser(XRef *xrefA, + builder->setDocumentSize(Inkscape::Util::Quantity::convert(state->getPageWidth(), "pt", "px"), + Inkscape::Util::Quantity::convert(state->getPageHeight(), "pt", "px")); + +- double *ctm = state->getCTM(); ++ const double *ctm = state->getCTM(); + double scaledCTM[6]; + for (int i = 0; i < 6; ++i) { + baseMatrix[i] = ctm[i]; +@@ -353,14 +352,14 @@ PdfParser::PdfParser(XRef *xrefA, + PdfParser::PdfParser(XRef *xrefA, + Inkscape::Extension::Internal::SvgBuilder *builderA, + Dict *resDict, +- PDFRectangle *box) : ++ _POPPLER_CONST PDFRectangle *box) : + xref(xrefA), + builder(builderA), +- subPage(gTrue), ++ subPage(true), + printCommands(false), + res(new GfxResources(xref, resDict, NULL)), // start the resource stack +- state(new GfxState(72, 72, box, 0, gFalse)), +- fontChanged(gFalse), ++ state(new GfxState(72, 72, box, 0, false)), ++ fontChanged(false), + clip(clipNone), + ignoreUndef(0), + baseMatrix(), +@@ -409,7 +408,7 @@ PdfParser::~PdfParser() { + } + } + +-void PdfParser::parse(Object *obj, GBool topLevel) { ++void PdfParser::parse(Object *obj, bool topLevel) { + Object obj2; + + if (obj->isArray()) { +@@ -434,13 +433,13 @@ 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 Parser(xref, new Lexer(xref, obj), false); + go(topLevel); + delete parser; + parser = NULL; + } + +-void PdfParser::go(GBool /*topLevel*/) ++void PdfParser::go(bool /*topLevel*/) + { + Object obj; + Object args[maxArgs]; +@@ -572,7 +571,7 @@ const char *PdfParser::getPreviousOperator(unsigned in + + void PdfParser::execOp(Object *cmd, Object args[], int numArgs) { + PdfOperator *op; +- char *name; ++ const char *name; + Object *argPtr; + int i; + +@@ -620,7 +619,7 @@ void PdfParser::execOp(Object *cmd, Object args[], int + (this->*op->func)(argPtr, numArgs); + } + +-PdfOperator* PdfParser::findOp(char *name) { ++PdfOperator* PdfParser::findOp(const char *name) { + int a = -1; + int b = numOps; + int cmp = -1; +@@ -640,7 +639,7 @@ PdfOperator* PdfParser::findOp(char *name) { + return &opTab[a]; + } + +-GBool PdfParser::checkArg(Object *arg, TchkType type) { ++bool PdfParser::checkArg(Object *arg, TchkType type) { + switch (type) { + case tchkBool: return arg->isBool(); + case tchkInt: return arg->isInt(); +@@ -650,9 +649,9 @@ GBool PdfParser::checkArg(Object *arg, TchkType type) + case tchkArray: return arg->isArray(); + case tchkProps: return arg->isDict() || arg->isName(); + case tchkSCN: return arg->isNum() || arg->isName(); +- case tchkNone: return gFalse; ++ case tchkNone: return false; + } +- return gFalse; ++ return false; + } + + int PdfParser::getPos() { +@@ -707,7 +706,7 @@ void PdfParser::opConcat(Object args[], int /*numArgs* + builder->pushGroup(); + builder->setTransform(a0, a1, a2, a3, a4, a5); + } +- fontChanged = gTrue; ++ fontChanged = true; + } + + // TODO not good that numArgs is ignored but args[] is used: +@@ -773,8 +772,8 @@ void PdfParser::opSetExtGState(Object args[], int /*nu + Object obj1, obj2, obj3, obj4, obj5; + Function *funcs[4] = {0, 0, 0, 0}; + GfxColor backdropColor; +- GBool haveBackdropColor = gFalse; +- GBool alpha = gFalse; ++ bool haveBackdropColor = false; ++ bool alpha = false; + + #if defined(POPPLER_NEW_OBJECT_API) + if ((obj1 = res->lookupGState(args[0].getName())).isNull()) { +@@ -830,7 +829,7 @@ void PdfParser::opSetExtGState(Object args[], int /*nu + #endif + + // fill/stroke overprint +- GBool haveFillOP = gFalse; ++ bool haveFillOP = false; + #if defined(POPPLER_NEW_OBJECT_API) + if ((haveFillOP = (obj2 = obj1.dictLookup(const_cast<char*>("op"))).isBool())) { + #else +@@ -925,9 +924,9 @@ void PdfParser::opSetExtGState(Object args[], int /*nu + #else + if (obj2.dictLookup(const_cast<char*>("S"), &obj3)->isName(const_cast<char*>("Alpha"))) { + #endif +- alpha = gTrue; ++ alpha = true; + } else { // "Luminosity" +- alpha = gFalse; ++ alpha = false; + } + #if !defined(POPPLER_NEW_OBJECT_API) + obj3.free(); +@@ -978,8 +977,8 @@ void PdfParser::opSetExtGState(Object args[], int /*nu + if (obj3.streamGetDict()->lookup(const_cast<char*>("Group"), &obj4)->isDict()) { + #endif + GfxColorSpace *blendingColorSpace = 0; +- GBool isolated = gFalse; +- GBool knockout = gFalse; ++ bool isolated = false; ++ bool knockout = false; + #if defined(POPPLER_NEW_OBJECT_API) + if (!((obj5 = obj4.dictLookup(const_cast<char*>("CS"))).isNull())) { + #else +@@ -1050,9 +1049,9 @@ void PdfParser::opSetExtGState(Object args[], int /*nu + #endif + } + +-void PdfParser::doSoftMask(Object *str, GBool alpha, ++void PdfParser::doSoftMask(Object *str, bool alpha, + GfxColorSpace *blendingColorSpace, +- GBool isolated, GBool knockout, ++ bool isolated, bool knockout, + Function *transferFunc, GfxColor *backdropColor) { + Dict *dict, *resDict; + double m[6], bbox[4]; +@@ -1145,7 +1144,7 @@ void PdfParser::doSoftMask(Object *str, GBool alpha, + + // draw it + ++formDepth; +- doForm1(str, resDict, m, bbox, gTrue, gTrue, ++ doForm1(str, resDict, m, bbox, true, true, + blendingColorSpace, isolated, knockout, + alpha, transferFunc, backdropColor); + --formDepth; +@@ -1615,7 +1614,7 @@ void PdfParser::opFill(Object /*args*/[], int /*numArg + if (state->isPath()) { + if (state->getFillColorSpace()->getMode() == csPattern && + !builder->isPatternTypeSupported(state->getFillPattern())) { +- doPatternFillFallback(gFalse); ++ doPatternFillFallback(false); + } else { + builder->addPath(state, true, false); + } +@@ -1632,7 +1631,7 @@ void PdfParser::opEOFill(Object /*args*/[], int /*numA + if (state->isPath()) { + if (state->getFillColorSpace()->getMode() == csPattern && + !builder->isPatternTypeSupported(state->getFillPattern())) { +- doPatternFillFallback(gTrue); ++ doPatternFillFallback(true); + } else { + builder->addPath(state, true, false, true); + } +@@ -1647,7 +1646,7 @@ void PdfParser::opFillStroke(Object /*args*/[], int /* + return; + } + if (state->isPath()) { +- doFillAndStroke(gFalse); ++ doFillAndStroke(false); + } else { + builder->addPath(state, true, true); + } +@@ -1662,7 +1661,7 @@ void PdfParser::opCloseFillStroke(Object /*args*/[], i + } + if (state->isPath()) { + state->closePath(); +- doFillAndStroke(gFalse); ++ doFillAndStroke(false); + } + doEndPath(); + } +@@ -1674,7 +1673,7 @@ void PdfParser::opEOFillStroke(Object /*args*/[], int + return; + } + if (state->isPath()) { +- doFillAndStroke(gTrue); ++ doFillAndStroke(true); + } + doEndPath(); + } +@@ -1687,20 +1686,20 @@ void PdfParser::opCloseEOFillStroke(Object /*args*/[], + } + if (state->isPath()) { + state->closePath(); +- doFillAndStroke(gTrue); ++ doFillAndStroke(true); + } + doEndPath(); + } + +-void PdfParser::doFillAndStroke(GBool eoFill) { +- GBool fillOk = gTrue, strokeOk = gTrue; ++void PdfParser::doFillAndStroke(bool eoFill) { ++ bool fillOk = true, strokeOk = true; + if (state->getFillColorSpace()->getMode() == csPattern && + !builder->isPatternTypeSupported(state->getFillPattern())) { +- fillOk = gFalse; ++ fillOk = false; + } + if (state->getStrokeColorSpace()->getMode() == csPattern && + !builder->isPatternTypeSupported(state->getStrokePattern())) { +- strokeOk = gFalse; ++ strokeOk = false; + } + if (fillOk && strokeOk) { + builder->addPath(state, true, true, eoFill); +@@ -1710,7 +1709,7 @@ void PdfParser::doFillAndStroke(GBool eoFill) { + } + } + +-void PdfParser::doPatternFillFallback(GBool eoFill) { ++void PdfParser::doPatternFillFallback(bool eoFill) { + GfxPattern *pattern; + + if (!(pattern = state->getFillPattern())) { +@@ -1720,7 +1719,7 @@ void PdfParser::doPatternFillFallback(GBool eoFill) { + case 1: + break; + case 2: +- doShadingPatternFillFallback(static_cast<GfxShadingPattern *>(pattern), gFalse, eoFill); ++ doShadingPatternFillFallback(static_cast<GfxShadingPattern *>(pattern), false, eoFill); + break; + default: + error(errUnimplemented, getPos(), "Unimplemented pattern type (%d) in fill", +@@ -1739,7 +1738,7 @@ void PdfParser::doPatternStrokeFallback() { + case 1: + break; + case 2: +- doShadingPatternFillFallback(static_cast<GfxShadingPattern *>(pattern), gTrue, gFalse); ++ doShadingPatternFillFallback(static_cast<GfxShadingPattern *>(pattern), true, false); + break; + default: + error(errUnimplemented, getPos(), "Unimplemented pattern type ({0:d}) in stroke", +@@ -1749,10 +1748,10 @@ void PdfParser::doPatternStrokeFallback() { + } + + void PdfParser::doShadingPatternFillFallback(GfxShadingPattern *sPat, +- GBool stroke, GBool eoFill) { ++ bool stroke, bool eoFill) { + GfxShading *shading; + GfxPath *savedPath; +- double *ctm, *btm, *ptm; ++ const double *ctm, *btm, *ptm; + double m[6], ictm[6], m1[6]; + double xMin, yMin, xMax, yMax; + double det; +@@ -1863,7 +1862,7 @@ void PdfParser::opShFill(Object args[], int /*numArgs* + double xTemp, yTemp; + double gradientTransform[6]; + double *matrix = NULL; +- GBool savedState = gFalse; ++ bool savedState = false; + + #if defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) + if (!(shading = res->lookupShading(args[0].getName(), NULL, NULL))) { +@@ -1879,13 +1878,13 @@ void PdfParser::opShFill(Object args[], int /*numArgs* + if (shading->getType() != 2 && shading->getType() != 3) { + savedPath = state->getPath()->copy(); + saveState(); +- savedState = gTrue; ++ savedState = true; + } else { // get gradient transform if possible + // check proper operator sequence + // first there should be one W(*) and then one 'cm' somewhere before 'sh' +- GBool seenClip, seenConcat; ++ bool seenClip, seenConcat; + seenClip = (clipHistory->getClipPath() != NULL); +- seenConcat = gFalse; ++ seenConcat = false; + int i = 1; + while (i <= maxOperatorHistoryDepth) { + const char *opName = getPreviousOperator(i); +@@ -1893,7 +1892,7 @@ void PdfParser::opShFill(Object args[], int /*numArgs* + if (seenConcat) { // more than one 'cm' + break; + } else { +- seenConcat = gTrue; ++ seenConcat = true; + } + } + i++; +@@ -1994,7 +1993,7 @@ void PdfParser::doFunctionShFill1(GfxFunctionShading * + GfxColor color0M, color1M, colorM0, colorM1, colorMM; + GfxColor colors2[4]; + double functionColorDelta = colorDeltas[pdfFunctionShading-1]; +- double *matrix; ++ const double *matrix; + double xM, yM; + int nComps, i, j; + +@@ -2174,7 +2173,7 @@ void PdfParser::doPatchMeshShFill(GfxPatchMeshShading + } + } + +-void PdfParser::fillPatch(GfxPatch *patch, int nComps, int depth) { ++void PdfParser::fillPatch(_POPPLER_CONST GfxPatch *patch, int nComps, int depth) { + GfxPatch patch00 = blankPatch(); + GfxPatch patch01 = blankPatch(); + GfxPatch patch10 = blankPatch(); +@@ -2348,7 +2347,7 @@ void PdfParser::opBeginText(Object /*args*/[], int /*n + state->setTextMat(1, 0, 0, 1, 0, 0); + state->textMoveTo(0, 0); + builder->updateTextPosition(0.0, 0.0); +- fontChanged = gTrue; ++ fontChanged = true; + builder->beginTextObject(state); + } + +@@ -2376,20 +2375,20 @@ void PdfParser::opSetFont(Object args[], int /*numArgs + // unsetting the font (drawing no text) is better than using the + // previous one and drawing random glyphs from it + state->setFont(NULL, args[1].getNum()); +- fontChanged = gTrue; ++ fontChanged = true; + return; + } + if (printCommands) { + printf(" font: tag=%s name='%s' %g\n", +- font->getTag()->getCString(), +- font->getName() ? font->getName()->getCString() : "???", ++ font->getTag()->c_str(), ++ font->getName() ? font->getName()->c_str() : "???", + args[1].getNum()); + fflush(stdout); + } + + font->incRefCnt(); + state->setFont(font, args[1].getNum()); +- fontChanged = gTrue; ++ fontChanged = true; + } + + // TODO not good that numArgs is ignored but args[] is used: +@@ -2422,7 +2421,7 @@ void PdfParser::opSetHorizScaling(Object args[], int / + { + state->setHorizScaling(args[0].getNum()); + builder->updateTextMatrix(state); +- fontChanged = gTrue; ++ fontChanged = true; + } + + //------------------------------------------------------------------------ +@@ -2462,7 +2461,7 @@ void PdfParser::opSetTextMatrix(Object args[], int /*n + state->textMoveTo(0, 0); + builder->updateTextMatrix(state); + builder->updateTextPosition(0.0, 0.0); +- fontChanged = gTrue; ++ fontChanged = true; + } + + void PdfParser::opTextNextLine(Object /*args*/[], int /*numArgs*/) +@@ -2488,7 +2487,7 @@ void PdfParser::opShowText(Object args[], int /*numArg + } + if (fontChanged) { + builder->updateFont(state); +- fontChanged = gFalse; ++ fontChanged = false; + } + doShowText(args[0].getString()); + } +@@ -2505,7 +2504,7 @@ void PdfParser::opMoveShowText(Object args[], int /*nu + } + if (fontChanged) { + builder->updateFont(state); +- fontChanged = gFalse; ++ fontChanged = false; + } + tx = state->getLineX(); + ty = state->getLineY() - state->getLeading(); +@@ -2526,7 +2525,7 @@ void PdfParser::opMoveSetShowText(Object args[], int / + } + if (fontChanged) { + builder->updateFont(state); +- fontChanged = gFalse; ++ fontChanged = false; + } + state->setWordSpace(args[0].getNum()); + state->setCharSpace(args[1].getNum()); +@@ -2550,7 +2549,7 @@ void PdfParser::opShowSpaceText(Object args[], int /*n + } + if (fontChanged) { + builder->updateFont(state); +- fontChanged = gFalse; ++ fontChanged = false; + } + wMode = state->getFont()->getWMode(); + a = args[0].getArray(); +@@ -2582,7 +2581,7 @@ void PdfParser::opShowSpaceText(Object args[], int /*n + } + } + +-void PdfParser::doShowText(GooString *s) { ++void PdfParser::doShowText(const GooString *s) { + GfxFont *font; + int wMode; + double riseX, riseY; +@@ -2591,11 +2590,11 @@ void PdfParser::doShowText(GooString *s) { + double x, y, dx, dy, tdx, tdy; + double originX, originY, tOriginX, tOriginY; + double oldCTM[6], newCTM[6]; +- double *mat; ++ const double *mat; + Object charProc; + Dict *resDict; + Parser *oldParser; +- char *p; ++ const char *p; + int len, n, uLen; + + font = state->getFont(); +@@ -2631,7 +2630,7 @@ void PdfParser::doShowText(GooString *s) { + double lineX = state->getLineX(); + double lineY = state->getLineY(); + oldParser = parser; +- p = s->getCString(); ++ p = s->c_str(); + len = s->getLength(); + while (len > 0) { + n = font->getNextChar(p, len, &code, +@@ -2660,7 +2659,7 @@ void PdfParser::doShowText(GooString *s) { + pushResources(resDict); + } + if (charProc.isStream()) { +- //parse(&charProc, gFalse); // TODO: parse into SVG font ++ //parse(&charProc, false); // TODO: parse into SVG font + } else { + error(errSyntaxError, getPos(), "Missing or bad Type3 CharProc entry"); + } +@@ -2686,7 +2685,7 @@ void PdfParser::doShowText(GooString *s) { + + } else { + state->textTransformDelta(0, state->getRise(), &riseX, &riseY); +- p = s->getCString(); ++ p = s->c_str(); + len = s->getLength(); + while (len > 0) { + n = font->getNextChar(p, len, &code, +@@ -2732,7 +2731,7 @@ void PdfParser::opXObject(Object args[], int /*numArgs + { + Object obj1, obj2, obj3, refObj; + +- char *name = args[0].getName(); ++ const char *name = args[0].getName(); + #if defined(POPPLER_NEW_OBJECT_API) + if ((obj1 = res->lookupXObject(name)).isNull()) { + #else +@@ -2758,7 +2757,7 @@ void PdfParser::opXObject(Object args[], int /*numArgs + #else + res->lookupXObjectNF(name, &refObj); + #endif +- doImage(&refObj, obj1.getStream(), gFalse); ++ doImage(&refObj, obj1.getStream(), false); + #if !defined(POPPLER_NEW_OBJECT_API) + refObj.free(); + #endif +@@ -2783,19 +2782,19 @@ void PdfParser::opXObject(Object args[], int /*numArgs + #endif + } + +-void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg) ++void PdfParser::doImage(Object * /*ref*/, Stream *str, bool inlineImg) + { + Dict *dict; + int width, height; + int bits; +- GBool interpolate; ++ bool interpolate; + StreamColorSpaceMode csMode; +- GBool mask; +- GBool invert; ++ bool mask; ++ bool invert; + Object maskObj, smaskObj; +- GBool haveColorKeyMask, haveExplicitMask, haveSoftMask; +- GBool maskInvert; +- GBool maskInterpolate; ++ bool haveColorKeyMask, haveExplicitMask, haveSoftMask; ++ bool maskInvert; ++ bool maskInterpolate; + Object obj1, obj2; + + // get info from the stream +@@ -2873,11 +2872,11 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + if (obj1.isBool()) + interpolate = obj1.getBool(); + else +- interpolate = gFalse; ++ interpolate = false; + #if !defined(POPPLER_NEW_OBJECT_API) + obj1.free(); + #endif +- maskInterpolate = gFalse; ++ maskInterpolate = false; + + // image or mask? + #if defined(POPPLER_NEW_OBJECT_API) +@@ -2893,7 +2892,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + dict->lookup(const_cast<char*>("IM"), &obj1); + #endif + } +- mask = gFalse; ++ mask = false; + if (obj1.isBool()) { + mask = obj1.getBool(); + } +@@ -2937,7 +2936,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + if (bits != 1) { + goto err1; + } +- invert = gFalse; ++ invert = false; + #if defined(POPPLER_NEW_OBJECT_API) + obj1 = dict->lookup(const_cast<char*>("Decode")); + #else +@@ -2958,7 +2957,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + obj1.arrayGet(0, &obj2); + #endif + if (obj2.isInt() && obj2.getInt() == 1) { +- invert = gTrue; ++ invert = true; + } + #if !defined(POPPLER_NEW_OBJECT_API) + obj2.free(); +@@ -3055,11 +3054,11 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + + // get the mask + int maskColors[2*gfxColorMaxComps]; +- haveColorKeyMask = haveExplicitMask = haveSoftMask = gFalse; ++ haveColorKeyMask = haveExplicitMask = haveSoftMask = false; + Stream *maskStr = NULL; + int maskWidth = 0; + int maskHeight = 0; +- maskInvert = gFalse; ++ maskInvert = false; + GfxImageColorMap *maskColorMap = NULL; + #if defined(POPPLER_NEW_OBJECT_API) + maskObj = dict->lookup(const_cast<char*>("Mask")); +@@ -3146,7 +3145,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + if (obj1.isBool()) + maskInterpolate = obj1.getBool(); + else +- maskInterpolate = gFalse; ++ maskInterpolate = false; + #if defined(POPPLER_NEW_OBJECT_API) + obj1 = maskDict->lookup(const_cast<char*>("ColorSpace")); + #else +@@ -3215,7 +3214,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + goto err1; + } + //~ handle the Matte entry +- haveSoftMask = gTrue; ++ haveSoftMask = true; + } else if (maskObj.isArray()) { + // color key mask + int i; +@@ -3230,7 +3229,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + obj1.free(); + #endif + } +- haveColorKeyMask = gTrue; ++ haveColorKeyMask = true; + } else if (maskObj.isStream()) { + // explicit mask + if (inlineImg) { +@@ -3307,11 +3306,11 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + if (obj1.isBool()) + maskInterpolate = obj1.getBool(); + else +- maskInterpolate = gFalse; ++ maskInterpolate = false; + #if !defined(POPPLER_NEW_OBJECT_API) + obj1.free(); + #endif +- maskInvert = gFalse; ++ maskInvert = false; + #if defined(POPPLER_NEW_OBJECT_API) + obj1 = maskDict->lookup(const_cast<char*>("Decode")); + #else +@@ -3332,7 +3331,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + obj1.arrayGet(0, &obj2); + #endif + if (obj2.isInt() && obj2.getInt() == 1) { +- maskInvert = gTrue; ++ maskInvert = true; + } + #if !defined(POPPLER_NEW_OBJECT_API) + obj2.free(); +@@ -3343,7 +3342,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + #if !defined(POPPLER_NEW_OBJECT_API) + obj1.free(); + #endif +- haveExplicitMask = gTrue; ++ haveExplicitMask = true; + } + + // draw it +@@ -3378,7 +3377,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, + + void PdfParser::doForm(Object *str) { + Dict *dict; +- GBool transpGroup, isolated, knockout; ++ bool transpGroup, isolated, knockout; + GfxColorSpace *blendingColorSpace; + Object matrixObj, bboxObj; + double m[6], bbox[4]; +@@ -3472,7 +3471,7 @@ void PdfParser::doForm(Object *str) { + resDict = resObj.isDict() ? resObj.getDict() : (Dict *)NULL; + + // check for a transparency group +- transpGroup = isolated = knockout = gFalse; ++ transpGroup = isolated = knockout = false; + blendingColorSpace = NULL; + #if defined(POPPLER_NEW_OBJECT_API) + if ((obj1 = dict->lookup(const_cast<char*>("Group"))).isDict()) { +@@ -3481,7 +3480,7 @@ void PdfParser::doForm(Object *str) { + if (dict->lookup(const_cast<char*>("Group"), &obj1)->isDict()) { + if (obj1.dictLookup(const_cast<char*>("S"), &obj2)->isName(const_cast<char*>("Transparency"))) { + #endif +- transpGroup = gTrue; ++ transpGroup = true; + #if defined(POPPLER_NEW_OBJECT_API) + if (!((obj3 = obj1.dictLookup(const_cast<char*>("CS"))).isNull())) { + #else +@@ -3525,7 +3524,7 @@ void PdfParser::doForm(Object *str) { + // draw it + ++formDepth; + doForm1(str, resDict, m, bbox, +- transpGroup, gFalse, blendingColorSpace, isolated, knockout); ++ transpGroup, false, blendingColorSpace, isolated, knockout); + --formDepth; + + if (blendingColorSpace) { +@@ -3537,10 +3536,10 @@ void PdfParser::doForm(Object *str) { + } + + void PdfParser::doForm1(Object *str, Dict *resDict, double *matrix, double *bbox, +- GBool transpGroup, GBool softMask, ++ bool transpGroup, bool softMask, + GfxColorSpace *blendingColorSpace, +- GBool isolated, GBool knockout, +- GBool alpha, Function *transferFunc, ++ bool isolated, bool knockout, ++ bool alpha, Function *transferFunc, + GfxColor *backdropColor) { + Parser *oldParser; + double oldBaseMatrix[6]; +@@ -3601,7 +3600,7 @@ void PdfParser::doForm1(Object *str, Dict *resDict, do + } + + // draw the form +- parse(str, gFalse); ++ parse(str, false); + + // restore base matrix + for (i = 0; i < 6; ++i) { +@@ -3641,7 +3640,7 @@ void PdfParser::opBeginImage(Object /*args*/[], int /* + + // display the image + if (str) { +- doImage(NULL, str, gTrue); ++ doImage(NULL, str, true); + + // skip 'EI' tag + int c1 = str->getUndecodedStream()->getChar(); +@@ -3657,7 +3656,6 @@ void PdfParser::opBeginImage(Object /*args*/[], int /* + Stream *PdfParser::buildImageStream() { + Object dict; + Object obj; +- char *key; + Stream *str; + + // build dictionary +@@ -3675,26 +3673,17 @@ Stream *PdfParser::buildImageStream() { + obj.free(); + #endif + } else { +- key = copyString(obj.getName()); +-#if defined(POPPLER_NEW_OBJECT_API) +- obj = parser->getObj(); +-#else +- obj.free(); +- parser->getObj(&obj); +-#endif +- if (obj.isEOF() || obj.isError()) { +- gfree(key); ++ Object obj2; ++ _POPPLER_CALL(obj2, parser->getObj); ++ if (obj2.isEOF() || obj2.isError()) { ++ _POPPLER_FREE(obj); + break; + } +-#if defined(POPPLER_NEW_OBJECT_API) +- dict.dictAdd(key, std::move(obj)); ++ _POPPLER_DICTADD(dict, obj.getName(), obj2); ++ _POPPLER_FREE(obj); ++ _POPPLER_FREE(obj2); + } +- obj = parser->getObj(); +-#else +- dict.dictAdd(key, &obj); +- } +- parser->getObj(&obj); +-#endif ++ _POPPLER_CALL(obj, parser->getObj); + } + if (obj.isEOF()) { + error(errSyntaxError, getPos(), "End of file in inline image"); +@@ -3710,10 +3699,10 @@ Stream *PdfParser::buildImageStream() { + + // make stream + #if defined(POPPLER_NEW_OBJECT_API) +- str = new EmbedStream(parser->getStream(), dict.copy(), gFalse, 0); ++ str = new EmbedStream(parser->getStream(), dict.copy(), false, 0); + str = str->addFilters(dict.getDict()); + #else +- str = new EmbedStream(parser->getStream(), &dict, gFalse, 0); ++ str = new EmbedStream(parser->getStream(), &dict, false, 0); + str = str->addFilters(&dict); + #endif + +--- src/extension/internal/pdfinput/pdf-parser.h.orig 2018-03-11 20:38:09 UTC ++++ src/extension/internal/pdfinput/pdf-parser.h +@@ -9,6 +9,7 @@ + #define PDF_PARSER_H + + #ifdef HAVE_POPPLER ++#include "poppler-transition-api.h" + + #ifdef USE_GCC_PRAGMAS + #pragma interface +@@ -96,7 +97,7 @@ struct PdfOperator { + struct OpHistoryEntry { + const char *name; // operator's name + GfxState *state; // saved state, NULL if none +- GBool executed; // whether the operator has been executed ++ bool executed; // whether the operator has been executed + + OpHistoryEntry *next; // next entry on stack + unsigned depth; // total number of entries descending from this +@@ -127,16 +128,19 @@ class PdfParser { (public) + + // Constructor for regular output. + PdfParser(XRef *xrefA, SvgBuilder *builderA, int pageNum, int rotate, +- Dict *resDict, PDFRectangle *box, PDFRectangle *cropBox); ++ Dict *resDict, ++ _POPPLER_CONST PDFRectangle *box, ++ _POPPLER_CONST PDFRectangle *cropBox); + + // Constructor for a sub-page object. + PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *builderA, +- Dict *resDict, PDFRectangle *box); ++ Dict *resDict, ++ _POPPLER_CONST PDFRectangle *box); + + virtual ~PdfParser(); + + // Interpret a stream or array of streams. +- void parse(Object *obj, GBool topLevel = gTrue); ++ void parse(Object *obj, bool topLevel = true); + + // Save graphics state. + void saveState(); +@@ -154,12 +158,12 @@ class PdfParser { (public) + + XRef *xref; // the xref table for this PDF file + SvgBuilder *builder; // SVG generator +- GBool subPage; // is this a sub-page object? +- GBool printCommands; // print the drawing commands (for debugging) ++ bool subPage; // is this a sub-page object? ++ bool printCommands; // print the drawing commands (for debugging) + GfxResources *res; // resource stack + + GfxState *state; // current graphics state +- GBool fontChanged; // set if font or text matrix has changed ++ bool fontChanged; // set if font or text matrix has changed + GfxClipType clip; // do a clip? + int ignoreUndef; // current BX/EX nesting level + double baseMatrix[6]; // default matrix for most recent +@@ -183,10 +187,10 @@ class PdfParser { (public) + OpHistoryEntry *popOperator(); + const char *getPreviousOperator(unsigned int look_back=1); // returns the nth previous operator's name + +- void go(GBool topLevel); ++ void go(bool topLevel); + void execOp(Object *cmd, Object args[], int numArgs); +- PdfOperator *findOp(char *name); +- GBool checkArg(Object *arg, TchkType type); ++ PdfOperator *findOp(const char *name); ++ bool checkArg(Object *arg, TchkType type); + int getPos(); + + // graphics state operators +@@ -200,9 +204,9 @@ class PdfParser { (public) + void opSetMiterLimit(Object args[], int numArgs); + void opSetLineWidth(Object args[], int numArgs); + void opSetExtGState(Object args[], int numArgs); +- void doSoftMask(Object *str, GBool alpha, ++ void doSoftMask(Object *str, bool alpha, + GfxColorSpace *blendingColorSpace, +- GBool isolated, GBool knockout, ++ bool isolated, bool knockout, + Function *transferFunc, GfxColor *backdropColor); + void opSetRenderingIntent(Object args[], int numArgs); + +@@ -239,11 +243,11 @@ class PdfParser { (public) + void opCloseFillStroke(Object args[], int numArgs); + void opEOFillStroke(Object args[], int numArgs); + void opCloseEOFillStroke(Object args[], int numArgs); +- void doFillAndStroke(GBool eoFill); +- void doPatternFillFallback(GBool eoFill); ++ void doFillAndStroke(bool eoFill); ++ void doPatternFillFallback(bool eoFill); + void doPatternStrokeFallback(); + void doShadingPatternFillFallback(GfxShadingPattern *sPat, +- GBool stroke, GBool eoFill); ++ bool stroke, bool eoFill); + void opShFill(Object args[], int numArgs); + void doFunctionShFill(GfxFunctionShading *shading); + void doFunctionShFill1(GfxFunctionShading *shading, +@@ -256,7 +260,7 @@ class PdfParser { (public) + double x2, double y2, GfxColor *color2, + int nComps, int depth); + void doPatchMeshShFill(GfxPatchMeshShading *shading); +- void fillPatch(GfxPatch *patch, int nComps, int depth); ++ void fillPatch(_POPPLER_CONST GfxPatch *patch, int nComps, int depth); + void doEndPath(); + + // path clipping operators +@@ -287,17 +291,17 @@ class PdfParser { (public) + void opMoveShowText(Object args[], int numArgs); + void opMoveSetShowText(Object args[], int numArgs); + void opShowSpaceText(Object args[], int numArgs); +- void doShowText(GooString *s); ++ void doShowText(const GooString *s); + + // XObject operators + void opXObject(Object args[], int numArgs); +- void doImage(Object *ref, Stream *str, GBool inlineImg); ++ void doImage(Object *ref, Stream *str, bool inlineImg); + void doForm(Object *str); + void doForm1(Object *str, Dict *resDict, double *matrix, double *bbox, +- GBool transpGroup = gFalse, GBool softMask = gFalse, ++ bool transpGroup = false, bool softMask = false, + GfxColorSpace *blendingColorSpace = NULL, +- GBool isolated = gFalse, GBool knockout = gFalse, +- GBool alpha = gFalse, Function *transferFunc = NULL, ++ bool isolated = false, bool knockout = false, ++ bool alpha = false, Function *transferFunc = NULL, + GfxColor *backdropColor = NULL); + + // in-line image operators +--- src/extension/internal/pdfinput/poppler-transition-api.h.orig 2018-12-09 09:09:13 UTC ++++ src/extension/internal/pdfinput/poppler-transition-api.h +@@ -0,0 +1,39 @@ ++#ifndef SEEN_POPPLER_TRANSITION_API_H ++#define SEEN_POPPLER_TRANSITION_API_H ++ ++#include <glib/poppler-features.h> ++ ++#if POPPLER_CHECK_VERSION(0,70,0) ++#define _POPPLER_CONST const ++#else ++#define _POPPLER_CONST ++#endif ++ ++#if POPPLER_CHECK_VERSION(0,69,0) ++#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(key, std::move(obj)) ++#elif POPPLER_CHECK_VERSION(0,58,0) ++#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(copyString(key), std::move(obj)) ++#else ++#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(copyString(key), &obj) ++#endif ++ ++#if POPPLER_CHECK_VERSION(0,58,0) ++#define POPPLER_NEW_OBJECT_API ++#define _POPPLER_FREE(obj) ++#define _POPPLER_CALL(ret, func) (ret = func()) ++#define _POPPLER_CALL_ARGS(ret, func, ...) (ret = func(__VA_ARGS__)) ++#else ++#define _POPPLER_FREE(obj) (obj).free() ++#define _POPPLER_CALL(ret, func) (*func(&ret)) ++#define _POPPLER_CALL_ARGS(ret, func, ...) (*func(__VA_ARGS__, &ret)) ++#endif ++ ++#if POPPLER_CHECK_VERSION(0, 29, 0) ++#define POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API ++#endif ++ ++#if POPPLER_CHECK_VERSION(0, 25, 0) ++#define POPPLER_EVEN_NEWER_COLOR_SPACE_API ++#endif ++ ++#endif +--- src/extension/internal/pdfinput/svg-builder.cpp.orig 2018-03-11 20:38:09 UTC ++++ src/extension/internal/pdfinput/svg-builder.cpp +@@ -625,7 +625,7 @@ gchar *SvgBuilder::_createPattern(GfxPattern *pattern, + if ( pattern != NULL ) { + if ( pattern->getType() == 2 ) { // Shading pattern + GfxShadingPattern *shading_pattern = static_cast<GfxShadingPattern *>(pattern); +- double *ptm; ++ const double *ptm; + double m[6] = {1, 0, 0, 1, 0, 0}; + double det; + +@@ -672,7 +672,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPatte + + Inkscape::XML::Node *pattern_node = _xml_doc->createElement("svg:pattern"); + // Set pattern transform matrix +- double *p2u = tiling_pattern->getMatrix(); ++ const double *p2u = tiling_pattern->getMatrix(); + double m[6] = {1, 0, 0, 1, 0, 0}; + double det; + det = _ttm[0] * _ttm[3] - _ttm[1] * _ttm[2]; // see LP Bug 1168908 +@@ -698,7 +698,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPatte + pattern_node->setAttribute("patternUnits", "userSpaceOnUse"); + // Set pattern tiling + // FIXME: don't ignore XStep and YStep +- double *bbox = tiling_pattern->getBBox(); ++ const double *bbox = tiling_pattern->getBBox(); + sp_repr_set_svg_double(pattern_node, "x", 0.0); + sp_repr_set_svg_double(pattern_node, "y", 0.0); + sp_repr_set_svg_double(pattern_node, "width", bbox[2] - bbox[0]); +@@ -751,7 +751,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPatte + */ + gchar *SvgBuilder::_createGradient(GfxShading *shading, double *matrix, bool for_shading) { + Inkscape::XML::Node *gradient; +- Function *func; ++ _POPPLER_CONST Function *func; + int num_funcs; + bool extend0, extend1; + +@@ -865,7 +865,7 @@ static bool svgGetShadingColorRGB(GfxShading *shading, + + #define INT_EPSILON 8 + bool SvgBuilder::_addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading, +- Function *func) { ++ _POPPLER_CONST Function *func) { + int type = func->getType(); + if ( type == 0 || type == 2 ) { // Sampled or exponential function + GfxRGB stop1, stop2; +@@ -877,9 +877,9 @@ bool SvgBuilder::_addGradientStops(Inkscape::XML::Node + _addStopToGradient(gradient, 1.0, &stop2, 1.0); + } + } else if ( type == 3 ) { // Stitching +- StitchingFunction *stitchingFunc = static_cast<StitchingFunction*>(func); +- double *bounds = stitchingFunc->getBounds(); +- double *encode = stitchingFunc->getEncode(); ++ auto stitchingFunc = static_cast<_POPPLER_CONST StitchingFunction*>(func); ++ const double *bounds = stitchingFunc->getBounds(); ++ const double *encode = stitchingFunc->getEncode(); + int num_funcs = stitchingFunc->getNumFuncs(); + + // Add stops from all the stitched functions +@@ -890,7 +890,7 @@ bool SvgBuilder::_addGradientStops(Inkscape::XML::Node + svgGetShadingColorRGB(shading, bounds[i + 1], &color); + // Add stops + if (stitchingFunc->getFunc(i)->getType() == 2) { // process exponential fxn +- double expE = (static_cast<ExponentialFunction*>(stitchingFunc->getFunc(i)))->getE(); ++ double expE = (static_cast<_POPPLER_CONST ExponentialFunction*>(stitchingFunc->getFunc(i)))->getE(); + if (expE > 1.0) { + expE = (bounds[i + 1] - bounds[i])/expE; // approximate exponential as a single straight line at x=1 + if (encode[2*i] == 0) { // normal sequence +@@ -1020,7 +1020,7 @@ void SvgBuilder::updateFont(GfxState *state) { + GfxFont *font = state->getFont(); + // Store original name + if (font->getName()) { +- _font_specification = font->getName()->getCString(); ++ _font_specification = g_strdup(font->getName()->c_str()); + } else { + _font_specification = (char*) "Arial"; + } +@@ -1047,7 +1047,7 @@ void SvgBuilder::updateFont(GfxState *state) { + + // Font family + if (font->getFamily()) { // if font family is explicitly given use it. +- sp_repr_css_set_property(_font_style, "font-family", font->getFamily()->getCString()); ++ sp_repr_css_set_property(_font_style, "font-family", font->getFamily()->c_str()); + } else { + int attr_value = 1; + sp_repr_get_int(_preferences, "localFonts", &attr_value); +@@ -1148,7 +1148,7 @@ void SvgBuilder::updateFont(GfxState *state) { + Inkscape::CSSOStringStream os_font_size; + double css_font_size = _font_scaling * state->getFontSize(); + if ( font->getType() == fontType3 ) { +- double *font_matrix = font->getFontMatrix(); ++ const double *font_matrix = font->getFontMatrix(); + if ( font_matrix[0] != 0.0 ) { + css_font_size *= font_matrix[3] / font_matrix[0]; + } +@@ -1193,7 +1193,7 @@ void SvgBuilder::updateTextPosition(double tx, double + void SvgBuilder::updateTextMatrix(GfxState *state) { + _flushText(); + // Update text matrix +- double *text_matrix = state->getTextMat(); ++ const double *text_matrix = state->getTextMat(); + double w_scale = sqrt( text_matrix[0] * text_matrix[0] + text_matrix[2] * text_matrix[2] ); + double h_scale = sqrt( text_matrix[1] * text_matrix[1] + text_matrix[3] * text_matrix[3] ); + double max_scale; +@@ -1361,7 +1361,7 @@ void SvgBuilder::_flushText() { + _glyphs.clear(); + } + +-void SvgBuilder::beginString(GfxState *state, GooString * /*s*/) { ++void SvgBuilder::beginString(GfxState *state, const GooString * /*s*/) { + if (_need_font_update) { + updateFont(state); + } +--- src/extension/internal/pdfinput/svg-builder.h.orig 2018-03-11 20:38:09 UTC ++++ src/extension/internal/pdfinput/svg-builder.h +@@ -15,6 +15,7 @@ + #endif + + #ifdef HAVE_POPPLER ++#include "poppler-transition-api.h" + + class SPDocument; + namespace Inkscape { +@@ -136,7 +137,7 @@ class SvgBuilder { (public) + void clearSoftMask(GfxState *state); + + // Text handling +- void beginString(GfxState *state, GooString *s); ++ void beginString(GfxState *state, const GooString *s); + void endString(GfxState *state); + void addChar(GfxState *state, double x, double y, + double dx, double dy, +@@ -175,7 +176,7 @@ class SvgBuilder { (public) + void _addStopToGradient(Inkscape::XML::Node *gradient, double offset, + GfxRGB *color, double opacity); + bool _addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading, +- Function *func); ++ _POPPLER_CONST Function *func); + gchar *_createTilingPattern(GfxTilingPattern *tiling_pattern, GfxState *state, + bool is_stroke=false); + // Image/mask creation diff --git a/graphics/inkscape/files/patch-src_libnrtype_FontFactory.cpp b/graphics/inkscape/files/patch-src_libnrtype_FontFactory.cpp index a6c5ac90e45b..6511674a7aac 100644 --- a/graphics/inkscape/files/patch-src_libnrtype_FontFactory.cpp +++ b/graphics/inkscape/files/patch-src_libnrtype_FontFactory.cpp @@ -1,6 +1,6 @@ ---- src/libnrtype/FontFactory.cpp.orig 2017-01-05 22:10:01.490293000 +0100 -+++ src/libnrtype/FontFactory.cpp 2017-01-05 22:13:37.547401000 +0100 -@@ -695,8 +695,9 @@ +--- src/libnrtype/FontFactory.cpp.orig 2018-03-11 20:38:09 UTC ++++ src/libnrtype/FontFactory.cpp +@@ -704,8 +704,9 @@ font_instance *font_factory::Face(PangoFontDescription guint script_index = -1; if( pango_ot_info_find_script( info, PANGO_OT_TABLE_GSUB, scripts[i], &script_index )) { diff --git a/graphics/krita/Makefile b/graphics/krita/Makefile index 116f09a4d133..0ee9f891b6c2 100644 --- a/graphics/krita/Makefile +++ b/graphics/krita/Makefile @@ -2,7 +2,7 @@ PORTNAME= krita DISTVERSION= 4.1.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics kde MASTER_SITES= KDE/stable/${PORTNAME}/${DISTVERSION} DIST_SUBDIR= KDE/${PORTNAME} diff --git a/graphics/okular-kde4/Makefile b/graphics/okular-kde4/Makefile index 5a1c21b184d3..a58c3ad57254 100644 --- a/graphics/okular-kde4/Makefile +++ b/graphics/okular-kde4/Makefile @@ -2,7 +2,7 @@ PORTNAME= okular PORTVERSION= ${KDE4_VERSION} -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= graphics kde kde-kde4 MAINTAINER= kde@FreeBSD.org @@ -15,7 +15,6 @@ LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre \ libkscreen.so:graphics/libkscreen \ libqca.so:devel/qca@qt4 \ libtiff.so:graphics/tiff \ - libpoppler-qt4.so:graphics/poppler-qt4 \ libspectre.so:print/libspectre \ libchm.so:misc/chmlib \ libfreetype.so:print/freetype2 \ diff --git a/graphics/okular-kde4/pkg-plist b/graphics/okular-kde4/pkg-plist index 49cd3510367a..34921b80f112 100644 --- a/graphics/okular-kde4/pkg-plist +++ b/graphics/okular-kde4/pkg-plist @@ -44,7 +44,6 @@ lib/kde4/okularGenerator_kimgio.so lib/kde4/okularGenerator_mobi.so lib/kde4/okularGenerator_ooo.so lib/kde4/okularGenerator_plucker.so -lib/kde4/okularGenerator_poppler.so lib/kde4/okularGenerator_tiff.so lib/kde4/okularGenerator_txt.so lib/kde4/okularGenerator_xps.so @@ -63,7 +62,6 @@ share/applications/kde4/active-documentviewer_fb.desktop share/applications/kde4/active-documentviewer_ghostview.desktop share/applications/kde4/active-documentviewer_kimgio.desktop share/applications/kde4/active-documentviewer_ooo.desktop -share/applications/kde4/active-documentviewer_pdf.desktop share/applications/kde4/active-documentviewer_plucker.desktop share/applications/kde4/active-documentviewer_tiff.desktop share/applications/kde4/active-documentviewer_txt.desktop @@ -80,7 +78,6 @@ share/applications/kde4/okularApplication_ghostview.desktop share/applications/kde4/okularApplication_kimgio.desktop share/applications/kde4/okularApplication_mobi.desktop share/applications/kde4/okularApplication_ooo.desktop -share/applications/kde4/okularApplication_pdf.desktop share/applications/kde4/okularApplication_plucker.desktop share/applications/kde4/okularApplication_tiff.desktop share/applications/kde4/okularApplication_txt.desktop @@ -125,7 +122,6 @@ share/apps/okular/tools.xml share/config.kcfg/gssettings.kcfg share/config.kcfg/okular.kcfg share/config.kcfg/okular_core.kcfg -share/config.kcfg/pdfsettings.kcfg share/doc/HTML/en/okular/annotation-properties.png share/doc/HTML/en/okular/annotations.png share/doc/HTML/en/okular/bookmark-management.png @@ -174,7 +170,6 @@ share/kde4/services/libokularGenerator_kimgio.desktop share/kde4/services/libokularGenerator_mobi.desktop share/kde4/services/libokularGenerator_ooo.desktop share/kde4/services/libokularGenerator_plucker.desktop -share/kde4/services/libokularGenerator_poppler.desktop share/kde4/services/libokularGenerator_tiff.desktop share/kde4/services/libokularGenerator_txt.desktop share/kde4/services/libokularGenerator_xps.desktop @@ -191,7 +186,6 @@ share/kde4/services/okularKimgio.desktop share/kde4/services/okularMobi.desktop share/kde4/services/okularOoo.desktop share/kde4/services/okularPlucker.desktop -share/kde4/services/okularPoppler.desktop share/kde4/services/okularTiff.desktop share/kde4/services/okularTxt.desktop share/kde4/services/okularXps.desktop diff --git a/graphics/okular/Makefile b/graphics/okular/Makefile index ba562018944b..d3577d650788 100644 --- a/graphics/okular/Makefile +++ b/graphics/okular/Makefile @@ -2,6 +2,7 @@ PORTNAME= okular DISTVERSION= ${KDE_APPLICATIONS_VERSION} +PORTREVISION= 1 CATEGORIES= graphics kde kde-applications MAINTAINER= kde@FreeBSD.org diff --git a/graphics/openfx-arena/Makefile b/graphics/openfx-arena/Makefile index 2b9827e69cf0..94046062d30d 100644 --- a/graphics/openfx-arena/Makefile +++ b/graphics/openfx-arena/Makefile @@ -3,7 +3,7 @@ PORTNAME= openfx-arena PORTVERSION= 2.3.14 DISTVERSIONPREFIX= Natron- -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MAINTAINER= olivier@FreeBSD.org diff --git a/graphics/poppler-glib/Makefile b/graphics/poppler-glib/Makefile index e5b77019cd97..13ebb1558f82 100644 --- a/graphics/poppler-glib/Makefile +++ b/graphics/poppler-glib/Makefile @@ -2,17 +2,11 @@ # $FreeBSD$ PORTREVISION= 0 -PKGNAMESUFFIX= -glib -MAINTAINER= gnome@FreeBSD.org COMMENT= GLib bindings to poppler MASTERDIR= ${.CURDIR}/../../graphics/poppler -SLAVEPORT= glib +_SLAVE_PORT= glib PLIST= ${.CURDIR}/pkg-plist -pre-build: - @cd ${WRKSRC}/poppler && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ - Makefile ${MAKE_ARGS} libpoppler-cairo.la - .include "${MASTERDIR}/Makefile" diff --git a/graphics/poppler-glib/pkg-plist b/graphics/poppler-glib/pkg-plist index f8a58e3af591..5b5c10e69f89 100644 --- a/graphics/poppler-glib/pkg-plist +++ b/graphics/poppler-glib/pkg-plist @@ -7,6 +7,7 @@ include/poppler/glib/poppler-enums.h include/poppler/glib/poppler-features.h include/poppler/glib/poppler-form-field.h include/poppler/glib/poppler-layer.h +include/poppler/glib/poppler-macros.h include/poppler/glib/poppler-media.h include/poppler/glib/poppler-movie.h include/poppler/glib/poppler-page.h @@ -15,6 +16,6 @@ include/poppler/glib/poppler.h lib/girepository-1.0/Poppler-0.18.typelib lib/libpoppler-glib.so lib/libpoppler-glib.so.8 -lib/libpoppler-glib.so.8.9.0 +lib/libpoppler-glib.so.8.11.0 libdata/pkgconfig/poppler-glib.pc share/gir-1.0/Poppler-0.18.gir diff --git a/graphics/poppler-qt4/Makefile b/graphics/poppler-qt4/Makefile deleted file mode 100644 index 26eec1038873..000000000000 --- a/graphics/poppler-qt4/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# Created by: Michael Johnson <ahze@FreeBSD.org> -# $FreeBSD$ - -PORTREVISION= 1 -PKGNAMESUFFIX= -qt4 - -MAINTAINER= gnome@FreeBSD.org -COMMENT= Qt 4 bindings to poppler - -MASTERDIR= ${.CURDIR}/../../graphics/poppler -SLAVEPORT= qt4 -PLIST= ${.CURDIR}/pkg-plist - -.include "${MASTERDIR}/Makefile" diff --git a/graphics/poppler-qt4/pkg-plist b/graphics/poppler-qt4/pkg-plist deleted file mode 100644 index 7bafd91fc6af..000000000000 --- a/graphics/poppler-qt4/pkg-plist +++ /dev/null @@ -1,13 +0,0 @@ -include/poppler/qt4/poppler-annotation.h -include/poppler/qt4/poppler-export.h -include/poppler/qt4/poppler-form.h -include/poppler/qt4/poppler-link.h -include/poppler/qt4/poppler-link-private.h -include/poppler/qt4/poppler-media.h -include/poppler/qt4/poppler-optcontent.h -include/poppler/qt4/poppler-page-transition.h -include/poppler/qt4/poppler-qt4.h -lib/libpoppler-qt4.so -lib/libpoppler-qt4.so.4 -lib/libpoppler-qt4.so.4.11.0 -libdata/pkgconfig/poppler-qt4.pc diff --git a/graphics/poppler-qt5/Makefile b/graphics/poppler-qt5/Makefile index 955526808ec2..686ee8cf48b0 100644 --- a/graphics/poppler-qt5/Makefile +++ b/graphics/poppler-qt5/Makefile @@ -1,13 +1,12 @@ # $FreeBSD$ -PORTREVISION= 2 +PORTREVISION= 0 PKGNAMESUFFIX= -qt5 -MAINTAINER= gnome@FreeBSD.org COMMENT= Qt 5 bindings to poppler MASTERDIR= ${.CURDIR}/../../graphics/poppler -SLAVEPORT= qt5 +_SLAVE_PORT= qt5 PLIST= ${.CURDIR}/pkg-plist .include "${MASTERDIR}/Makefile" diff --git a/graphics/poppler-qt5/pkg-plist b/graphics/poppler-qt5/pkg-plist index 262e5ecc2a70..ca6e9a5c6ab5 100644 --- a/graphics/poppler-qt5/pkg-plist +++ b/graphics/poppler-qt5/pkg-plist @@ -2,12 +2,11 @@ include/poppler/qt5/poppler-annotation.h include/poppler/qt5/poppler-export.h include/poppler/qt5/poppler-form.h include/poppler/qt5/poppler-link.h -include/poppler/qt5/poppler-link-private.h include/poppler/qt5/poppler-media.h include/poppler/qt5/poppler-optcontent.h include/poppler/qt5/poppler-page-transition.h include/poppler/qt5/poppler-qt5.h lib/libpoppler-qt5.so lib/libpoppler-qt5.so.1 -lib/libpoppler-qt5.so.1.10.0 +lib/libpoppler-qt5.so.1.17.0 libdata/pkgconfig/poppler-qt5.pc diff --git a/graphics/poppler-utils/Makefile b/graphics/poppler-utils/Makefile index 6a400af6346e..67fa87041131 100644 --- a/graphics/poppler-utils/Makefile +++ b/graphics/poppler-utils/Makefile @@ -1,14 +1,12 @@ # Created by: Michael Nottebrock <lofi@FreeBSD.org> # $FreeBSD$ -PORTREVISION= 1 -PKGNAMESUFFIX= -utils +PORTREVISION= 0 -MAINTAINER= gnome@FreeBSD.org -COMMENT= Poppler's xpdf-workalike command line utilities +COMMENT= Poppler's xpdf-workalike command line utilities # ' MASTERDIR= ${.CURDIR}/../../graphics/poppler -SLAVEPORT= utils +_SLAVE_PORT= utils PLIST= ${.CURDIR}/pkg-plist .include "${MASTERDIR}/Makefile" diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile index 56c41478b7a3..62cd431e4f29 100644 --- a/graphics/poppler/Makefile +++ b/graphics/poppler/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= poppler -PORTVERSION= 0.57.0 -PORTREVISION= 2 +DISTVERSION= 0.72.0 CATEGORIES= graphics print MASTER_SITES= http://poppler.freedesktop.org/ @@ -13,136 +12,87 @@ COMMENT?= PDF rendering library LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libpng.so:graphics/png \ - libtiff.so:graphics/tiff \ - libfontconfig.so:x11-fonts/fontconfig \ +LIB_DEPENDS= libnspr4.so:devel/nspr \ liblcms2.so:graphics/lcms2 \ + libpng.so:graphics/png \ + libtiff.so:graphics/tiff \ libfreetype.so:print/freetype2 \ libnss3.so:security/nss \ - libnspr4.so:devel/nspr + libfontconfig.so:x11-fonts/fontconfig RUN_DEPENDS= poppler-data>0:graphics/poppler-data -USES= compiler:c++11-lang cpe gmake jpeg libtool localbase pathfix pkgconfig tar:xz +USES= compiler:c++11-lang cpe cmake gnome jpeg libtool \ + localbase pathfix pkgconfig tar:xz CPE_VENDOR= freedesktop -USE_GNOME= libxml2 -GNU_CONFIGURE= yes +USE_GNOME= cairo libxml2 USE_LDCONFIG= yes -CONFIGURE_ARGS= --enable-zlib \ - --enable-xpdf-headers \ - --disable-libnss \ - --disable-gtk-test \ - --without-html-dir \ - --disable-static \ - --enable-libnss +CMAKE_ON= ENABLE_LIBJPEG \ + ENABLE_LIBPNG \ + ENABLE_LIBTIFF \ + ENABLE_XPDF_HEADERS \ + ENABLE_ZLIB \ + ENABLE_NSS \ + ENABLE_SPLASH -INSTALL_TARGET= install-strip -.if !defined(SLAVEPORT) -PORTSCOUT= limitw:1,even +# Slave ports. +_POPPLER_SLAVES= library glib qt5 utils +_SLAVE_PORT?= library -OPTIONS_DEFINE= CAIRO CURL OPENJPEG -OPTIONS_DEFAULT=CAIRO OPENJPEG +# Activate the wanted module, and deactivate the others. +CMAKE_ON+= ENABLE_${_SLAVE_PORT:tu} +CMAKE_OFF+= ${_POPPLER_SLAVES:N${_SLAVE_PORT}:tu:S/^/ENABLE_/} +.if ${_SLAVE_PORT} == library +PORTSCOUT= limitw:1,even USES+= iconv -.endif - -.include <bsd.port.options.mk> +CMAKE_ON+= ENABLE_CPP -.if defined(SLAVEPORT) -PORTSCOUT= ignore:1 -LIB_DEPENDS+= libpoppler.so:graphics/poppler - -.if ${SLAVEPORT}==glib -CONFIGURE_ARGS+=--enable-poppler-glib --enable-introspection=yes -USE_GNOME+= cairo glib20 introspection:build -BUILD_WRKSRC= ${WRKSRC}/glib -INSTALL_WRKSRC= ${WRKSRC}/glib +OPTIONS_DEFINE= CURL OPENJPEG +OPTIONS_DEFAULT= OPENJPEG +OPTIONS_SUB= yes .else -CONFIGURE_ARGS+=--disable-poppler-glib -.endif +PORTSCOUT= ignore:1 -.if ${SLAVEPORT}==qt4 DEPRECATED= Qt4 has been EOL since december 2015 EXPIRATION_DATE= 2019-03-15 -CONFIGURE_ARGS+=--enable-poppler-qt4 -CONFIGURE_ENV+= MOCQT4=${MOC} -USES+= qt:4 -USE_QT= gui corelib xml qtestlib moc_build -BUILD_WRKSRC= ${WRKSRC}/qt4 -INSTALL_WRKSRC= ${WRKSRC}/qt4 -.else -CONFIGURE_ARGS+=--disable-poppler-qt4 -.endif +LIB_DEPENDS+= libpoppler.so:graphics/poppler +PKGNAMESUFFIX= -${_SLAVE_PORT} -.if ${SLAVEPORT}==qt5 -CONFIGURE_ARGS+=--enable-poppler-qt5 -CONFIGURE_ENV+= MOCQT5=${MOC} -USES+= qt:5 -USE_QT= core gui widgets xml buildtools_build testlib_build -# Qt from 5.7.0 on requires c++11. -USE_CXXSTD= c++11 -BUILD_WRKSRC= ${WRKSRC}/qt5 -INSTALL_WRKSRC= ${WRKSRC}/qt5 -.else -CONFIGURE_ARGS+=--disable-poppler-qt5 -.endif +BUILD_WRKSRC= ${WRKSRC}/${_SLAVE_PORT} +INSTALL_WRKSRC= ${WRKSRC}/${_SLAVE_PORT} -.if ${SLAVEPORT}==utils -LIB_DEPENDS+= libpoppler-glib.so:graphics/poppler-glib -CONFIGURE_ARGS+=--enable-utils -BUILD_WRKSRC= ${WRKSRC}/utils -INSTALL_WRKSRC= ${WRKSRC}/utils -.else -CONFIGURE_ARGS+=--disable-utils -.endif +CMAKE_ARGS+= -DENABLE_LIBOPENJPEG:STRING="none" \ + -DENABLE_LIBCURL:BOOL=FALSE -.else # ! SLAVE options below -CONFIGURE_ARGS+=--disable-poppler-glib \ - --disable-poppler-qt4 \ - --disable-poppler-qt5 \ - --disable-utils - -.if ${PORT_OPTIONS:MCAIRO} -LIB_DEPENDS+= libcairo.so:graphics/cairo -PLIST_SUB+= CAIRO="" -.else -CONFIGURE_ARGS+=--disable-cairo-output -PLIST_SUB+= CAIRO="@comment " -.endif +. if ${_SLAVE_PORT} == glib +USE_GNOME+= glib20 introspection:Build +. elif ${_SLAVE_PORT} == qt5 +USES+= qt:5 +USE_QT= core gui widgets xml \ + buildtools_build qmake_build testlib_build +. elif ${_SLAVE_PORT} == utils +LIB_DEPENDS+= libpoppler-glib.so:graphics/poppler-glib +USES+= gnome +. endif -.if ${PORT_OPTIONS:MCURL} -LIB_DEPENDS+= libcurl.so:ftp/curl -CONFIGURE_ARGS+=--enable-libcurl -PLIST_SUB+= CURL="" -.else -CONFIGURE_ARGS+=--disable-libcurl -PLIST_SUB+= CURL="@comment " .endif -.if ${PORT_OPTIONS:MOPENJPEG} -CONFIGURE_ARGS+=--enable-libopenjpeg=openjpeg2 -LIB_DEPENDS+= libopenjp2.so:graphics/openjpeg -.else -CONFIGURE_ARGS+=--enable-libopenjpeg=none -.endif -.endif # end of options +CURL_CMAKE_BOOL= ENABLE_LIBCURL +CURL_LIB_DEPENDS= libcurl.so:ftp/curl -post-patch: - @${REINPLACE_CMD} -e 's|-fno-check-new||g' ${WRKSRC}/configure +OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg +OPENJPEG_CMAKE_ON= -DENABLE_LIBOPENJPEG:STRING="openjpeg2" +OPENJPEG_CMAKE_OFF= -DENABLE_LIBOPENJPEG:STRING="none" post-install: -.if defined(SLAVEPORT) -. if ${SLAVEPORT}==glib +.if ${_SLAVE_PORT} == glib ${INSTALL_DATA} ${WRKSRC}/poppler-glib.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig -. elif ${SLAVEPORT}==qt4 - ${INSTALL_DATA} ${WRKSRC}/poppler-qt4.pc \ - ${STAGEDIR}${PREFIX}/libdata/pkgconfig -. elif ${SLAVEPORT}==qt5 +.elif ${_SLAVE_PORT} == qt5 ${INSTALL_DATA} ${WRKSRC}/poppler-qt5.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig -. endif .endif .include <bsd.port.mk> diff --git a/graphics/poppler/distinfo b/graphics/poppler/distinfo index 4ca00cb472e0..5d53e8e19678 100644 --- a/graphics/poppler/distinfo +++ b/graphics/poppler/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1503426409 -SHA256 (poppler-0.57.0.tar.xz) = 0ea37de71b7db78212ebc79df59f99b66409a29c2eac4d882dae9f2397fe44d8 -SIZE (poppler-0.57.0.tar.xz) = 1703300 +TIMESTAMP = 1544313959 +SHA256 (poppler-0.72.0.tar.xz) = c1747eb8f26e9e753c4001ed951db2896edc1021b6d0f547a0bd2a27c30ada51 +SIZE (poppler-0.72.0.tar.xz) = 1492912 diff --git a/graphics/poppler/files/patch-CMakeLists.txt b/graphics/poppler/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..33521f482a64 --- /dev/null +++ b/graphics/poppler/files/patch-CMakeLists.txt @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2018-10-07 08:06:59 UTC ++++ CMakeLists.txt +@@ -263,6 +263,7 @@ endif() + + if (NSS3_FOUND) + add_definitions(${NSS3_CFLAGS}) ++ link_directories(${NSS3_LIBRARY_DIRS}) + set(ENABLE_NSS3 ON) + endif() + if(JPEG_FOUND) diff --git a/graphics/poppler/files/patch-configure b/graphics/poppler/files/patch-configure deleted file mode 100644 index 97b51246cc25..000000000000 --- a/graphics/poppler/files/patch-configure +++ /dev/null @@ -1,29 +0,0 @@ ---- configure.orig 2016-07-24 22:14:28 UTC -+++ configure -@@ -20556,7 +20556,7 @@ fi - - ac_save_CPPFLAGS="$CPPFLAGS" - ac_save_CXXFLAGS="$CXXFLAGS" --ac_save_LIBS="$LDFLAGS" -+ac_save_LIBS="$LIBS" - CPPFLAGS="$CPPFLAGS $LIBTIFF_CFLAGS" - CXXFLAGS="$CXXFLAGS $LIBTIFF_CFLAGS" - LIBS="$LIBS $LIBTIFF_LIBS" -@@ -21387,7 +21387,7 @@ if ${ac_cv_lib_jpeg_6b+:} false; then : - else - - ac_save_LIBS="$LIBS" --LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm" -+LIBS="$LIBS $USER_LDFLAGS -ljpeg6b -lm" - ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -@@ -21438,7 +21438,7 @@ if ${ac_cv_lib_jpeg_normal+:} false; the - else - - ac_save_LIBS="$LIBS" --LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm" -+LIBS="$LIBS $USER_LDFLAGS -ljpeg -lm" - ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext diff --git a/graphics/poppler/files/patch-glib_Makefile.in b/graphics/poppler/files/patch-glib_Makefile.in deleted file mode 100644 index a661d044c989..000000000000 --- a/graphics/poppler/files/patch-glib_Makefile.in +++ /dev/null @@ -1,28 +0,0 @@ ---- glib/Makefile.in.orig 2015-01-19 11:51:06.175898921 +0100 -+++ glib/Makefile.in 2015-01-19 11:51:27.026898915 +0100 -@@ -134,7 +134,6 @@ - LTLIBRARIES = $(lib_LTLIBRARIES) - am__DEPENDENCIES_1 = - libpoppler_glib_la_DEPENDENCIES = \ -- $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/poppler/libpoppler-cairo.la \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) - am__objects_1 = libpoppler_glib_la-poppler-enums.lo -@@ -553,7 +552,7 @@ - $(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES) - - libpoppler_glib_la_LIBADD = \ -- $(top_builddir)/poppler/libpoppler.la \ -+ -lpoppler \ - $(top_builddir)/poppler/libpoppler-cairo.la \ - $(POPPLER_GLIB_LIBS) \ - $(FREETYPE_LIBS) -@@ -576,7 +575,7 @@ - @HAVE_INTROSPECTION_TRUE@introspection_files = $(filter-out poppler-private.h poppler-input-stream.h, $(libpoppler_glib_la_SOURCES)) $(poppler_glib_include_HEADERS) $(nodist_poppler_glib_include_HEADERS) - @HAVE_INTROSPECTION_TRUE@Poppler_0_18_gir_INCLUDES = GObject-2.0 Gio-2.0 cairo-1.0 - @HAVE_INTROSPECTION_TRUE@Poppler_0_18_gir_CFLAGS = $(INCLUDES) -I$(top_builddir) --@HAVE_INTROSPECTION_TRUE@Poppler_0_18_gir_LIBS = libpoppler-glib.la $(top_builddir)/poppler/libpoppler.la $(top_builddir)/poppler/libpoppler-cairo.la -+@HAVE_INTROSPECTION_TRUE@Poppler_0_18_gir_LIBS = libpoppler-glib.la poppler $(top_builddir)/poppler/libpoppler-cairo.la - @HAVE_INTROSPECTION_TRUE@Poppler_0_18_gir_FILES = $(introspection_files) - @HAVE_INTROSPECTION_TRUE@Poppler_0_18_gir_SCANNERFLAGS = --c-include poppler.h - @HAVE_INTROSPECTION_TRUE@Poppler_0_18_gir_EXPORT_PACKAGES = poppler-glib diff --git a/graphics/poppler/files/patch-glib_demo_Makefile.in b/graphics/poppler/files/patch-glib_demo_Makefile.in deleted file mode 100644 index 9e5537da8083..000000000000 --- a/graphics/poppler/files/patch-glib_demo_Makefile.in +++ /dev/null @@ -1,20 +0,0 @@ ---- glib/demo/Makefile.in.orig 2012-06-13 13:31:37.000000000 +0200 -+++ glib/demo/Makefile.in 2012-06-13 13:32:45.000000000 +0200 -@@ -66,7 +66,7 @@ - am__DEPENDENCIES_1 = - poppler_glib_demo_DEPENDENCIES = \ - $(top_builddir)/glib/libpoppler-glib.la \ -- $(top_builddir)/poppler/libpoppler.la $(am__DEPENDENCIES_1) -+ $(am__DEPENDENCIES_1) - AM_V_lt = $(am__v_lt_@AM_V@) - am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) - am__v_lt_0 = --silent -@@ -365,7 +365,7 @@ - - LDADD = \ - $(top_builddir)/glib/libpoppler-glib.la \ -- $(top_builddir)/poppler/libpoppler.la \ -+ -lpoppler \ - $(GTK_TEST_LIBS) - - all: all-am diff --git a/graphics/poppler/files/patch-qt4_Makefile.in b/graphics/poppler/files/patch-qt4_Makefile.in deleted file mode 100644 index ffb4777b4074..000000000000 --- a/graphics/poppler/files/patch-qt4_Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- qt4/Makefile.in.orig 2008-03-24 08:30:49.000000000 -0400 -+++ qt4/Makefile.in 2008-03-24 08:30:34.000000000 -0400 -@@ -223,7 +223,7 @@ - sysconfdir = @sysconfdir@ - target_alias = @target_alias@ - win32_libs = @win32_libs@ --SUBDIRS = src tests demos -+SUBDIRS = src - all: all-recursive - - .SUFFIXES: diff --git a/graphics/poppler/files/patch-qt4_src_Makefile.in b/graphics/poppler/files/patch-qt4_src_Makefile.in deleted file mode 100644 index 116cad640328..000000000000 --- a/graphics/poppler/files/patch-qt4_src_Makefile.in +++ /dev/null @@ -1,20 +0,0 @@ ---- qt4/src/Makefile.in.orig 2013-12-02 18:58:51.000000000 +0100 -+++ qt4/src/Makefile.in 2013-12-02 18:59:39.000000000 +0100 -@@ -129,7 +129,7 @@ - LTLIBRARIES = $(lib_LTLIBRARIES) - am__DEPENDENCIES_1 = - libpoppler_qt4_la_DEPENDENCIES = \ -- $(top_builddir)/poppler/libpoppler.la $(am__DEPENDENCIES_1) -+ $(am__DEPENDENCIES_1) - am_libpoppler_qt4_la_OBJECTS = libpoppler_qt4_la-poppler-document.lo \ - libpoppler_qt4_la-poppler-page.lo \ - libpoppler_qt4_la-poppler-fontinfo.lo \ -@@ -505,7 +505,7 @@ - -Dpoppler_qt4_EXPORTS - - libpoppler_qt4_la_LIBADD = \ -- $(top_builddir)/poppler/libpoppler.la \ -+ -lpoppler \ - $(POPPLER_QT4_LIBS) - - libpoppler_qt4_la_LDFLAGS = -version-info 7:0:3 @create_shared_lib@ @auto_import_flags@ diff --git a/graphics/poppler/files/patch-qt5_Makefile.in b/graphics/poppler/files/patch-qt5_Makefile.in deleted file mode 100644 index f0b38d172a29..000000000000 --- a/graphics/poppler/files/patch-qt5_Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- qt5/Makefile.in.orig 2014-11-25 11:49:19 UTC -+++ qt5/Makefile.in -@@ -384,7 +384,7 @@ top_build_prefix = @top_build_prefix@ - top_builddir = @top_builddir@ - top_srcdir = @top_srcdir@ - win32_libs = @win32_libs@ --SUBDIRS = src tests demos -+SUBDIRS = src - all: all-recursive - - .SUFFIXES: diff --git a/graphics/poppler/files/patch-qt5_src_Makefile.in b/graphics/poppler/files/patch-qt5_src_Makefile.in deleted file mode 100644 index 1b1fb04a1bb9..000000000000 --- a/graphics/poppler/files/patch-qt5_src_Makefile.in +++ /dev/null @@ -1,20 +0,0 @@ ---- qt5/src/Makefile.in.orig 2014-11-25 11:49:19 UTC -+++ qt5/src/Makefile.in -@@ -129,7 +129,7 @@ am__installdirs = "$(DESTDIR)$(libdir)" - LTLIBRARIES = $(lib_LTLIBRARIES) - am__DEPENDENCIES_1 = - libpoppler_qt5_la_DEPENDENCIES = \ -- $(top_builddir)/poppler/libpoppler.la $(am__DEPENDENCIES_1) -+ $(am__DEPENDENCIES_1) - am_libpoppler_qt5_la_OBJECTS = libpoppler_qt5_la-poppler-document.lo \ - libpoppler_qt5_la-poppler-page.lo \ - libpoppler_qt5_la-poppler-fontinfo.lo \ -@@ -505,7 +505,7 @@ libpoppler_qt5_la_CXXFLAGS = \ - -Dpoppler_qt5_EXPORTS -fPIC - - libpoppler_qt5_la_LIBADD = \ -- $(top_builddir)/poppler/libpoppler.la \ -+ -lpoppler \ - $(POPPLER_QT5_LIBS) - - libpoppler_qt5_la_LDFLAGS = -version-info 2:0:1 @create_shared_lib@ @auto_import_flags@ diff --git a/graphics/poppler/files/patch-qt5_src_poppler-form.h b/graphics/poppler/files/patch-qt5_src_poppler-form.h deleted file mode 100644 index 71faedaadd99..000000000000 --- a/graphics/poppler/files/patch-qt5_src_poppler-form.h +++ /dev/null @@ -1,10 +0,0 @@ ---- qt5/src/poppler-form.h.orig 2017-07-02 21:00:50 UTC -+++ qt5/src/poppler-form.h -@@ -26,6 +26,7 @@ - #include <QtCore/QStringList> - #include <QtCore/QSharedPointer> - #include "poppler-export.h" -+#include <ctime> // time_t - - class Page; - class FormWidget; diff --git a/graphics/poppler/files/patch-utils_Makefile.in b/graphics/poppler/files/patch-utils_Makefile.in deleted file mode 100644 index e67242f6cf99..000000000000 --- a/graphics/poppler/files/patch-utils_Makefile.in +++ /dev/null @@ -1,111 +0,0 @@ ---- utils/Makefile.in.orig 2016-03-16 22:22:14 UTC -+++ utils/Makefile.in -@@ -136,45 +136,38 @@ PROGRAMS = $(bin_PROGRAMS) - am_pdfdetach_OBJECTS = pdfdetach.$(OBJEXT) - pdfdetach_OBJECTS = $(am_pdfdetach_OBJECTS) - pdfdetach_LDADD = $(LDADD) --pdfdetach_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdfdetach_DEPENDENCIES = libparseargs.la - am_pdffonts_OBJECTS = pdffonts.$(OBJEXT) - pdffonts_OBJECTS = $(am_pdffonts_OBJECTS) - pdffonts_LDADD = $(LDADD) --pdffonts_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdffonts_DEPENDENCIES = libparseargs.la - am_pdfimages_OBJECTS = pdfimages.$(OBJEXT) ImageOutputDev.$(OBJEXT) \ - JSInfo.$(OBJEXT) - pdfimages_OBJECTS = $(am_pdfimages_OBJECTS) - pdfimages_LDADD = $(LDADD) --pdfimages_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdfimages_DEPENDENCIES = libparseargs.la - am_pdfinfo_OBJECTS = pdfinfo.$(OBJEXT) printencodings.$(OBJEXT) \ - JSInfo.$(OBJEXT) - pdfinfo_OBJECTS = $(am_pdfinfo_OBJECTS) - pdfinfo_LDADD = $(LDADD) --pdfinfo_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdfinfo_DEPENDENCIES = libparseargs.la - am_pdfseparate_OBJECTS = pdfseparate.$(OBJEXT) - pdfseparate_OBJECTS = $(am_pdfseparate_OBJECTS) - pdfseparate_LDADD = $(LDADD) --pdfseparate_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdfseparate_DEPENDENCIES = libparseargs.la - am_pdfsig_OBJECTS = pdfsig.$(OBJEXT) - pdfsig_OBJECTS = $(am_pdfsig_OBJECTS) - pdfsig_LDADD = $(LDADD) --pdfsig_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdfsig_DEPENDENCIES = libparseargs.la - am_pdftocairo_OBJECTS = pdftocairo-pdftocairo.$(OBJEXT) \ - pdftocairo-pdftocairo-win32.$(OBJEXT) - pdftocairo_OBJECTS = $(am_pdftocairo_OBJECTS) --am__DEPENDENCIES_1 = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+am__DEPENDENCIES_1 = libparseargs.la - am__DEPENDENCIES_2 = - @BUILD_CAIRO_OUTPUT_TRUE@@USE_CMS_TRUE@am__DEPENDENCIES_3 = \ - @BUILD_CAIRO_OUTPUT_TRUE@@USE_CMS_TRUE@ $(am__DEPENDENCIES_2) - am__DEPENDENCIES_4 = $(am__DEPENDENCIES_3) --pdftocairo_DEPENDENCIES = $(top_builddir)/poppler/libpoppler-cairo.la \ -+pdftocairo_DEPENDENCIES = \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_4) \ - $(am__DEPENDENCIES_2) - am_pdftohtml_OBJECTS = pdftohtml-pdftohtml.$(OBJEXT) \ -@@ -182,31 +175,26 @@ am_pdftohtml_OBJECTS = pdftohtml-pdftoht - pdftohtml-HtmlOutputDev.$(OBJEXT) - pdftohtml_OBJECTS = $(am_pdftohtml_OBJECTS) - pdftohtml_LDADD = $(LDADD) --pdftohtml_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdftohtml_DEPENDENCIES = libparseargs.la - pdftohtml_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(pdftohtml_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ - am_pdftoppm_OBJECTS = pdftoppm.$(OBJEXT) - pdftoppm_OBJECTS = $(am_pdftoppm_OBJECTS) - pdftoppm_LDADD = $(LDADD) --pdftoppm_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdftoppm_DEPENDENCIES = libparseargs.la - am_pdftops_OBJECTS = pdftops.$(OBJEXT) - pdftops_OBJECTS = $(am_pdftops_OBJECTS) - pdftops_LDADD = $(LDADD) --pdftops_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdftops_DEPENDENCIES = libparseargs.la - am_pdftotext_OBJECTS = pdftotext.$(OBJEXT) printencodings.$(OBJEXT) - pdftotext_OBJECTS = $(am_pdftotext_OBJECTS) - pdftotext_LDADD = $(LDADD) --pdftotext_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdftotext_DEPENDENCIES = libparseargs.la - am_pdfunite_OBJECTS = pdfunite.$(OBJEXT) - pdfunite_OBJECTS = $(am_pdfunite_OBJECTS) - pdfunite_LDADD = $(LDADD) --pdfunite_DEPENDENCIES = libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la -+pdfunite_DEPENDENCIES = libparseargs.la - AM_V_P = $(am__v_P_@AM_V@) - am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) - am__v_P_0 = false -@@ -549,7 +537,7 @@ AM_CPPFLAGS = \ - - LDADD = \ - libparseargs.la \ -- $(top_builddir)/poppler/libpoppler.la \ -+ -lpoppler \ - $(UTILS_LIBS) - - @BUILD_UTILS_TRUE@dist_man1_MANS = pdfdetach.1 pdffonts.1 pdfimages.1 \ -@@ -615,7 +603,7 @@ pdftocairo_SOURCES = \ - pdftocairo-win32.h - - pdftocairo_LDADD = \ -- $(top_builddir)/poppler/libpoppler-cairo.la \ -+ -lpoppler-glib \ - $(LDADD) \ - $(PDFTOCAIRO_LIBS) \ - $(PTHREAD_LIBS) diff --git a/graphics/poppler/pkg-plist b/graphics/poppler/pkg-plist index 40d12d009c50..59763fc86b7a 100644 --- a/graphics/poppler/pkg-plist +++ b/graphics/poppler/pkg-plist @@ -28,6 +28,8 @@ include/poppler/GlobalParams.h include/poppler/Hints.h include/poppler/JArithmeticDecoder.h include/poppler/JBIG2Stream.h +%%OPENJPEG%%include/poppler/JPEG2000Stream.h +%%NO_OPENJPEG%%include/poppler/JPXStream.h include/poppler/Lexer.h include/poppler/Linearization.h include/poppler/Link.h @@ -54,8 +56,6 @@ include/poppler/PreScanOutputDev.h include/poppler/ProfileData.h include/poppler/Rendition.h include/poppler/SecurityHandler.h -include/poppler/SignatureHandler.h -include/poppler/SignatureInfo.h include/poppler/Sound.h include/poppler/SplashOutputDev.h include/poppler/StdinCachedFile.h @@ -66,16 +66,15 @@ include/poppler/StructElement.h include/poppler/StructTreeRoot.h include/poppler/TextOutputDev.h include/poppler/UTF.h -include/poppler/UTF8.h include/poppler/UnicodeCClassTables.h include/poppler/UnicodeCompTables.h include/poppler/UnicodeDecompTables.h include/poppler/UnicodeMap.h +include/poppler/UnicodeMapFuncs.h include/poppler/UnicodeMapTables.h include/poppler/UnicodeTypeTable.h include/poppler/ViewerPreferences.h include/poppler/XRef.h -include/poppler/XpdfPluginAPI.h include/poppler/cpp/poppler-document.h include/poppler/cpp/poppler-embedded-file.h include/poppler/cpp/poppler-font.h @@ -94,17 +93,16 @@ include/poppler/fofi/FoFiTrueType.h include/poppler/fofi/FoFiType1.h include/poppler/fofi/FoFiType1C.h include/poppler/goo/FixedPoint.h -include/poppler/goo/GooHash.h +include/poppler/goo/GooCheckedOps.h include/poppler/goo/GooLikely.h include/poppler/goo/GooList.h -include/poppler/goo/GooMutex.h include/poppler/goo/GooString.h include/poppler/goo/GooTimer.h include/poppler/goo/ImgWriter.h include/poppler/goo/JpegWriter.h -include/poppler/goo/NetPBMWriter.h include/poppler/goo/PNGWriter.h include/poppler/goo/TiffWriter.h +include/poppler/goo/gdir.h include/poppler/goo/gfile.h include/poppler/goo/gmem.h include/poppler/goo/grandom.h @@ -128,19 +126,16 @@ include/poppler/splash/SplashPath.h include/poppler/splash/SplashPattern.h include/poppler/splash/SplashScreen.h include/poppler/splash/SplashState.h -include/poppler/splash/SplashT1Font.h -include/poppler/splash/SplashT1FontEngine.h -include/poppler/splash/SplashT1FontFile.h include/poppler/splash/SplashTypes.h include/poppler/splash/SplashXPath.h include/poppler/splash/SplashXPathScanner.h lib/libpoppler-cpp.so lib/libpoppler-cpp.so.0 -lib/libpoppler-cpp.so.0.3.0 +lib/libpoppler-cpp.so.0.5.0 lib/libpoppler.so -lib/libpoppler.so.68 -lib/libpoppler.so.68.0.0 -%%CAIRO%%libdata/pkgconfig/poppler-cairo.pc +lib/libpoppler.so.83 +lib/libpoppler.so.83.0.0 +libdata/pkgconfig/poppler-cairo.pc libdata/pkgconfig/poppler-cpp.pc libdata/pkgconfig/poppler-splash.pc libdata/pkgconfig/poppler.pc diff --git a/graphics/py-poppler-qt4/Makefile b/graphics/py-poppler-qt4/Makefile deleted file mode 100644 index da367ed2955d..000000000000 --- a/graphics/py-poppler-qt4/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# $FreeBSD$ - -PORTNAME= poppler-qt4 -PORTVERSION= 0.18.1 -PORTREVISION= 12 -CATEGORIES= graphics python -MASTER_SITES= CHEESESHOP -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= python-${PORTNAME}-${PORTVERSION} - -MAINTAINER= martin.dieringer@gmx.de -COMMENT= Python bindings for the Poppler-Qt4 PDF rendering library - -LICENSE= LGPL21 LGPL3 -LICENSE_COMB= dual - -DEPRECATED= Qt4 has been EOL since december 2015 -EXPIRATION_DATE= 2019-03-15 - -LIB_DEPENDS= libpoppler-qt4.so:graphics/poppler-qt4 - -USES= compiler:c++11-lang pkgconfig pyqt:4 python -USE_PYQT= gui xml sip_build -USE_PYTHON= distutils autoplist - -.include <bsd.port.mk> diff --git a/graphics/py-poppler-qt4/distinfo b/graphics/py-poppler-qt4/distinfo deleted file mode 100644 index 8bc8799edbae..000000000000 --- a/graphics/py-poppler-qt4/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (python-poppler-qt4-0.18.1.tar.gz) = 00e3f89f4e23a844844d082918a89c2cbb1e8231ecb011b81d592e7e3c33a74c -SIZE (python-poppler-qt4-0.18.1.tar.gz) = 15523 diff --git a/graphics/py-poppler-qt4/files/patch-types.sip b/graphics/py-poppler-qt4/files/patch-types.sip deleted file mode 100644 index 8ce1d17660a3..000000000000 --- a/graphics/py-poppler-qt4/files/patch-types.sip +++ /dev/null @@ -1,16 +0,0 @@ -PyList_SET_ITEM() is supposed to be void, but as a macro it's an -expression and has a pointer value. Clang 4.0 trips on the bogus -pointer comparison; given the comparison, it should be PyList_SetItem() -which returns -1 on failure. - ---- types.sip.orig 2017-01-21 07:19:29 UTC -+++ types.sip -@@ -27,7 +27,7 @@ - foreach (Poppler::Document::RenderBackend value, set) - { - PyObject *obj = PyLong_FromLong ((long) value); -- if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0) -+ if (obj == NULL || PyList_SetItem (l, i, obj) < 0) - { - Py_DECREF(l); - diff --git a/graphics/py-poppler-qt4/pkg-descr b/graphics/py-poppler-qt4/pkg-descr deleted file mode 100644 index 55f6ca4757de..000000000000 --- a/graphics/py-poppler-qt4/pkg-descr +++ /dev/null @@ -1,3 +0,0 @@ -Python bindings for graphics/poppler-qt4. - -WWW: https://pypi.org/project/python-poppler-qt4/ diff --git a/graphics/py-poppler/Makefile b/graphics/py-poppler/Makefile index 7ef131dd4bcf..3a4f8bb47abd 100644 --- a/graphics/py-poppler/Makefile +++ b/graphics/py-poppler/Makefile @@ -3,7 +3,7 @@ PORTNAME= poppler PORTVERSION= 0.12.1 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= graphics python MASTER_SITES= https://launchpad.net/poppler-python/trunk/development/+download/ \ http://launchpadlibrarian.net/30270080/ \ |