# $Id: Portfile,v 1.15 2006/06/01 07:29:20 mww Exp $

PortSystem 1.0
name            bison
version         2.2
categories      devel
maintainers     toby@opendarwin.org
description     general-purpose parser generator
long_description \
        Bison is a general-purpose parser generator that converts \
        a grammar description for an LALR context-free grammar \
        into a C program to parse that grammar. Once you are \
        proficient with Bison, you can use it to develop a wide \
        range of language parsers, from those used in simple desk \
        calculators to complex programming languages.
homepage        http://www.gnu.org/software/bison/
platforms       darwin
master_sites    gnu
checksums       md5 e345a5d021db850f06ce49eba78af027 \
				sha1 b01691c83cc0d08d3c03e32c494f6b03381ecd21 \
				rmd160 c31ff04eeebdfc3fe1bef860daeb7c979d9054af
use_bzip2		yes

configure.args  --infodir=${prefix}/share/info \
                --mandir=${prefix}/share/man \
                --disable-yacc

test.run        yes
test.target     check

variant yacc {
	configure.args-delete --disable-yacc
}
