<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[136284] trunk/dports/print/ghostscript/Portfile</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/136284">136284</a></dd>
<dt>Author</dt> <dd>ionic@macports.org</dd>
<dt>Date</dt> <dd>2015-05-13 20:20:21 -0700 (Wed, 13 May 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>ghostscript: update to 9.16. Fetch mapping resources from github. Use system zlib. Fixes: #45652.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsprintghostscriptPortfile">trunk/dports/print/ghostscript/Portfile</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsprintghostscriptPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/print/ghostscript/Portfile (136283 => 136284)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/print/ghostscript/Portfile        2015-05-14 02:12:06 UTC (rev 136283)
+++ trunk/dports/print/ghostscript/Portfile        2015-05-14 03:20:21 UTC (rev 136284)
</span><span class="lines">@@ -4,8 +4,7 @@
</span><span class="cx"> PortGroup muniversal 1.0
</span><span class="cx">
</span><span class="cx"> name ghostscript
</span><del>-version 9.10
-revision 2
</del><ins>+version 9.16
</ins><span class="cx"> categories print
</span><span class="cx"> license AGPL-3
</span><span class="cx"> maintainers takanori openmaintainer
</span><span class="lines">@@ -18,31 +17,30 @@
</span><span class="cx"> homepage http://www.cs.wisc.edu/~ghost/
</span><span class="cx"> master_sites http://downloads.ghostscript.com/public/:source \
</span><span class="cx"> sourceforge:gs-fonts:fonts \
</span><del>- sourceforge:mapping-for-pdf.adobe:misc
-set mrversion 20091116
</del><ins>+ https://github.com/adobe-type-tools/mapping-resources-pdf/archive/:misc
+
+# Note: this needs to be manually updated for new upstream commits
+set mappingresources_commit \
+ 3128b3872aa14a4c066d5cbcdde66a3b6bba0982
+
</ins><span class="cx"> distfiles ${distname}.tar.gz:source \
</span><span class="cx"> ghostscript-fonts-other-6.0.tar.gz:fonts \
</span><del>- mappingresources4pdf_2unicode_${mrversion}.tar.Z:misc \
- mappingresources4pdf_other_${mrversion}.tar.Z:misc
</del><ins>+ ${mappingresources_commit}.zip:misc
</ins><span class="cx"> patchfiles patch-base_unix-dll.mak.diff \
</span><span class="cx"> patch-base_stdpre.h.diff
</span><span class="cx">
</span><span class="cx"> checksums ${distname}.tar.gz \
</span><del>- md5 5f0c0a2670b08466a4050ddbd1f3de63 \
- sha1 29d6538ae77565c09f399b06455e94e7bcd83d01 \
- rmd160 b04fb3adeb207dfcba2dc1db99a8ef6e11d0e211 \
</del><ins>+ md5 829319325bbdb83f5c81379a8f86f38f \
+ sha1 cc06fbf8244b9e8d0694cee5bf3be5bdd444b888 \
+ rmd160 9c483b93ccd106bae6db36b3335fae4e91177aec \
</ins><span class="cx"> ghostscript-fonts-other-6.0.tar.gz \
</span><span class="cx"> md5 1a643ae62ef166562e4d422b1a601272 \
</span><span class="cx"> sha1 da62dfcb9c10d96743c7e30c1eebe7166489798c \
</span><span class="cx"> rmd160 ab60dbf71e7d91283a106c3df381cadfe173082f \
</span><del>- mappingresources4pdf_2unicode_${mrversion}.tar.Z \
- md5 59267a7d0b818267c8ce85d1dbc4479a \
- sha1 aaf44cb1e5dd2043c932e641b0e41432aee2ca0d \
- rmd160 bc1b86e6a5f0e022f88070195eb3e01e167114a7 \
- mappingresources4pdf_other_${mrversion}.tar.Z \
- md5 202fa0a291fc1f5b50cfa239106c1b92 \
- sha1 fc4eabff932c1623f7ee0a34085e79a44d51d0e5 \
- rmd160 1e2ea9af6be8b60c9a54963e542fa06ceb2daccd
</del><ins>+ ${mappingresources_commit}.zip \
+ md5 474705024ad12c5f9566b51fc8c645ba \
+ sha1 ecab5f607db89e1cdce2eb4d180eb563be666875 \
+ rmd160 1bb3b507ec48b559e4388553391ebece2468dc73
</ins><span class="cx">
</span><span class="cx"> depends_lib port:expat \
</span><span class="cx"> port:fontconfig \
</span><span class="lines">@@ -61,7 +59,13 @@
</span><span class="cx"> depends_build port:pkgconfig
</span><span class="cx"> depends_run port:perl5
</span><span class="cx">
</span><ins>+extract.only ${distname}.tar.gz ghostscript-fonts-other-6.0.tar.gz
+
</ins><span class="cx"> post-extract {
</span><ins>+ system -W ${workpath} "unzip ${distpath}/${mappingresources_commit}.zip"
+ system -W ${workpath} "unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_2unicode.zip"
+ system -W ${workpath} "unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_other.zip"
+
</ins><span class="cx"> # MacPorts's lcms2 is 2.4 and it doesn't support cmsPluginTHR() yet.
</span><span class="cx"> # foreach d {freetype jbig2dec jpeg lcms2 libpng tiff zlib}
</span><span class="cx"> foreach d {freetype jbig2dec jpeg libpng tiff zlib} {
</span><span class="lines">@@ -69,12 +73,13 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #move ${workpath}/MappingOther/Adobe-CNS1-ETen-B5 ${workpath}/MappingOther/Adobe-CNS1-ETenms-B5
</span><del>- eval copy -force [glob ${workpath}/ToUnicode/*] ${worksrcpath}/Resource/CMap
- eval copy -force [glob ${workpath}/MappingOther/*] ${worksrcpath}/Resource/CMap
</del><ins>+ eval copy -force [glob ${workpath}/mappingresources4pdf_2unicode/*] ${worksrcpath}/Resource/CMap
+ eval copy -force [glob ${workpath}/mappingresources4pdf_other/*] ${worksrcpath}/Resource/CMap
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> post-patch {
</span><span class="cx"> reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/base/unix-dll.mak
</span><ins>+ reinplace "s|ZLIBDIR=src|ZLIBDIR=${prefix}/include|" configure.ac
</ins><span class="cx">
</span><span class="cx"> # Ensure that MacPorts perl is used
</span><span class="cx"> fs-traverse f ${worksrcpath} {
</span></span></pre>
</div>
</div>
</body>
</html>