<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a699a13cac33821ed5a5ee6a4f571263a82d5c06">https://github.com/macports/macports-ports/commit/a699a13cac33821ed5a5ee6a4f571263a82d5c06</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a699a13cac33821ed5a5ee6a4f571263a82d5c06
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Jan 30 21:55:16 2022 -0600

<span style='display:block; white-space:pre;color:#404040;'>    ghostscript: Fix reinplace
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/63863
</span>---
 print/ghostscript/Portfile | 6 +++---
 1 file changed, 3 insertions(+), 3 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 bbf926e1d6f..5b3b1870935 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;'>@@ -13,7 +13,7 @@ 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;'>-platforms           darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> homepage            https://www.ghostscript.com/
 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 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -92,12 +92,12 @@ post-extract {
</span> 
 post-patch {
     reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/base/unix-dll.mak
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace s|ZLIBDIR=src|ZLIBDIR=${prefix}/include| configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace s|ZLIBDIR=src|ZLIBDIR=${prefix}/include| ${worksrcpath}/configure.ac
</span> 
     # Ensure that MacPorts perl is used everywhere
     fs-traverse f ${worksrcpath} {
         if {[string match *.pl ${f}]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            reinplace s|/usr/bin/perl|${prefix}/bin/perl| ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            reinplace -E "s:(/usr/bin/perl|/usr/bin/env perl):${prefix}/bin/perl:g" ${f}
</span>         }
     }
 }
</pre><pre style='margin:0'>

</pre>