Download and Install commons-lang version 2.4 on Mac OS X
Friday the 21st of November, 2008

    commons-lang  most recent diff


    version 2.4

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



      # $Id: Portfile 39957 2008-09-14 03:30:41Z jberry macports.org $

      PortSystem 1.0

      Name: commons-lang
      Version: 2.4

      Category: java
      Maintainers: jberry openmaintainer
      Platform: darwin

      Description: Jakarta Commons-Lang
      Long Description: The Lang Component provides a host of helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, creation and serialization, and System properties. Additionally it contains an inheritable enum type, an exception structure that supports multiple types of nested-Exceptions, basic enhancements to java.util.Date and a series of utlities dedicated to help with building methods, such as hashCode, toString and equals.
      Homepage: http://commons.apache.org/lang/

      distname ${name}-${version}-src
      master_sites apache:commons/lang/source/
      checksums md5 625ff5f2f968dd908bca43c9469d6e6b sha1 61ec8be8c2cf8f4c4272545666f936dd9f7e2a29

      depends_build bin:ant:apache-ant
      depends_lib bin:java:kaffe

      use_configure no

      build.cmd ant
      build.target dist
      build.args -Dfinal.name=${name}

      destroot {
      # Ensure needed directories
      xinstall -m 755 -d ${destroot}${prefix}/share/java ${destroot}${prefix}/share/doc

      # Install jar
      xinstall -m 644 ${worksrcpath}/${name}.jar ${destroot}${prefix}/share/java

      # Install docs
      file copy ${worksrcpath}/xdocs ${destroot}${prefix}/share/doc/${name}
      }

      livecheck.check regex
      livecheck.url http://commons.apache.org/downloads/download_lang.cgi
      livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.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/commons-lang
      % sudo port install commons-lang
      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 commons-lang
      ---> Verifying checksum for commons-lang
      ---> Extracting commons-lang
      ---> Configuring commons-lang
      ---> Building commons-lang with target all
      ---> Staging commons-lang into destroot
      ---> Installing commons-lang
    - 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 commons-lang with these commands:
      %  man commons-lang
      % apropos commons-lang
      % which commons-lang
      % locate commons-lang

     Where to find more information:

    Darwin Ports



    Lightbox this page.