git: 1bd6ae74ed5c - main - print/ghostscript10: Update to 10.07.0

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Mon, 23 Mar 2026 09:34:37 UTC
The branch main has been updated by michaelo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1bd6ae74ed5c411a61c5c3257204fb44eff0ddcb

commit 1bd6ae74ed5c411a61c5c3257204fb44eff0ddcb
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-03-16 18:29:02 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-03-23 09:34:24 +0000

    print/ghostscript10: Update to 10.07.0
    
    * Satisfy portclippy(1)
    
    Reviewed by:    fuz, jrm
    Differential Revision:  https://reviews.freebsd.org/D55883
    Release Notes:  https://ghostscript.readthedocs.io/en/gs10.07.0/News.html
---
 print/ghostscript10/Makefile                 | 59 ++++++++++++++--------------
 print/ghostscript10/distinfo                 |  6 +--
 print/ghostscript10/files/patch-base_ocr.mak | 11 ------
 print/ghostscript10/files/patch-configure    | 17 --------
 4 files changed, 32 insertions(+), 61 deletions(-)

diff --git a/print/ghostscript10/Makefile b/print/ghostscript10/Makefile
index ca48bfa11d4c..94503f6ea945 100644
--- a/print/ghostscript10/Makefile
+++ b/print/ghostscript10/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	ghostscript
-DISTVERSION=	10.06.0
-PORTREVISION=	2
+DISTVERSION=	10.07.0
 CATEGORIES=	print
 MASTER_SITES=	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/
 PKGNAMESUFFIX=	${GS_MAJOR_VERSION}
@@ -12,7 +11,8 @@ WWW=	https://ghostscript.com/
 LICENSE=	AGPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+LIB_DEPENDS=	libbrotlicommon.so:archivers/brotli \
+		libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libidn.so:dns/libidn \
 		libjbig2dec.so:graphics/jbig2dec \
@@ -25,10 +25,31 @@ RUN_DEPENDS=	poppler-data>=0.4.9:graphics/poppler-data \
 		urw-base35-fonts>=20200910:x11-fonts/urw-base35-fonts
 
 USES=		cpe gmake iconv jpeg localbase pkgconfig tar:xz
-USE_LDCONFIG=	yes
 CPE_VENDOR=	artifex
+USE_LDCONFIG=	yes
 
-EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/cups/libs \
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=		--disable-compile-inits \
+			--disable-dbus \
+			--disable-gtk \
+			--disable-dynamic \
+			--enable-contrib \
+			--enable-fontconfig \
+			--enable-freetype \
+			--enable-openjpeg \
+			--with-fontpath=${LOCALBASE}/share/fonts \
+			--with-jbig2dec \
+			--with-libiconv=maybe \
+			--with-libidn \
+			--with-libpaper \
+			--with-system-libtiff
+
+ALL_TARGET=	so
+INSTALL_TARGET=	soinstall
+
+DATADIR=	${PREFIX}/share/${PORTNAME}/${DISTVERSION}
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/brotli \
+			--exclude ${DISTNAME}/cups/libs \
 			--exclude ${DISTNAME}/expat \
 			--exclude ${DISTNAME}/freetype \
 			--exclude ${DISTNAME}/ijs \
@@ -43,33 +64,11 @@ EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/cups/libs \
 			--exclude ${DISTNAME}/zlib \
 			--no-same-owner --no-same-permissions
 
-GNU_CONFIGURE=	yes
-
-ALL_TARGET=	so
-INSTALL_TARGET=	soinstall
-
-DATADIR=	${PREFIX}/share/${PORTNAME}/${DISTVERSION}
-
 GS_MAJOR_VERSION=	${DISTVERSION:R:R}
 GS_MINOR_VERSION=	${DISTVERSION:R:E}
 PLIST_SUB=	GS_MAJOR_VERSION=${GS_MAJOR_VERSION} \
 			GS_MINOR_VERSION=${GS_MINOR_VERSION}
 
-CONFIGURE_ARGS=		--disable-compile-inits \
-			--disable-dbus \
-			--disable-gtk \
-			--disable-dynamic \
-			--enable-contrib \
-			--enable-fontconfig \
-			--enable-freetype \
-			--enable-openjpeg \
-			--with-fontpath=${LOCALBASE}/share/fonts \
-			--with-jbig2dec \
-			--with-libiconv=maybe \
-			--with-libidn \
-			--with-libpaper \
-			--with-system-libtiff
-
 OPTIONS_DEFINE=	CUPS IJS TESSERACT X11
 OPTIONS_DEFAULT=	CUPS X11
 
@@ -82,15 +81,15 @@ CUPS_CONFIGURE_ENABLE=	cups
 IJS_LIB_DEPENDS=	libijs.so:print/libijs
 IJS_CONFIGURE_WITH=	ijs
 
-TESSERACT_USES=	libarchive
-TESSERACT_CONFIGURE_WITH=	tesseract
 TESSERACT_LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libleptonica.so:graphics/leptonica \
 		libtesseract.so:graphics/tesseract
+TESSERACT_USES=	libarchive
+TESSERACT_CONFIGURE_WITH=	tesseract
 
-X11_CONFIGURE_WITH=	x
 X11_USES=	xorg
 X11_USE=	xorg=ice,sm,x11,xext,xt
+X11_CONFIGURE_WITH=	x
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
diff --git a/print/ghostscript10/distinfo b/print/ghostscript10/distinfo
index bb47d2a138aa..d6982a2d60e1 100644
--- a/print/ghostscript10/distinfo
+++ b/print/ghostscript10/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1758706561
-SHA256 (ghostscript-10.06.0.tar.xz) = 64352648c2c081c8a9fb1a12dc1965e01ead7c57f58b72d1b54f6ef1cef3c561
-SIZE (ghostscript-10.06.0.tar.xz) = 68955484
+TIMESTAMP = 1773684791
+SHA256 (ghostscript-10.07.0.tar.xz) = ddace4e1721f967a55039baff564840225e0baa1d4f5432247ca1ccd1473b7c1
+SIZE (ghostscript-10.07.0.tar.xz) = 69008632
diff --git a/print/ghostscript10/files/patch-base_ocr.mak b/print/ghostscript10/files/patch-base_ocr.mak
deleted file mode 100644
index 02f9e01d7cca..000000000000
--- a/print/ghostscript10/files/patch-base_ocr.mak
+++ /dev/null
@@ -1,11 +0,0 @@
---- base/ocr.mak	2025-09-25 07:52:48 UTC
-+++ base/ocr.mak
-@@ -20,7 +20,7 @@
- 
- # Define the name of this makefile.
- LIBOCR_MAK=$(GLSRC)ocr.mak $(TOP_MAKEFILES)
--OCRCXX = $(CXX) $(TESSINCLUDES) $(TESSCXXFLAGS) $(CCXXFLAGS) -DTESSERACT_IMAGEDATA_AS_PIX -DTESSERACT_DISABLE_DEBUG_FONTS -DGRAPHICS_DISABLED -UCLUSTER
-+OCRCXX = $(CXX) $(TESSINCLUDES) $(TESSCXXFLAGS) $(CCFLAGS) -DTESSERACT_IMAGEDATA_AS_PIX -DTESSERACT_DISABLE_DEBUG_FONTS -DGRAPHICS_DISABLED -UCLUSTER
- 
- # Tesseract veneer.
- $(GLGEN)tessocr.$(OBJ) : $(GLSRC)tessocr.cpp $(GLSRC)tessocr.h $(LIBOCR_MAK) \
diff --git a/print/ghostscript10/files/patch-configure b/print/ghostscript10/files/patch-configure
index 1888293a327b..3c86202dc232 100644
--- a/print/ghostscript10/files/patch-configure
+++ b/print/ghostscript10/files/patch-configure
@@ -1,14 +1,5 @@
 --- configure.orig	2025-09-09 09:36:39 UTC
 +++ configure
-@@ -5630,7 +5630,7 @@ -Wmissing-declarations -Wmissing-prototypes -Wwrite-st
- if test x"$GCC" = x"yes"; then
-     cflags_to_try="-Wall -Wstrict-prototypes -Wundef \
- -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
---fno-strict-aliasing -Werror=declaration-after-statement \
-+-fno-strict-aliasing  \
- -fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs $CFLAGS_LARGEFILE"
-     optflags_to_try="$CC_OPT_FLAGS_TO_TRY"
-     dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY"
 @@ -13615,7 +13615,12 @@ then :
          DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
        ;;
@@ -23,12 +14,4 @@
          DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
          X11_DEVS=""
          OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS"
-@@ -15791,7 +15796,7 @@ CFLAGSAUX=$(echo $CFLAGSAUX | sed -e 's/-DGS_NO_FILESY
- 
- CFLAGSAUX=$(echo $CFLAGSAUX | sed -e 's/-DGS_NO_FILESYSTEM//g')
- 
--GXXFLAGS=$(echo $GCFLAGS | sed -e 's/-Wstrict-prototypes//g' | sed -e 's/-Wmissing-prototypes//g' | sed -e 's/-Werror=declaration-after-statement//g')
-+GXXFLAGS=$(echo $GCFLAGS | sed -e 's/-Wstrict-prototypes//g' | sed -e 's/-Wmissing-prototypes//g')
- 
- SRCDIR="$srcdir"