# $Id: Portfile 65691 2010-03-30 09:17:11Z ryandesign@macports.org $

PortSystem 1.0

name			bison1
version			1.875
categories		devel lang
platforms		darwin
maintainers		nomaintainer
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/
master_sites	gnu:bison
distname		bison-${version}
checksums		md5 b7f8027b249ebd4dd0cc948943a71af0
use_bzip2		yes

configure.args	--infodir=${prefix}/share/info --mandir=${prefix}/share/man \
				--program-suffix=1 --datadir=${prefix}/share/${name} \
				--libdir=${prefix}/lib/bison1 \
				--without-libiconv-prefix --without-libintl-prefix

test.run		yes
test.target		check

post-destroot {
	delete ${destroot}${prefix}/share/info
}

livecheck.regex	{bison-(1\.[0-9.]+)\.tar}
