Portfile

# $Id: Portfile 22004 2007-02-13 20:50:43Z pipping@macports.org $

PortSystem 1.0

name bison1
version 1.875
categories devel lang
platforms darwin
maintainers nomaintainer@macports.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 {
delete ${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
}