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

    version 2.7.7

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The antlr Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: antlr
      Version: 2.7.7
      Category: lang java
      Platform: darwin
      Maintainers: landonf openmaintainer
      Description: antlr is ANother Tool for Language Recognition
      Long Description: ANTLR, ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, or C++ actions.

      Homepage: http://www.antlr2.org/
      Master Sites: ${homepage}download/ http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/
      Checksums: md5 01cc9a2a454dd33dcd8c856ec89af090 sha1 802655c343cc7806aaf1ec2177a0e663ff209de1 rmd160 0b7951a28b748e912721fe0f6de4095d9f8da57d
      Patch Files: patch-configure.diff

      configure.env CLASSPATH=.
      configure.pre_args --prefix=${destroot}${prefix}
      configure.args --disable-csharp

      if {[variant_isset universal]} {
      build.args "CXXFLAGS=\"${configure.cxxflags} ${configure.universal_cxxflags}\" LDFLAGS=\"${configure.ldflags} ${configure.universal_ldflags}\""
      }

      destroot.args versioneddir=java
      post-destroot {
      reinplace "s|antlr-2.7.3/|java/|g" ${destroot}${prefix}/bin/antlr
      reinplace "s|^prefix=.*|prefix=\"${prefix}\"|g" ${destroot}${prefix}/bin/antlr
      }

      livecheck.type regex
      livecheck.url ${homepage}download.html
      livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)

    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/antlr
      % sudo port install antlr
      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 antlr
      ---> Verifying checksum for antlr
      ---> Extracting antlr
      ---> Configuring antlr
      ---> Building antlr with target all
      ---> Staging antlr into destroot
      ---> Installing antlr
    - 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 antlr with these commands:
      %  man antlr
      % apropos antlr
      % which antlr
      % locate antlr

     Where to find more information:

    Darwin Ports



    Lightbox this page.