Javacc version 5.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 5.0

      View the most recent changes for the javacc port at: javacc.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for javacc.
      The raw portfile for javacc 5.0 is located here:
      http://javacc.darwinports.com/dports/java/javacc/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/javacc


      The javacc Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: javacc
      Version: 5.0
      Category: java lang devel
      Platform: darwin
      Maintainers: mww
      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.dev.java.net
      Master Sites: ${homepage}/files/documents/17/138911/
      Checksums: md5 b69af035d6a3093c30ba18a0c456ca04 sha1 96d73786ddb35a11d8d405ae9ba31b882f57e48e rmd160 ae8ec360636a4facf744d907e51277bc560a2622

      configure {
      reinplace "s|`dirname \$0`/lib|${prefix}/share/java|g" ${worksrcpath}/bin/javacc ${worksrcpath}/bin/jjtree ${worksrcpath}/bin/jjdoc
      }

      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 ${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\.\]+).tar.gz

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/javacc
      % sudo port install javacc
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching javacc
      ---> Verifying checksum for javacc
      ---> Extracting javacc
      ---> Configuring javacc
      ---> Building javacc with target all
      ---> Staging javacc into destroot
      ---> Installing javacc
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using javacc with these commands:
      %  man javacc
      % apropos javacc
      % which javacc
      % locate javacc

     Where to find more information:

    Darwin Ports



    Lightbox this page.