1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name clojure |
---|
6 | version 1.0.0 |
---|
7 | categories lang java |
---|
8 | maintainers cs.wm.edu:mpd |
---|
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 googlecode:clojure |
---|
18 | |
---|
19 | checksums md5 e7a50129040df7fe52287006988ecbb2 \ |
---|
20 | sha1 fa7c03be9b30e9462b71aead03ea4487c6b9aeac \ |
---|
21 | rmd160 cb4533bf24c96613cfa3a1643cafa2b689c32f83 |
---|
22 | distname ${name}_${version} |
---|
23 | use_zip yes |
---|
24 | worksrcdir . |
---|
25 | use_configure no |
---|
26 | |
---|
27 | build {} |
---|
28 | |
---|
29 | variant readline description {Use readline support} { |
---|
30 | depends_run-append port:jline |
---|
31 | } |
---|
32 | |
---|
33 | destroot { |
---|
34 | set javadir ${destroot}${prefix}/share/java |
---|
35 | set clojuredir ${javadir}/clojure |
---|
36 | set clojurejar ${clojuredir}/lib/clojure.jar |
---|
37 | set clojurebin ${clojuredir}/bin/clj |
---|
38 | set clojurelink ${prefix}/share/java/clojure/bin/clj |
---|
39 | set clojuresh clj.sh |
---|
40 | set bindir ${destroot}${prefix}/bin |
---|
41 | |
---|
42 | if {[variant_isset readline]} { |
---|
43 | set clojuresh clj-jline.sh |
---|
44 | } |
---|
45 | |
---|
46 | xinstall -m 0755 -d ${javadir} |
---|
47 | xinstall -m 0755 -d ${clojuredir} |
---|
48 | xinstall -m 0755 -d ${clojuredir}/lib |
---|
49 | xinstall -m 0755 -d ${clojuredir}/bin |
---|
50 | xinstall -m 0644 -W ${workpath} ${name}-${version}.jar ${clojurejar} |
---|
51 | xinstall -m 0755 -W ${filespath} ${clojuresh} ${clojurebin} |
---|
52 | ln -s ${clojurelink} ${bindir}/clj |
---|
53 | } |
---|