Portfile

# $Id: Portfile 22115 2007-02-17 23:57:03Z mww@macports.org $

PortSystem 1.0

name byaccj
version 1.14
categories devel java
maintainers mww@macports.org
description yacc compatible parser generator with Java extension
long_description byacc/j is an extension to the Berkeley v1.8 yacc \
compatible parser generator. byacc/j not only can produce \
C/C++ source for a LALR-grammar parser, but also Java source.

homepage http://byaccj.sourceforge.net/
master_sites sourceforge
distname byaccj${version}_src
checksums sha1 207746bde475874e121bec89e9c14d89907f2891
platforms darwin

use_configure no

build.dir ${worksrcpath}/src

destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/
file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
xinstall -W ${worksrcpath}/src new_features no_warranty \
${destroot}${prefix}/share/doc/${name}/
xinstall -m 755 ${worksrcpath}/src/yacc ${destroot}${prefix}/bin/byaccj
xinstall -m 644 ${worksrcpath}/src/yacc.1 ${destroot}${prefix}/share/man/man1/byaccj.1
}

files