# $Id: Portfile 84907 2011-10-04 14:47:13Z and.damore@macports.org $

PortSystem          1.0

name                clojure-contrib-devel
version             git-20100220
categories          lang java
maintainers         ieure
description         The Clojure programming language (development) - Contrib
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/
platforms           darwin
depends_build       port:clojure

fetch.type          git
git.url             git://github.com/richhickey/clojure-contrib.git
git.branch          6f2b1d73b50b7b9f0d753aa0f5fd343b67f75bf6

use_configure       no

build.cmd           ant
build.target        jar

destroot {
    set javadir ${destroot}${prefix}/share/java
    set clojuredir ${javadir}/clojure/lib
    set contribjar ${clojuredir}/clojure-contrib.jar

    xinstall -m 0755 -d ${javadir}
    xinstall -m 0755 -d ${clojuredir}
    xinstall -m 0644 -W ${worksrcpath} clojure-contrib.jar ${contribjar}
}
