Ticket #41600: bison-3.0.4.diff
File bison-3.0.4.diff, 4.1 KB (added by RJVB (René Bertin), 10 years ago) |
---|
-
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 1 2 # $Id: Portfile 108830 2013-08-02 22:11:18Z jeremyhu@macports.org $ 2 3 3 4 PortSystem 1.0 4 5 5 6 name bison 6 version 2.7.17 epoch 18 categories devel9 maintainers mww10 license GPL-3+11 platforms darwin12 installs_libs no13 7 description general-purpose parser generator 14 8 long_description \ 15 9 Bison is a general-purpose parser generator that converts a grammar \ … … 18 12 it to develop a wide range of language parsers, from those used in \ 19 13 simple desk calculators to complex programming languages. 20 14 15 subport ${name}-2 { 16 version 2.7.1 17 revision 1 18 long_description ${long_description} - This is the legacy 2.7.1 version 19 } 20 if {${subport} ne "${name}-2"} { 21 version 3.0.4 22 } 23 24 epoch 1 25 categories devel 26 maintainers mww 27 license GPL-3+ 28 platforms darwin 29 21 30 homepage http://www.gnu.org/software/bison/ 22 31 master_sites gnu 23 checksums rmd160 933257e61c1098160d4fd71063f340b2ee304671 \24 sha256 b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb25 32 use_xz yes 26 33 27 34 depends_lib port:gettext port:m4 port:libiconv 28 35 29 installs_libs no 30 31 configure.args --infodir=${prefix}/share/info \ 32 --mandir=${prefix}/share/man \ 33 --disable-yacc 34 35 test.run yes 36 test.target check 36 configure.args --disable-dependency-tracking \ 37 --infodir=${prefix}/share/info \ 38 --mandir=${prefix}/share/man 37 39 38 post-destroot { 39 set docdir ${prefix}/share/doc/${name} 40 xinstall -d ${destroot}${docdir}/examples/calc++ 41 xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \ 42 THANKS TODO ${destroot}${docdir} 43 xinstall -m 444 -W ${worksrcpath}/examples/calc++ \ 44 calc++-driver.cc calc++-driver.hh calc++-parser.cc \ 45 calc++-parser.hh calc++-parser.stamp calc++-parser.yy \ 46 calc++-scanner.cc calc++-scanner.ll calc++.cc location.hh \ 47 position.hh stack.hh test \ 48 ${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 40 if {${subport} eq "${name}-2"} { 41 checksums rmd160 933257e61c1098160d4fd71063f340b2ee304671 \ 42 sha256 b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb 43 set DEST ${prefix}/libexec/bison2 44 configure.args-delete --prefix=${prefix} 45 configure.args-append --prefix=${DEST} 46 post-destroot { 47 file rename ${destroot}${prefix}/share/info ${destroot}${DEST}/share/info 48 file rename ${destroot}${prefix}/share/man ${destroot}${DEST}/share/man 49 ln -s ${DEST}/bin/bison ${destroot}/${prefix}/bin/bison-2 50 } 51 } else { 52 checksums rmd160 414959f3d619d8e4875e241ee02852b2ff13c2cb \ 53 sha256 a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1 54 build.args examples/calc++/calc++ \ 55 examples/mfcalc/mfcalc \ 56 examples/rpcalc/rpcalc 57 58 post-destroot { 59 set docdir ${prefix}/share/doc/${name} 60 xinstall -d ${destroot}${docdir} 61 xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \ 62 THANKS TODO ${destroot}${docdir} 52 63 } 53 64 } 54 65 55 variant yacc description "enable yacc compatibility" { 56 configure.args-delete --disable-yacc 57 } 66 test.run yes 67 test.target check 58 68 59 69 livecheck.type regex 60 70 livecheck.url http://ftp.gnu.org/gnu/bison/?C=M&O=D 61 71 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) 62