<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/50ec531f081a4c80e1e3e48e24f33cd330ed4e7f">https://github.com/macports/macports-ports/commit/50ec531f081a4c80e1e3e48e24f33cd330ed4e7f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 50ec531f081a4c80e1e3e48e24f33cd330ed4e7f
</span>Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
AuthorDate: Thu May 23 09:45:22 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> pstotext: update homepage, master site; add patch for CVE
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The current sites are down so use archive website. Use Debian file and
</span><span style='display:block; white-space:pre;color:#404040;'> patch for CVE. Use correct compiler.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This doesn't fix the gs exit code 1. It does work somewhat on some
</span><span style='display:block; white-space:pre;color:#404040;'> pdf files.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See https://trac.macports.org/ticket/58449
</span>---
textproc/pstotext/Portfile | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/pstotext/Portfile b/textproc/pstotext/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 78198dc..17e7e5f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/pstotext/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/pstotext/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name pstotext
version 1.9
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories textproc
license Restrictive/Distributable
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,19 +15,27 @@ long_description \
</span> representation of the plain text that would be\
displayed if the PostScript/PDF file were printed.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://pages.cs.wisc.edu/~ghost/doc/pstotext.htm
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- http://fresh.t-systems-sfr.com/unix/src/misc/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://web.archive.org/web/20180727020803/http://pages.cs.wisc.edu/~ghost/doc/pstotext.htm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites debian:p/${name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles ${name}_${version}.orig${extract.suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-security-popen.diff
</span>
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 64576e8a10ff5514e285d98b3898ae78 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 d84732ba42301a8905f6b14f37d8b57ff8b42a3e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 16dc199d19df64280184d11ccbced7a32770ddad
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 16dc199d19df64280184d11ccbced7a32770ddad \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 cfe0a251d0d43982a7d3bdf1d1670c854432739d00cb593c9beaca4b2cc36c27 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 37461
</span>
depends_run bin:gs:ghostscript
use_configure no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args CC="${configure.cc} [get_canonical_archflags cc]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/main.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
destroot {
xinstall -m 755 ${worksrcpath}/pstotext ${destroot}${prefix}/bin
</pre><pre style='margin:0'>
</pre>