Ticket #39910: Portfile-bison2.diff
File Portfile-bison2.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$ 2 3 3 PortSystem 1.04 PortSystem 1.0 4 5 5 name bison 6 name bison2 7 set myname bison 6 8 version 2.7.1 7 categories devel 8 maintainers mww 9 revision 1 10 categories devel lang 11 maintainers mww openmaintainer 9 12 license GPL-3+ 10 13 platforms darwin 11 14 installs_libs no 12 description general-purpose parser generator15 description General-purpose parser generator 13 16 long_description \ 14 17 Bison is a general-purpose parser generator that converts a grammar \ 15 18 description for an LALR context-free grammar into a C program to \ … … 17 20 it to develop a wide range of language parsers, from those used in \ 18 21 simple desk calculators to complex programming languages. 19 22 20 homepage http://www.gnu.org/software/bison/ 21 master_sites gnu 23 homepage http://www.gnu.org/software/${myname}/ 24 master_sites gnu:${myname} 25 distname ${myname}-${version} 22 26 checksums rmd160 933257e61c1098160d4fd71063f340b2ee304671 \ 23 27 sha256 b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb 24 28 use_xz yes 25 29 26 depends_lib port:gettext port:m4 port:libiconv 30 depends_build-append \ 31 port:m4 \ 32 bin:perl:perl5 \ 33 bin:flex:flex 27 34 28 installs_libs no 35 depends_lib-append port:gettext \ 36 port:libiconv 37 38 depends_run-append port:m4 29 39 30 configure.args --infodir=${prefix}/share/info \ 40 configure.args-append \ 41 --infodir=${prefix}/share/info \ 31 42 --mandir=${prefix}/share/man \ 32 --disable-yacc 43 --program-suffix=2 \ 44 --datadir=${prefix}/share/${name} \ 45 --libdir=${prefix}/lib/${name} \ 46 --with-libiconv-prefix=${prefix} \ 47 --with-libintl-prefix=${prefix} \ 48 --disable-yacc \ 49 --without-dmalloc \ 50 --disable-nls 51 52 configure.env-append \ 53 M4=${prefix}/bin/gm4 33 54 34 55 test.run yes 35 56 test.target check … … 46 67 position.hh stack.hh test \ 47 68 ${destroot}${docdir}/examples/calc++ 48 69 # yacc manpage gets installed even with '--disable-yacc' 49 if {! 50 delete ${destroot}${prefix}/share/man/man1/yacc .170 if {![variant_isset yacc]} { 71 delete ${destroot}${prefix}/share/man/man1/yacc2.1 51 72 } 73 delete ${destroot}${prefix}/share/info 52 74 } 53 75 54 variant yacc description "enable yacc compatibility" { 55 configure.args-delete --disable-yacc 76 variant yacc description "Enable yacc compatibility" { 77 configure.args-replace --disable-yacc --enable-yacc 78 # ${prefix}/lib/${name}/liby.a exists when enabling yacc, so overwrite 79 # value set above 80 installs_libs yes 56 81 } 57 82 58 livecheck.type regex 83 # Set livecheck type to "none" so that it does not pick up bison3 84 livecheck.type none 59 85 livecheck.url http://ftp.gnu.org/gnu/bison/?C=M&O=D 60 86 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) 61 87