<!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>[134201] trunk/dports/devel/bison</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/134201">134201</a></dd>
<dt>Author</dt> <dd>larryv@macports.org</dd>
<dt>Date</dt> <dd>2015-03-19 17:31:15 -0700 (Thu, 19 Mar 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>bison: Update to 3.0.4 (#41600), add `bison-runtime` subport

- Update to latest upstream version, 3.0.4.
- Remove unnecessary configure options.
- Add dependency on Perl, which is used by the build.
- Remove dependency on iconv, which doesn't seem to be used.
- Don't manually install documentation and examples, since the build
  system now does this.
- Move examples to `${prefix}/share/examples`.
- Split off a `bison-runtime` subport to provide the translations for
  localized programs that incorporate Bison-generated parsers. (See the
  PACKAGING file from the upstream distribution.)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsdevelbisonPortfile">trunk/dports/devel/bison/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/devel/bison/files/</li>
<li><a href="#trunkdportsdevelbisonfilesskipruntimepopatch">trunk/dports/devel/bison/files/skip-runtime-po.patch</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsdevelbisonPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/devel/bison/Portfile (134200 => 134201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/bison/Portfile        2015-03-20 00:31:13 UTC (rev 134200)
+++ trunk/dports/devel/bison/Portfile        2015-03-20 00:31:15 UTC (rev 134201)
</span><span class="lines">@@ -5,15 +5,24 @@
</span><span class="cx"> 
</span><span class="cx"> name                bison
</span><span class="cx"> epoch               1
</span><del>-version             2.7.1
-revision            1
</del><ins>+version             3.0.4
</ins><span class="cx"> categories          devel
</span><span class="cx"> platforms           darwin
</span><ins>+subport bison-runtime {
+    supported_archs noarch
+}
</ins><span class="cx"> license             GPL-3+
</span><span class="cx"> maintainers         mww
</span><span class="cx"> 
</span><ins>+if {${subport} eq &quot;bison-runtime&quot;} {
+    description         Localization support for Bison-generated parsers
+    long_description    The Bison parser generator provides \
+                        translations for its parser diagnostics. \
+                        Programs that contain Bison-generated parsers \
+                        can use these translations to generate \
+                        localized error messages.
</ins><span class="cx">     installs_libs       no
</span><del>-
</del><ins>+} else {
</ins><span class="cx">     description         The Yacc-compatible Parser Generator
</span><span class="cx">     long_description    Bison is a general-purpose parser generator \
</span><span class="cx">                         that converts an annotated context-free \
</span><span class="lines">@@ -27,37 +36,53 @@
</span><span class="cx">                         desk calculators to complex programming \
</span><span class="cx">                         languages.
</span><span class="cx"> 
</span><ins>+    depends_build       bin:perl:perl5
</ins><span class="cx">     depends_lib         port:gettext \
</span><del>-                        port:libiconv \
</del><span class="cx">                         port:m4
</span><del>-
</del><ins>+    depends_run         port:bison-runtime
+}
</ins><span class="cx"> homepage            http://www.gnu.org/software/bison
</span><span class="cx"> 
</span><span class="cx"> master_sites        gnu
</span><span class="cx"> use_xz              yes
</span><del>-checksums           rmd160  933257e61c1098160d4fd71063f340b2ee304671 \
-                    sha256  b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb
</del><ins>+checksums           rmd160  414959f3d619d8e4875e241ee02852b2ff13c2cb \
+                    sha256  a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1
</ins><span class="cx"> 
</span><del>-configure.args      --disable-silent-rules \
-                    --infodir=${prefix}/share/info \
-                    --mandir=${prefix}/share/man
</del><ins>+configure.args      --disable-silent-rules
</ins><span class="cx"> 
</span><ins>+if {${subport} eq &quot;bison-runtime&quot;} {
+
+    build.dir       ${worksrcpath}/runtime-po
+
+    # Use the deactivate hack because `bison` used to install these files.
+    pre-activate {
+        if {![catch {lindex [registry_active bison] 0} installedBison]} {
+            set installedBisonEpoch [lindex $installedBison 5]
+            set installedBisonVersion [lindex $installedBison 1]
+            if {$installedBisonEpoch &lt; 1
+                    || ($installedBisonEpoch == 1
+                            &amp;&amp; [vercmp $installedBisonVersion 3.0.4] &lt; 0)} {
+                registry_deactivate_composite bison {} {ports_nodepcheck true}
+            }
+        }
+    }
+
+    livecheck.type  none
+
+} else {
+
+    patchfiles      skip-runtime-po.patch
+
</ins><span class="cx">     test.run        yes
</span><span class="cx">     test.target     check
</span><span class="cx"> 
</span><span class="cx">     post-destroot {
</span><del>-        set docdir ${prefix}/share/doc/${name}
-        xinstall -d ${destroot}${docdir}/examples/calc++
-        xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
-            THANKS TODO ${destroot}${docdir}
-        xinstall -m 444 -W ${worksrcpath}/examples/calc++  \
-            calc++-driver.cc calc++-driver.hh calc++-parser.cc \
-            calc++-parser.hh calc++-parser.stamp calc++-parser.yy \
-            calc++-scanner.cc calc++-scanner.ll calc++.cc location.hh \
-            position.hh stack.hh test \
-            ${destroot}${docdir}/examples/calc++
</del><ins>+        xinstall -d ${destroot}${prefix}/share/examples
+        move ${destroot}${prefix}/share/doc/${subport}/examples \
+                ${destroot}${prefix}/share/examples/${subport}
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     livecheck.type  regex
</span><span class="cx">     livecheck.url   http://ftp.gnu.org/gnu/bison/
</span><span class="cx">     livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
</span><ins>+}
</ins></span></pre></div>
<a id="trunkdportsdevelbisonfilesskipruntimepopatch"></a>
<div class="addfile"><h4>Added: trunk/dports/devel/bison/files/skip-runtime-po.patch (0 => 134201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/bison/files/skip-runtime-po.patch                                (rev 0)
+++ trunk/dports/devel/bison/files/skip-runtime-po.patch        2015-03-20 00:31:15 UTC (rev 134201)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+Index: Makefile.in
+===================================================================
+--- Makefile.in.orig
++++ Makefile.in
+@@ -2102,7 +2102,7 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ AUTOMAKE_OPTIONS = subdir-objects
+ ACLOCAL_AMFLAGS = -I m4
+-SUBDIRS = po runtime-po .
++SUBDIRS = po .
+ aclocal_DATA = m4/bison-i18n.m4

+ # Some of our targets (cross-option.texi, bison.1) use &quot;bison --help&quot;.
</ins></span></pre>
</div>
</div>

</body>
</html>