Gant version 1.8.1 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 1.8.1

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


      The gant Portfile 59324 2009-10-13 15:50:44Z breskeby macports.org $

      PortSystem 1.0

      Name: gant
      Version: 1.8.1
      Category: java devel groovy
      Maintainers: breskeby
      Description: A groovy based tool for scripting ant
      Long Description: Gant is a tool for scripting Ant tasks using Groovy instead of XML to specify the logic. A Gant specification is a Groovy script and so can bring all the power of Groovy to bear directly, something not possible with Ant scripts. Whilst it might be seen as a competitor to Ant, Gant uses Ant tasks for many of the actions, so Gant is really an alternative way of doing things using Ant, but using a programming language rather than XML to specify the rules.

      Homepage: http://gant.codehaus.org/
      Platform: darwin
      distname ${name}-${version}_groovy-1.6.5
      depends_run port:groovy
      Master Sites: http://dist.codehaus.org/gant/distributions
      Checksums: md5 cdbd2ae72c0ae8d116acec004533bc55 sha1 4219be2b32fbe63c02ef981fb638b361242671b1 rmd160 6d081ad0df4891e3bed5e23b218c84aa4f3183ca

      worksrcdir ${name}-${version}
      set workTarget ""

      use_zip yes
      use_bzip2 no
      use_configure no

      build.cmd true

      platform darwin {
      extract.post_args | gnutar -x
      build.env JAVA_HOME=/Library/Java/Home
      }

      pre-destroot {
      # Remove extraneous bat files
      foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
      file delete $f
      }
      }

      destroot {
      # Create the target java directory
      xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}

      # Copy over the needed elements of our directory tree
      file copy ${worksrcpath}/bin ${worksrcpath}/lib ${worksrcpath}/conf ${destroot}${prefix}/share/java/${name}

      # Symlink gant into the bin directory
      system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gant"
      }

      post-activate {
      ui_msg "****************************************************************************"
      ui_msg "* Remember to set the environment variable GANT_HOME to the path to"
      ui_msg "* the gant distribution: ${prefix}/share/java/${name}"
      ui_msg "****************************************************************************"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.