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

    clojure  most recent diff


    version 1.0.0

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


      The clojure Portfile 52097 2009-06-10 02:55:14Z macsforever2000 macports.org $

      PortSystem 1.0

      Name: clojure
      Version: 1.0.0
      epoch 20090504
      Revision: 1
      Category: lang java
      Maintainers: gmail.com:mdippery
      Description: The Clojure programming language
      Long Description: Clojure is a dynamic programming language for the JVM. It is interactive, yet compiled, with a robust infrastructure for concurrency. It is a functional dialect of Lisp, with a rich set of immutable, persistent data structures and a macro system.
      Homepage: http://clojure.org/
      Platform: darwin
      distname clojure_${version}
      Master Sites: googlecode:clojure

      Checksums: md5 e7a50129040df7fe52287006988ecbb2 sha1 fa7c03be9b30e9462b71aead03ea4487c6b9aeac rmd160 cb4533bf24c96613cfa3a1643cafa2b689c32f83
      distname ${name}_${version}
      use_zip yes

      use_configure no
      build {}

      Variant: readline conflicts rlwrap description {Use readline support} {
      depends_run-append port:jline
      }

      Variant: rlwrap conflicts readline description {Use rlwrap support for tab completion, parenthesis matching} {
      depends_run-append port:rlwrap
      }

      destroot {
      set javadir ${destroot}${prefix}/share/java
      set clojuredir ${javadir}/clojure
      set clojurejar ${clojuredir}/lib/clojure.jar
      set clojurebin ${clojuredir}/bin/clj
      set clojurelink ${prefix}/share/java/clojure/bin/clj
      set clojuresh clj.sh
      set bindir ${destroot}${prefix}/bin

      if {[variant_isset readline]} {
      set clojuresh clj-jline.sh
      }

      if {[variant_isset rlwrap]} {
      set clojuresh clj-rlwrap.sh
      }

      xinstall -m 0755 -d ${javadir}
      xinstall -m 0755 -d ${clojuredir}
      xinstall -m 0755 -d ${clojuredir}/lib
      xinstall -m 0755 -d ${clojuredir}/bin
      xinstall -m 0644 -W ${workpath} clojure-${version}.jar ${clojurejar}
      xinstall -m 0755 -W ${filespath} ${clojuresh} ${clojurebin}

      if {[variant_isset rlwrap]} {
      xinstall -m 0644 -W ${filespath} .clj_completions ${clojuredir}/.clj_completions
      }

      ln -s ${clojurelink} ${bindir}/clj
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.