Ticket #16572: Portfile

File Portfile, 1.6 KB (added by mpdippery@…, 16 years ago)

An improved Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                clojure
6version             20080916
7categories          lang java
8maintainers         mpd@cs.wm.edu
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        http://downloads.sourceforge.net/clojure/
18
19checksums           md5 289c08f9c8cab51615623704b65048cf \
20                    sha1 9df36441c3e2568c93608218cb4f6f13cd22bc95 \
21                    rmd160 aa581415707e133e656a157644b687b706e74f3d
22distname            ${name}_${version}
23use_zip             yes
24worksrcdir          ${distname}
25
26use_configure       no
27build               {}
28
29destroot {
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}