summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/poppler-qt5/pkg-plist2
-rw-r--r--graphics/poppler-qt6/pkg-plist2
-rw-r--r--graphics/poppler/Makefile15
-rw-r--r--graphics/poppler/distinfo6
-rw-r--r--graphics/poppler/files/patch-poppler_FlateStream.cc33
-rw-r--r--graphics/poppler/files/patch-poppler_FlateStream.h11
-rw-r--r--graphics/poppler/pkg-plist2
7 files changed, 58 insertions, 13 deletions
diff --git a/graphics/poppler-qt5/pkg-plist b/graphics/poppler-qt5/pkg-plist
index c5427ae04222..f6c2ea2ecf4c 100644
--- a/graphics/poppler-qt5/pkg-plist
+++ b/graphics/poppler-qt5/pkg-plist
@@ -9,5 +9,5 @@ include/poppler/qt5/poppler-qt5.h
include/poppler/qt5/poppler-version.h
lib/libpoppler-qt5.so
lib/libpoppler-qt5.so.1
-lib/libpoppler-qt5.so.1.37.0
+lib/libpoppler-qt5.so.1.38.0
libdata/pkgconfig/poppler-qt5.pc
diff --git a/graphics/poppler-qt6/pkg-plist b/graphics/poppler-qt6/pkg-plist
index 431222f2c84e..799a56b8851b 100644
--- a/graphics/poppler-qt6/pkg-plist
+++ b/graphics/poppler-qt6/pkg-plist
@@ -10,5 +10,5 @@ include/poppler/qt6/poppler-qt6.h
include/poppler/qt6/poppler-version.h
lib/libpoppler-qt6.so
lib/libpoppler-qt6.so.3
-lib/libpoppler-qt6.so.3.9.0
+lib/libpoppler-qt6.so.3.10.0
libdata/pkgconfig/poppler-qt6.pc
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile
index 3d093292c70a..8717cb70b3c4 100644
--- a/graphics/poppler/Makefile
+++ b/graphics/poppler/Makefile
@@ -1,5 +1,5 @@
PORTNAME= poppler
-DISTVERSION= 25.02.0
+DISTVERSION= 25.04.0
CATEGORIES= graphics print
MASTER_SITES= https://poppler.freedesktop.org/
@@ -17,8 +17,6 @@ LIB_DEPENDS= libnspr4.so:devel/nspr \
libfreetype.so:print/freetype2 \
libnss3.so:security/nss \
libfontconfig.so:x11-fonts/fontconfig \
- libgpgme.so:security/gpgme \
- libgpgmepp.so:security/gpgme-cpp \
libassuan.so:security/libassuan
BUILD_DEPENDS= ${LOCALBASE}/include/boost/container/small_vector.hpp:devel/boost-libs \
gsed:textproc/gsed
@@ -29,7 +27,6 @@ USES= cmake:insource compiler:c++20-lang cpe gperf jpeg \
CPE_VENDOR= freedesktop
USE_LDCONFIG= yes
CMAKE_ON= ENABLE_BOOST \
- ENABLE_GPGME \
ENABLE_LCMS \
ENABLE_LIBTIFF \
ENABLE_NSS3 \
@@ -59,10 +56,10 @@ CMAKE_OFF+= ${_POPPLER_SLAVES:N${_SLAVE_PORT}:tu:S/^/ENABLE_/}
PORTSCOUT= limitw:1,even
USES+= iconv
CMAKE_ON+= ENABLE_CPP
-PLIST_SUB+= SHLIB_VER=146
+PLIST_SUB+= SHLIB_VER=148
-OPTIONS_DEFINE= CURL OPENJPEG
-OPTIONS_DEFAULT= OPENJPEG
+OPTIONS_DEFINE= CURL OPENJPEG GNUPG
+OPTIONS_DEFAULT= OPENJPEG GNUPG
OPTIONS_SUB= yes
.else
PORTSCOUT= ignore:1
@@ -102,6 +99,10 @@ OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg
OPENJPEG_CMAKE_ON= -DENABLE_LIBOPENJPEG:STRING="openjpeg2"
OPENJPEG_CMAKE_OFF= -DENABLE_LIBOPENJPEG:STRING="none"
+GNUPG_CMAKE_BOOL= ENABLE_GPGME
+GNUPG_LIB_DEPENDS= libgpgme.so:security/gpgme \
+ libgpgmepp.so:security/gpgme-cpp
+
post-install:
.if ${_SLAVE_PORT} == glib
${INSTALL_DATA} ${WRKSRC}/poppler-glib.pc \
diff --git a/graphics/poppler/distinfo b/graphics/poppler/distinfo
index d5959f62b10e..2c310994dfb2 100644
--- a/graphics/poppler/distinfo
+++ b/graphics/poppler/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1742579130
-SHA256 (poppler-25.02.0.tar.xz) = 21234cb2a9647d73c752ce4031e65a79d11a511a835f2798284c2497b8701dee
-SIZE (poppler-25.02.0.tar.xz) = 1943728
+TIMESTAMP = 1744042785
+SHA256 (poppler-25.04.0.tar.xz) = b010c596dce127fba88532fd2f1043e55ea30601767952d0f2c0a80e7dc0da3d
+SIZE (poppler-25.04.0.tar.xz) = 1957260
diff --git a/graphics/poppler/files/patch-poppler_FlateStream.cc b/graphics/poppler/files/patch-poppler_FlateStream.cc
new file mode 100644
index 000000000000..5e1b2da32a64
--- /dev/null
+++ b/graphics/poppler/files/patch-poppler_FlateStream.cc
@@ -0,0 +1,33 @@
+--- poppler/FlateStream.cc.orig 2025-04-09 19:16:40 UTC
++++ poppler/FlateStream.cc
+@@ -133,18 +133,22 @@ int FlateStream::fill_buffer()
+ return 0;
+ }
+
+-GooString *FlateStream::getPSFilter(int psLevel, const char *indent)
++std::optional<std::string> FlateStream::getPSFilter(int psLevel, const char *indent)
+ {
+- GooString *s;
+-
+ if (psLevel < 3 || pred) {
+- return NULL;
++ return std::nullopt;
+ }
+- if (!(s = str->getPSFilter(psLevel, indent))) {
+- return NULL;
++
++ auto inner = str->getPSFilter(psLevel, indent);
++ if (!inner.has_value()) {
++ return std::nullopt;
+ }
+- s->append(indent)->append("<< >> /FlateDecode filter\n");
+- return s;
++
++ std::string result = *inner;
++ result.append(indent);
++ result.append("<< >> /FlateDecode filter\n");
++
++ return result;
+ }
+
+ bool FlateStream::isBinary(bool last) const
diff --git a/graphics/poppler/files/patch-poppler_FlateStream.h b/graphics/poppler/files/patch-poppler_FlateStream.h
new file mode 100644
index 000000000000..a8909b42032e
--- /dev/null
+++ b/graphics/poppler/files/patch-poppler_FlateStream.h
@@ -0,0 +1,11 @@
+--- poppler/FlateStream.h.orig 2025-04-09 19:14:40 UTC
++++ poppler/FlateStream.h
+@@ -45,7 +45,7 @@ class FlateStream : public FilterStream (public)
+ int lookChar() override;
+ int getRawChar() override;
+ void getRawChars(int nChars, int *buffer) override;
+- GooString *getPSFilter(int psLevel, const char *indent) override;
++ std::optional<std::string> getPSFilter(int psLevel, const char *indent) override;
+ bool isBinary(bool last = true) const override;
+
+ private:
diff --git a/graphics/poppler/pkg-plist b/graphics/poppler/pkg-plist
index db057dea03b5..58019476d0d8 100644
--- a/graphics/poppler/pkg-plist
+++ b/graphics/poppler/pkg-plist
@@ -113,7 +113,7 @@ include/poppler/splash/SplashPattern.h
include/poppler/splash/SplashTypes.h
lib/libpoppler-cpp.so
lib/libpoppler-cpp.so.2
-lib/libpoppler-cpp.so.2.0.0
+lib/libpoppler-cpp.so.2.1.0
lib/libpoppler.so
lib/libpoppler.so.%%SHLIB_VER%%
lib/libpoppler.so.%%SHLIB_VER%%.0.0