Download and Install javacc version 4.0 on Mac OS X
Wednesday the 23rd of July, 2008

    javacc  most recent diff


      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 4.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
      Google
      Web Darwinports.com



      # $Id: Portfile 30184 2007-10-22 19:32:09Z mww macports.org $

      PortSystem 1.0

      Name: javacc
      Version: 4.0
      Category: java lang devel
      Platform: darwin
      Maintainers: mww
      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/26776/
      checksums sha1 74b1daf2e10077f9f64225f2ac8d08075b40445d

      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.check 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



    image test