mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
PortSystem 1.0
|
|
|
|
name javacc
|
|
version 6.0
|
|
categories java lang devel
|
|
platforms any
|
|
supported_archs noarch
|
|
maintainers nomaintainer
|
|
license BSD
|
|
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 https://javacc.org/
|
|
master_sites http://java.net/projects/javacc/downloads/download/
|
|
checksums rmd160 bac11ae2993642b254e4b90303e15de3599295eb \
|
|
sha256 4147023112d0a959756e9cfab93c33b5d940b58692a39a6785897e4be85e16a6
|
|
|
|
use_zip yes
|
|
|
|
post-extract {
|
|
# these wrappers are missing in the v6.0 zip-file
|
|
file copy ${filespath}/javacc ${filespath}/jjdoc ${filespath}/jjrun ${filespath}/jjtree \
|
|
${worksrcpath}/bin
|
|
}
|
|
|
|
configure {
|
|
reinplace "s|@JAR@|${prefix}/share/java/javacc.jar|g" \
|
|
${worksrcpath}/bin/javacc ${worksrcpath}/bin/jjdoc ${worksrcpath}/bin/jjtree
|
|
}
|
|
|
|
build {}
|
|
|
|
destroot {
|
|
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 \
|
|
${destroot}${prefix}/bin
|
|
xinstall -m 644 -W ${worksrcpath} LICENSE \
|
|
${destroot}${prefix}/share/doc/${name}
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url ${homepage}
|
|
livecheck.regex javacc-(\[0-9\.\]+).zip
|