From 1f33f702878ccb0439dcc5ef1bf9ea59eee855e5 Mon Sep 17 00:00:00 2001 From: Albert Schwarzkopf Date: Mon, 12 Dec 2022 18:32:03 +0100 Subject: [PATCH] ipe: rebuild for poppler-22.12.0 --- srcpkgs/ipe/patches/poppler-22.09.0-fix.patch | 26 +++++++++++++++++++ srcpkgs/ipe/template | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ipe/patches/poppler-22.09.0-fix.patch diff --git a/srcpkgs/ipe/patches/poppler-22.09.0-fix.patch b/srcpkgs/ipe/patches/poppler-22.09.0-fix.patch new file mode 100644 index 00000000000..5bce0f13555 --- /dev/null +++ b/srcpkgs/ipe/patches/poppler-22.09.0-fix.patch @@ -0,0 +1,26 @@ +Taken from https://github.com/otfried/ipe-tools/pull/55/commits/65586fcd9cc39e482ae5a9abdb6f4932d9bb88c4 + +diff --git a/pdftoipe/xmloutputdev.cpp b/pdftoipe/xmloutputdev.cpp +index 291eb5f..17bac2a 100644 +--- a/ipe-tools/pdftoipe/xmloutputdev.cpp ++++ b/ipe-tools/pdftoipe/xmloutputdev.cpp +@@ -149,15 +149,15 @@ void XmlOutputDev::stroke(GfxState *state) + writeColor("getTransformedLineWidth()); + +- double *dash; + double start; +- int length, i; ++ std::vector dash = state->getLineDash(&start); ++ int length = dash.size(); ++ int i; + +- state->getLineDash(&dash, &length, &start); + if (length) { + writePS(" dash=\"["); + for (i = 0; i < length; ++i) +- writePSFmt("%g%s", state->transformWidth(dash[i]), ++ writePSFmt("%g%s", state->transformWidth(dash.at(i)), + (i == length-1) ? "" : " "); + writePSFmt("] %g\"", state->transformWidth(start)); + } diff --git a/srcpkgs/ipe/template b/srcpkgs/ipe/template index 9f9428f870a..a0c14e3548c 100644 --- a/srcpkgs/ipe/template +++ b/srcpkgs/ipe/template @@ -1,7 +1,7 @@ # Template file for 'ipe' pkgname=ipe version=7.2.26 -revision=7 +revision=8 _tools_commit=v7.2.24.1 create_wrksrc=yes hostmakedepends="pkg-config doxygen qt5-qmake qt5-tools qt5-host-tools"