Ticket #41600: bison.diff

File bison.diff, 2.8 KB (added by akimd (Akim Demaille), 10 years ago)

2.7.1 to 3.0.2

  • Portfile.

    old new  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id: Portfile 108830 2013-08-02 22:11:18Z jeremyhu@macports.org $
    23
    34PortSystem 1.0
    45
    56name                bison
    6 version             2.7.1
     7version             3.0.2
    78epoch               1
    89categories          devel
    910maintainers         mww
     
    2021
    2122homepage            http://www.gnu.org/software/bison/
    2223master_sites        gnu
    23 checksums           rmd160  933257e61c1098160d4fd71063f340b2ee304671 \
    24                     sha256  b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb
     24checksums           rmd160  0a945ce5710a79332fbe594255305f244c24dd74 \
     25                    sha256  a2c3e8528bdb50567d6fa26deeb493dc5ccd7e277b865251608a9e43ac928f3c
    2526use_xz              yes
    2627
    2728depends_lib         port:gettext port:m4 port:libiconv
     
    3233                    --mandir=${prefix}/share/man \
    3334                    --disable-yacc
    3435
     36build.args          examples/calc++/calc++ \
     37                    examples/mfcalc/mfcalc \
     38                    examples/rpcalc/rpcalc
     39
    3540test.run            yes
    3641test.target         check
    3742
    3843post-destroot {
    3944    set docdir ${prefix}/share/doc/${name}
    40     xinstall -d ${destroot}${docdir}/examples/calc++
     45    xinstall -d ${destroot}${docdir}
    4146    xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
    4247        THANKS TODO ${destroot}${docdir}
     48    xinstall -d ${destroot}${docdir}/examples/calc++
    4349    xinstall -m 444 -W ${worksrcpath}/examples/calc++  \
    4450        calc++-driver.cc calc++-driver.hh calc++-parser.cc \
    45         calc++-parser.hh calc++-parser.stamp calc++-parser.yy \
     51        calc++-parser.hh calc++-parser.yy \
    4652        calc++-scanner.cc calc++-scanner.ll calc++.cc location.hh \
    47         position.hh stack.hh test \
     53        position.hh stack.hh \
    4854        ${destroot}${docdir}/examples/calc++
    49     # yacc manpage gets installed even with '--disable-yacc'
    50     if {! [variant_isset yacc]} {
    51         delete ${destroot}${prefix}/share/man/man1/yacc.1
    52     }
     55    xinstall -d ${destroot}${docdir}/examples/mfcalc
     56    xinstall -m 444 -W ${worksrcpath}/examples/mfcalc  \
     57        calc.h mfcalc.c mfcalc.h mfcalc.y \
     58        ${destroot}${docdir}/examples/mfcalc
     59    xinstall -d ${destroot}${docdir}/examples/rpcalc
     60    xinstall -m 444 -W ${worksrcpath}/examples/rpcalc  \
     61        rpcalc.c rpcalc.h rpcalc.y \
     62        ${destroot}${docdir}/examples/rpcalc
    5363}
    5464
    5565variant yacc description "enable yacc compatibility" {
     
    5969livecheck.type      regex
    6070livecheck.url       http://ftp.gnu.org/gnu/bison/?C=M&O=D
    6171livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
    62