<pre style='margin:0'>
David Strubbe (dstrubbe) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/09a9b36f47b12c47ccffdd7512105d502f861209">https://github.com/macports/macports-ports/commit/09a9b36f47b12c47ccffdd7512105d502f861209</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 09a9b36f47b12c47ccffdd7512105d502f861209
</span>Author: David Strubbe <dstrubbe@macports.org>
AuthorDate: Tue Apr 25 13:06:04 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> ghostscript: Fix reinplace for perl in scripts.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The reinplace was missing two places that MacPorts perl needed to be inserted in place of /usr/bin/perl (the second of which causes a warning to be written that reinplace had no effect):
</span><span style='display:block; white-space:pre;color:#404040;'> {{{
</span><span style='display:block; white-space:pre;color:#404040;'> cups/libs/configlinux.h:456:#define CUPS_PERL "/usr/bin/perl"
</span><span style='display:block; white-space:pre;color:#404040;'> freetype_local/src/tools/afblue.pl:1:#! /usr/bin/perl -w
</span><span style='display:block; white-space:pre;color:#404040;'> }}}
</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 e93eb10..da051dc 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;'>@@ -5,7 +5,7 @@ PortGroup muniversal 1.0
</span>
name ghostscript
version 9.21
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories print
license AGPL-3 BSD
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,10 +81,10 @@ post-patch {
</span> reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/base/unix-dll.mak
reinplace s|ZLIBDIR=src|ZLIBDIR=${prefix}/include| configure.ac
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Ensure that MacPorts perl is used
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Ensure that MacPorts perl is used everywhere
</span> 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 s|/usr/bin/perl|${prefix}/bin/perl| ${f}
</span> }
}
}
</pre><pre style='margin:0'>
</pre>