Groovy-devel version 1.7-beta-2 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    groovy-devel  most recent diff


    version 1.7-beta-2

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


      The groovy-devel Portfile 58675 2009-10-02 18:23:56Z breskeby macports.org $

      PortSystem 1.0

      Name: groovy-devel
      Version: 1.7-beta-2
      Category: java lang
      Maintainers: breskeby
      Platform: darwin
      Description: Groovy -- a Java-based scripting language
      Long Description: Groovy is a new agile dynamic language for the JVM combining lots of great features from languages like Python, Ruby and Smalltalk and making them available to Java developers using a Java-like syntax. Groovy is designed to help you get things done on the Java platform in a quicker, more concise and fun way - bringing the power of Python and Ruby inside the Java platform. Groovy can be used as an alternative compiler to javac to generate standard Java bytecode to be used by any Java project or it can be used dynamically as an alternative language such as for scripting Java objects, templating or writing unit test cases.
      Homepage: http://groovy.codehaus.org/
      conflicts groovy
      distname groovy-src-${version}
      Master Sites: http://dist.codehaus.org/groovy/distributions/
      Checksums: md5 9d0ad916327ed29af23970543840aeda sha1 188c932dfcd45aefcb27ae38cf9872d436083a88 rmd160 c38b5d926df9a814a394019be649a4a9a0e99915
      depends_build port:apache-ant
      depends_lib bin:java:kaffe
      use_configure no
      worksrcdir groovy-${version}

      extract.suffix .zip
      extract.cmd unzip
      extract.pre_args -qu
      extract.post_args "-d ${workpath}"
      #extract yes
      #use_zip yes

      build.cmd ant
      build.target install -DskipTests=true
      destroot {
      set target ${destroot}${prefix}/share/java/groovy

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

      # Copy in our directory tree
      file copy ${worksrcpath}/target/install ${target}

      # Remove .bat files
      foreach f [glob -directory ${target}/bin *.bat] { file delete $f }
      # Fix permissions on the scripts,
      # and at the same time add symlinks to them
      foreach f { grape groovy groovyc groovyConsole groovysh java2groovy startGroovy } {
      file attributes ${target}/bin/${f} -permissions +x
      system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}"
      }
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.