1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name clojure |
---|
6 | version 20080916 |
---|
7 | categories lang java |
---|
8 | maintainers mpd@cs.wm.edu |
---|
9 | description The Clojure programming language |
---|
10 | long_description Clojure is a dynamic programming language for the JVM. \ |
---|
11 | It is interactive, yet compiled, with a robust \ |
---|
12 | infrastructure for concurrency. It is a functional \ |
---|
13 | dialect of Lisp, with a rich set of immutable, \ |
---|
14 | persistent data structures and a macro system. |
---|
15 | homepage http://clojure.org/ |
---|
16 | platforms darwin |
---|
17 | master_sites http://downloads.sourceforge.net/clojure/ |
---|
18 | |
---|
19 | checksums md5 289c08f9c8cab51615623704b65048cf \ |
---|
20 | sha1 9df36441c3e2568c93608218cb4f6f13cd22bc95 \ |
---|
21 | rmd160 aa581415707e133e656a157644b687b706e74f3d |
---|
22 | distname ${name}_${version} |
---|
23 | use_zip yes |
---|
24 | worksrcdir ${distname} |
---|
25 | |
---|
26 | use_configure no |
---|
27 | build {} |
---|
28 | |
---|
29 | destroot { |
---|
30 | set javadir ${destroot}${prefix}/share/java |
---|
31 | set clojuredir ${javadir}/clojure |
---|
32 | set clojurejar ${clojuredir}/lib/clojure.jar |
---|
33 | set clojurebin ${clojuredir}/bin/clj |
---|
34 | set bindir ${destroot}${prefix}/bin |
---|
35 | |
---|
36 | xinstall -m 0755 -d ${javadir} |
---|
37 | xinstall -m 0755 -d ${clojuredir} |
---|
38 | xinstall -m 0755 -d ${clojuredir}/lib |
---|
39 | xinstall -m 0755 -d ${clojuredir}/bin |
---|
40 | file copy ${workpath}/clojure.jar ${clojurejar} |
---|
41 | file attributes ${clojurejar} -permissions 0644 |
---|
42 | file copy ${filespath}/clj.sh ${clojurebin} |
---|
43 | file attributes ${clojurebin} -permissions 0755 |
---|
44 | system "ln -s ${prefix}/share/java/clojure/bin/clj ${bindir}/clj" |
---|
45 | } |
---|