categories java lang devel
description Java Compiler Compiler, a parser generator for use with Java
long_description Java Compiler Compiler (JavaCC) is the most popular \
parser generator for use with Java applications. A parser generator is a \
tool that reads a grammar specification and converts it to a Java program \
that can recognize matches to the grammar. In addition to the parser \
generator itself, JavaCC provides other standard capabilities related to \
parser generation such as tree building (via a tool called JJTree included \
with JavaCC), actions, debugging, etc.
homepage http://javacc.java.net/
master_sites http://java.net/projects/javacc/downloads/download/
checksums rmd160 bac11ae2993642b254e4b90303e15de3599295eb \
sha256 4147023112d0a959756e9cfab93c33b5d940b58692a39a6785897e4be85e16a6
# these wrappers are missing in the v6.0 zip-file
file copy ${filespath}/javacc ${filespath}/jjdoc ${filespath}/jjrun ${filespath}/jjtree \
reinplace "s|@JAR@|${prefix}/share/java/javacc.jar|g" \
${worksrcpath}/bin/javacc ${worksrcpath}/bin/jjdoc ${worksrcpath}/bin/jjtree
xinstall -d -m 755 ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc/
file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/bin/lib/javacc.jar \
${destroot}${prefix}/share/java/
xinstall -m 755 -W ${worksrcpath}/bin javacc jjdoc jjtree jjrun \
xinstall -m 644 -W ${worksrcpath} LICENSE \
${destroot}${prefix}/share/doc/${name}
livecheck.url ${homepage}
livecheck.regex javacc-(\[0-9\.\]+).zip