Commons-httpclient version 3.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    commons-httpclient  most recent diff


    version 3.1

      View the most recent changes for the commons-httpclient port at: commons-httpclient.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for commons-httpclient.
      The raw portfile for commons-httpclient 3.1 is located here:
      http://commons-httpclient.darwinports.com/dports/java/commons-httpclient/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-httpclient


      The commons-httpclient Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: commons-httpclient
      Version: 3.1

      Category: java
      Maintainers: jberry openmaintainer
      Platform: darwin

      Description: Jakarta Commons-HttpClient
      Long Description: Commons-HttpClient provides a framework for working with the client-side of the HTTP protocol.
      Homepage: http://hc.apache.org/httpcomponents-client

      distname ${name}-${version}-src
      Master Sites: apache:httpcomponents/commons-httpclient/source/
      Checksums: md5 2c9b0f83ed5890af02c0df1c1776f39b

      depends_build bin:ant:apache-ant
      depends_lib bin:java:kaffe port:junit port:commons-logging port:commons-codec

      use_configure no

      worksrcdir ${name}-${version}

      build.cmd ant
      build.target dist
      build.args -Djunit.jar=${prefix}/share/java/junit.jar -Dcommons-logging.jar=${prefix}/share/java/commons-logging.jar -Dcommons-codec.jar=${prefix}/share/java/commons-codec.jar

      post-extract {
      file mkdir ${worksrcpath}/lib
      }

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/java ${destroot}${prefix}/share/doc
      xinstall -m 644 ${worksrcpath}/dist/commons-httpclient.jar ${destroot}${prefix}/share/java/
      file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
      }

      livecheck.type regex
      livecheck.url http://hc.apache.org/downloads.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-httpclient
      % sudo port install commons-httpclient
      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-httpclient
      ---> Verifying checksum for commons-httpclient
      ---> Extracting commons-httpclient
      ---> Configuring commons-httpclient
      ---> Building commons-httpclient with target all
      ---> Staging commons-httpclient into destroot
      ---> Installing commons-httpclient
    - 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-httpclient with these commands:
      %  man commons-httpclient
      % apropos commons-httpclient
      % which commons-httpclient
      % locate commons-httpclient

     Where to find more information:

    Darwin Ports



    Lightbox this page.