# $Id: Portfile,v 1.1 2006/01/12 17:27:10 mww Exp $

PortSystem 1.0

name			bison1
version			1.875
categories		devel lang
platforms		darwin
maintainers		darwinports@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/
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 {
	file delete -force ${destroot}${prefix}/share/info
}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

