<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/004185fe4b7327fd460b3fe3079cafce9c1e7240">https://github.com/macports/macports-ports/commit/004185fe4b7327fd460b3fe3079cafce9c1e7240</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 004185fe4b7327fd460b3fe3079cafce9c1e7240
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sat Sep 16 11:55:58 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> ghostscript: cleanup
</span>---
print/ghostscript/Portfile | 76 +++++++++++++++++++++++++---------------------
1 file changed, 42 insertions(+), 34 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/ghostscript/Portfile b/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ed98ab9fdbf..c58c9aeabc5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,6 +6,7 @@ PortGroup muniversal 1.0
</span> name ghostscript
version 10.02.0
revision 0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories print
license AGPL-3 BSD
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,8 +14,8 @@ description GPL Ghostscript, An interpreter for PostScript and PDF
</span> long_description Ghostscript is the well-known PostScript interpreter which \
is available for all common and most esoteric platforms and \
supports many different printers and some displays.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> homepage https://www.ghostscript.com/
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> master_sites https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs[strsed ${version} {g/\.//}]:source \
sourceforge:project/gs-fonts/gs-fonts/6.0%20%28misc%2C%20AFPL%29/:otherfonts \
sourceforge:project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/:stdfonts \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,9 +33,6 @@ distfiles ${distname}.tar.gz:source \
</span> ghostscript-fonts-std-8.11.tar.gz:stdfonts \
${mappingresources_commit}.zip:misc
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-base_unix-dll.mak.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-base_unixinst.mak.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> checksums ${distname}.tar.gz \
rmd160 4b09840d7f2c029d807d4bf9f730d2364b87ba74 \
sha256 15662eb7cc0aba5ef260ba83e40bb062a04c96c78ef717c80e8f983ebab3cce9 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,27 +50,6 @@ checksums ${distname}.tar.gz \
</span> sha256 e3971985977cee4b75f6b49f6e43842d3b699c4255d010adb82796073e98fbfe \
size 1601563
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:fontconfig \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:freetype \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:jbig2dec \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- path:include/turbojpeg.h:libjpeg-turbo \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libiconv \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libidn \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libpaper \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libpng \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:openjpeg \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:tiff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:zlib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:lcms2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# tell ghostscript it's OK to use the system pkg-config even when cross-compiling
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# see https://trac.macports.org/ticket/66627
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.env-append PKGCONFIG=${prefix}/bin/pkg-config
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_run port:perl5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> extract.only ${distname}.tar.gz \
ghostscript-fonts-other-6.0.tar.gz \
ghostscript-fonts-std-8.11.tar.gz
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -93,9 +70,14 @@ post-extract {
</span> copy -force {*}[glob ${workpath}/mapping-resources-pdf-${mappingresources_commit}/pdf2other/*] ${worksrcpath}/Resource/CMap
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-base_unix-dll.mak.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-base_unixinst.mak.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/base/unix-dll.mak
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace s|ZLIBDIR=src|ZLIBDIR=${prefix}/include| ${worksrcpath}/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|__PREFIX__|${prefix}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/base/unix-dll.mak
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|ZLIBDIR=src|ZLIBDIR=${prefix}/include|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/configure.ac
</span>
# Ensure that MacPorts perl is used everywhere
fs-traverse f ${worksrcpath} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -105,28 +87,54 @@ post-patch {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://trac.macports.org/ticket/56137
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.ldflags-prepend \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -Lsobin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fontconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:freetype \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:jbig2dec \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:lcms2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libiconv \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libidn \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:include/turbojpeg.h:libjpeg-turbo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libpaper \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libpng \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openjpeg \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tiff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:perl5
</span>
use_autoreconf yes
autoreconf.args -fv
configure.checks.implicit_function_declaration.whitelist-append strchr
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# tell ghostscript it's OK to use the system pkg-config even when cross-compiling
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://trac.macports.org/ticket/66627
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PKGCONFIG=${prefix}/bin/pkg-config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/56137
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ldflags-prepend \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Lsobin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Make included OpenJPEG uses its own headers rather than the system ones
configure.cppflags-replace \
-I${prefix}/include \
-isystem${prefix}/include
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --disable-compile-inits \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-compile-inits \
</span> --disable-cups \
--disable-dbus \
--disable-gtk \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --without-pcl \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --without-xps \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-system-libtiff \
</span> --without-gpdl \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-pcl \
</span> --without-x \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-system-libtiff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-xps
</span>
build.target so
</pre><pre style='margin:0'>
</pre>