Ticket #39910: Portfile-bison3.diff

File Portfile-bison3.diff, 3.4 KB (added by cooljeanius (Eric Gallager), 11 years ago)

diff between my bison3 portfile and the portfile for bison the last time it had been at bison3

  • 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 108674 2013-07-30 09:13:33Z ciserlohn@macports.org $
    23
    3 PortSystem 1.0
     4PortSystem          1.0
    45
    5 name                bison
     6name                bison3
     7set myname          bison
    68version             3.0
    7 categories          devel
    8 maintainers         mww
     9revision            3
     10categories          devel lang
     11maintainers         mww openmaintainer
    912license             GPL-3+
    1013platforms           darwin
    1114installs_libs       no
     
    1518    description for an LALR context-free grammar into a C program to    \
    1619    parse that grammar. Once you are proficient with Bison, you can use \
    1720    it to develop a wide range of language parsers, from those used in  \
    18     simple desk calculators to complex programming languages.
     21    simple desk calculators to complex programming languages. This      \
     22    version breaks backwards compatibility with bison2.
    1923
    20 homepage            http://www.gnu.org/software/bison/
    21 master_sites        gnu
     24homepage            http://www.gnu.org/software/${name}/
     25master_sites        gnu:${myname}
     26distname            ${myname}-${version}
    2227checksums           rmd160  6b68dfec7e83ab481f3e9d315f779f462dfc3823 \
    2328                    sha256  e9ac5585002b71208aee8a20bbe1ced96c48766e6c4247bc7ef8f3141f7624c8
     29
    2430use_xz              yes
    2531
    26 depends_lib         port:gettext port:m4 port:libiconv
     32depends_build-append \
     33                    port:m4 \
     34                    bin:perl:perl5 \
     35                    bin:flex:flex
    2736
    28 installs_libs       no
     37depends_lib-append  port:gettext \
     38                    port:libiconv
     39
     40depends_run-append  port:m4
    2941
    3042configure.args      --infodir=${prefix}/share/info \
    3143                    --mandir=${prefix}/share/man \
    32                     --disable-yacc
     44                    --program-suffix=3 \
     45                    --datadir=${prefix}/share/${name} \
     46                    --libdir=${prefix}/lib/${name} \
     47                    --with-libiconv-prefix=${prefix} \
     48                    --with-libintl-prefix=${prefix} \
     49                    --disable-yacc \
     50                    --without-dmalloc \
     51                    --disable-nls
     52
     53configure.env-append \
     54                    M4=${prefix}/bin/gm4
    3355
    3456test.run            yes
    3557test.target         check
     
    4062    xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
    4163        THANKS TODO ${destroot}${docdir}
    4264    # yacc manpage gets installed even with '--disable-yacc'
    43     if {! [variant_isset yacc]} {
    44         delete ${destroot}${prefix}/share/man/man1/yacc.1
     65    if {![variant_isset yacc]} {
     66        delete ${destroot}${prefix}/share/man/man1/yacc3.1
    4567    }
     68    delete ${destroot}${prefix}/share/info
    4669}
    4770
    48 variant yacc description "enable yacc compatibility" {
    49     configure.args-delete   --disable-yacc
     71variant yacc description "Enable yacc compatibility" {
     72    configure.args-replace  --disable-yacc --enable-yacc
     73    # ${prefix}/lib/${name}/liby.a exists when enabling yacc, so overwrite
     74    # value set above
     75    installs_libs           yes
    5076}
    5177
    52 livecheck.type      regex
     78livecheck.type      none
    5379livecheck.url       http://ftp.gnu.org/gnu/bison/?C=M&O=D
    5480livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
    5581