source: trunk/dports/java/javacc/Portfile

Last change on this file was 114719, checked in by mww@…, 4 years ago

javacc: version 6.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 114719 2013-12-14 09:03:38Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                javacc
6version             6.0
7categories          java lang devel
8platforms           darwin
9maintainers         mww
10license             BSD
11description         Java Compiler Compiler, a parser generator for use with Java
12long_description    Java Compiler Compiler (JavaCC) is the most popular \
13    parser generator for use with Java applications. A parser generator is a \
14    tool that reads a grammar specification and converts it to a Java program \
15    that can recognize matches to the grammar. In addition to the parser \
16    generator itself, JavaCC provides other standard capabilities related to \
17    parser generation such as tree building (via a tool called JJTree included \
18    with JavaCC), actions, debugging, etc.
19
20homepage            http://javacc.java.net/
21master_sites        http://java.net/projects/javacc/downloads/download/
22checksums           rmd160  bac11ae2993642b254e4b90303e15de3599295eb \
23                    sha256  4147023112d0a959756e9cfab93c33b5d940b58692a39a6785897e4be85e16a6
24
25use_zip             yes
26
27post-extract {
28    # these wrappers are missing in the v6.0 zip-file
29    file copy ${filespath}/javacc ${filespath}/jjdoc ${filespath}/jjrun ${filespath}/jjtree \
30        ${worksrcpath}/bin
31}
32
33configure {
34    reinplace "s|@JAR@|${prefix}/share/java/javacc.jar|g" \
35        ${worksrcpath}/bin/javacc ${worksrcpath}/bin/jjdoc ${worksrcpath}/bin/jjtree
36}
37   
38build {}
39
40destroot {
41    xinstall -d -m 755 ${destroot}${prefix}/share/java \
42        ${destroot}${prefix}/share/doc/
43    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
44    xinstall -m 644 ${worksrcpath}/bin/lib/javacc.jar \
45        ${destroot}${prefix}/share/java/
46    xinstall -m 755 -W ${worksrcpath}/bin javacc jjdoc jjtree jjrun \
47        ${destroot}${prefix}/bin
48    xinstall -m 644 -W ${worksrcpath} LICENSE \
49        ${destroot}${prefix}/share/doc/${name}
50}
51
52livecheck.type      regex
53livecheck.url       ${homepage}
54livecheck.regex     javacc-(\[0-9\.\]+).zip
55
Note: See TracBrowser for help on using the repository browser.