a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22844 2007-03-16 17:52:47Z landonf@macports.org $
PortSystem 1.0
name antlr
version 2.7.7
categories lang java
platforms darwin
maintainers landonf@macports.org openmaintainer@macports.org
description antlr is ANother Tool for Language Recognition
long_description ANTLR, ANother Tool for Language Recognition, is a \
language tool that provides a framework for \
constructing recognizers, compilers, and translators \
from grammatical descriptions containing Java, C#, or \
C++ actions.
homepage http://www.antlr.org/
master_sites ${homepage}/download/
checksums md5 01cc9a2a454dd33dcd8c856ec89af090
patchfiles patch-configure.diff
configure.env CLASSPATH=.
configure.pre_args --prefix=${destroot}${prefix}
configure.args --disable-csharp
destroot.args versioneddir=java
post-destroot {
reinplace "s|antlr-2.7.3/|java/|g" ${destroot}${prefix}/bin/antlr
reinplace "s|^prefix=.*|prefix=\"${prefix}\"|g" \
${destroot}${prefix}/bin/antlr
}