diff --git a/print/ghostscript10/Makefile b/print/ghostscript10/Makefile index b8db2307da56..332374b380a8 100644 --- a/print/ghostscript10/Makefile +++ b/print/ghostscript10/Makefile @@ -1,118 +1,122 @@ PORTNAME= ghostscript DISTVERSION= 10.03.0 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/ PKGNAMESUFFIX= ${GS_MAJOR_VERSION} +PATCH_SITES= https://github.com/ArtifexSoftware/ghostpdl/commit/ +PATCHFILES= 90cabe08422afdd16bac5dd9217602679d943045.patch:-p1 + MAINTAINER= michael.osipov@siemens.com COMMENT= PostScript and PDF interpreter WWW= https://ghostscript.com/ LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libidn.so:dns/libidn \ libjbig2dec.so:graphics/jbig2dec \ liblcms2.so:graphics/lcms2 \ libopenjp2.so:graphics/openjpeg \ libpaper.so:print/libpaper \ libpng16.so:graphics/png \ libtiff.so:graphics/tiff 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 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 GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share 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 IJS_DESC= Support libijs based Ghostscript devices TESSERACT_DESC= Enable Tesseract OCR engine CUPS_LIB_DEPENDS= libcups.so:print/cups 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 X11_CONFIGURE_WITH= x X11_USES= xorg X11_USE= xorg=ice,sm,x11,xext,xt post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${PATCH_WRKSRC}/man/gs.1 post-install: ${MV} ${STAGEDIR}${PREFIX}/bin/gsc ${STAGEDIR}${PREFIX}/bin/gs ${RM} ${STAGEDIR}${PREFIX}/bin/gsx ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs \ ${STAGEDIR}${PREFIX}/lib/libgs.so.${GS_MAJOR_VERSION}.${GS_MINOR_VERSION} ${RM} ${STAGEDIR}${PREFIX}/bin/lprsetup.sh ${RM} ${STAGEDIR}${PREFIX}/bin/unix-lpr.sh ${MKDIR} ${STAGEDIR}${PREFIX}/share/color/icc ${MV} ${STAGEDIR}${DATADIR}/iccprofiles \ ${STAGEDIR}${PREFIX}/share/color/icc/ghostscript ${RLN} ${STAGEDIR}${PREFIX}/share/color/icc/ghostscript \ ${STAGEDIR}${DATADIR}/iccprofiles ${RM} -r ${STAGEDIR}${PREFIX}/share/doc/${PORTNAME} ${MKDIR} ${STAGEDIR}${PREFIX}/share/cmap ${MV} ${STAGEDIR}${DATADIR}/Resource/CMap/Identity* \ ${STAGEDIR}${PREFIX}/share/cmap ${RM} -r ${STAGEDIR}${DATADIR}/Resource/CMap ${RLN} ${STAGEDIR}${PREFIX}/share/cmap \ ${STAGEDIR}${DATADIR}/Resource/CMap .include diff --git a/print/ghostscript10/distinfo b/print/ghostscript10/distinfo index cc19a0561047..ce84947b3a54 100644 --- a/print/ghostscript10/distinfo +++ b/print/ghostscript10/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1710150301 +TIMESTAMP = 1710343064 SHA256 (ghostscript-10.03.0.tar.xz) = f25ff491a726d883f0b0f9c8af9b895c674cf77cddd814aa3824b3223f439ee5 SIZE (ghostscript-10.03.0.tar.xz) = 68041176 +SHA256 (90cabe08422afdd16bac5dd9217602679d943045.patch) = b3d60b8e97ed4464fdda14a53ab9bf135e201a0c995e7e6517001bad2d7b2c91 +SIZE (90cabe08422afdd16bac5dd9217602679d943045.patch) = 927