Ticket #19541: Portfile

File Portfile, 1.8 KB (added by ian.eure@…, 16 years ago)

New portfile

Line 
1# $Id$
2
3PortSystem          1.0
4
5name                clojure
6version             1.0.0
7categories          lang java
8maintainers         cs.wm.edu:mpd
9description         The Clojure programming language
10long_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.
15homepage            http://clojure.org/
16platforms           darwin
17master_sites        googlecode:clojure
18
19checksums           md5 e7a50129040df7fe52287006988ecbb2 \
20                    sha1 fa7c03be9b30e9462b71aead03ea4487c6b9aeac \
21                    rmd160 cb4533bf24c96613cfa3a1643cafa2b689c32f83
22distname            ${name}_${version}
23use_zip             yes
24worksrcdir          .
25use_configure       no
26
27build               {}
28
29variant readline description {Use readline support} {
30    depends_run-append port:jline
31}
32
33destroot {
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}