Skip to content

Commit

Permalink
print/ghostscript10: update port to 10.02.0
Browse files Browse the repository at this point in the history
* Exclude bundled libexpat
* Link against external libtesseract and libleptonica on request

Changelog: https://ghostscript.readthedocs.io/en/gs10.02.0/News.html

PR:		272541
  • Loading branch information
michael-o authored and metalefty committed Sep 15, 2023
1 parent bbca8e8 commit eae03f4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 103 deletions.
33 changes: 18 additions & 15 deletions print/ghostscript10/Makefile
@@ -1,13 +1,12 @@
PORTNAME= ghostscript
DISTVERSION= 10.01.2
PORTREVISION= 2
DISTVERSION= 10.02.0
CATEGORIES= print
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/
PKGNAMESUFFIX= ${GS_MAJOR_VERSION}

MAINTAINER= michael.osipov@siemens.com
COMMENT= PostScript and PDF interpreter
WWW= https://ghostscript.com/
WWW= https://ghostscript.com/

LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
Expand All @@ -34,13 +33,16 @@ CONFLICTS_INSTALL= ghostscript[789]-base \
ghostscript9-agpl-x11

EXTRACT_AFTER_ARGS= --exclude cups/libs \
--exclude expat \
--exclude freetype \
--exclude ijs \
--exclude jbig2dec \
--exclude jpeg \
--exclude lcms2mt \
--exclude leptonica \
--exclude libpng \
--exclude openjpeg \
--exclude tesseract \
--exclude tiff \
--exclude zlib

Expand All @@ -49,11 +51,11 @@ GNU_CONFIGURE= yes
ALL_TARGET= so
INSTALL_TARGET= soinstall

DATADIR= ${PREFIX}/share/${PORTNAME}/${DISTVERSION}
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} \
PLIST_SUB= GS_MAJOR_VERSION=${GS_MAJOR_VERSION} \
GS_MINOR_VERSION=${GS_MINOR_VERSION}

CONFIGURE_ARGS+= --disable-compile-inits \
Expand All @@ -71,22 +73,23 @@ CONFIGURE_ARGS+= --disable-compile-inits \
--with-libpaper \
--with-system-libtiff

OPTIONS_DEFINE= CUPS IJS TESSERACT X11
OPTIONS_DEFINE= CUPS IJS TESSERACT X11
OPTIONS_DEFAULT= CUPS X11

IJS_DESC= Support libijs based Ghostscript devices
TESSERACT_DESC= Enable bundled Tesseract OCR engine
IJS_DESC= Support libijs based Ghostscript devices
TESSERACT_DESC= Enable Tesseract OCR engine

CUPS_LIB_DEPENDS= libcups.so:print/cups
CUPS_CONFIGURE_ENABLE= cups
CUPS_LIB_DEPENDS= libcups.so:print/cups
CUPS_CONFIGURE_ENABLE= cups

IJS_LIB_DEPENDS= libijs.so:print/libijs
IJS_CONFIGURE_WITH= ijs
IJS_LIB_DEPENDS= libijs.so:print/libijs
IJS_CONFIGURE_WITH= ijs

TESSERACT_USES= compiler:c++17-lang
TESSERACT_USES= libarchive
TESSERACT_CONFIGURE_WITH= tesseract
# No TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490
TESSERACT_LIB_DEPENDS= libcurl.so:ftp/curl \
libleptonica.so:graphics/leptonica \
libtesseract.so:graphics/tesseract

X11_CONFIGURE_WITH= x
X11_USES= xorg
Expand Down
6 changes: 3 additions & 3 deletions print/ghostscript10/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1687874762
SHA256 (ghostscript-10.01.2.tar.xz) = 48d079242a2ca02a2e47a76a52cdfa818b2ad769c2bab00ad0497dd13560e7e7
SIZE (ghostscript-10.01.2.tar.xz) = 67571808
TIMESTAMP = 1694618577
SHA256 (ghostscript-10.02.0.tar.xz) = fa08ce016b30d26293dc322c6353691aced94fd3667a68ede7ff5395d71fcd0b
SIZE (ghostscript-10.02.0.tar.xz) = 67955320
2 changes: 1 addition & 1 deletion print/ghostscript10/files/patch-configure
@@ -1,6 +1,6 @@
--- configure.orig 2022-04-04 13:48:49 UTC
+++ configure
@@ -11629,7 +11629,12 @@ if test "${enable_dynamic+set}" = set; then :
@@ -13383,7 +13383,12 @@ if test "${enable_dynamic+set}" = set; then :
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
;;
*bsd*)
Expand Down
44 changes: 0 additions & 44 deletions print/ghostscript10/files/patch-psi_imainarg.c

This file was deleted.

34 changes: 0 additions & 34 deletions print/ghostscript10/files/patch-tesseract_src_arch_simddetect.cpp

This file was deleted.

6 changes: 0 additions & 6 deletions print/ghostscript10/pkg-plist
Expand Up @@ -177,13 +177,7 @@ share/color/icc/ghostscript/srgb.icc
%%DATADIR%%/Resource/Init/gs_typ42.ps
%%DATADIR%%/Resource/Init/gs_type1.ps
%%DATADIR%%/Resource/Init/gs_wan_e.ps
%%DATADIR%%/Resource/Init/pdf_base.ps
%%DATADIR%%/Resource/Init/pdf_draw.ps
%%DATADIR%%/Resource/Init/pdf_font.ps
%%DATADIR%%/Resource/Init/pdf_main.ps
%%DATADIR%%/Resource/Init/pdf_ops.ps
%%DATADIR%%/Resource/Init/pdf_rbld.ps
%%DATADIR%%/Resource/Init/pdf_sec.ps
%%DATADIR%%/Resource/Init/xlatmap
%%DATADIR%%/Resource/SubstCID/CNS1-WMode
%%DATADIR%%/Resource/SubstCID/GB1-WMode
Expand Down

0 comments on commit eae03f4

Please sign in to comment.