Ticket #39910: Portfile-bison3.diff
File Portfile-bison3.diff, 3.4 KB (added by cooljeanius (Eric Gallager), 11 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 108674 2013-07-30 09:13:33Z ciserlohn@macports.org $ 2 3 3 PortSystem 1.04 PortSystem 1.0 4 5 5 name bison 6 name bison3 7 set myname bison 6 8 version 3.0 7 categories devel 8 maintainers mww 9 revision 3 10 categories devel lang 11 maintainers mww openmaintainer 9 12 license GPL-3+ 10 13 platforms darwin 11 14 installs_libs no … … 15 18 description for an LALR context-free grammar into a C program to \ 16 19 parse that grammar. Once you are proficient with Bison, you can use \ 17 20 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. 19 23 20 homepage http://www.gnu.org/software/bison/ 21 master_sites gnu 24 homepage http://www.gnu.org/software/${name}/ 25 master_sites gnu:${myname} 26 distname ${myname}-${version} 22 27 checksums rmd160 6b68dfec7e83ab481f3e9d315f779f462dfc3823 \ 23 28 sha256 e9ac5585002b71208aee8a20bbe1ced96c48766e6c4247bc7ef8f3141f7624c8 29 24 30 use_xz yes 25 31 26 depends_lib port:gettext port:m4 port:libiconv 32 depends_build-append \ 33 port:m4 \ 34 bin:perl:perl5 \ 35 bin:flex:flex 27 36 28 installs_libs no 37 depends_lib-append port:gettext \ 38 port:libiconv 39 40 depends_run-append port:m4 29 41 30 42 configure.args --infodir=${prefix}/share/info \ 31 43 --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 53 configure.env-append \ 54 M4=${prefix}/bin/gm4 33 55 34 56 test.run yes 35 57 test.target check … … 40 62 xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \ 41 63 THANKS TODO ${destroot}${docdir} 42 64 # yacc manpage gets installed even with '--disable-yacc' 43 if {! 44 delete ${destroot}${prefix}/share/man/man1/yacc .165 if {![variant_isset yacc]} { 66 delete ${destroot}${prefix}/share/man/man1/yacc3.1 45 67 } 68 delete ${destroot}${prefix}/share/info 46 69 } 47 70 48 variant yacc description "enable yacc compatibility" { 49 configure.args-delete --disable-yacc 71 variant 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 50 76 } 51 77 52 livecheck.type regex78 livecheck.type none 53 79 livecheck.url http://ftp.gnu.org/gnu/bison/?C=M&O=D 54 80 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) 55 81