source: trunk/dports/lang/clojure/Portfile

Last change on this file was 154359, checked in by ryandesign@…, 13 months ago

clojure: Fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 154359 2016-10-28 14:30:37Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                clojure
6conflicts           clojure-devel
7epoch               20110929
8version             1.7.0
9license             EPL-1
10categories          lang java
11maintainers         nomaintainer
12description         The Clojure programming language
13long_description    Clojure is a dynamic programming language for the JVM. \
14                    It is interactive, yet compiled, with a robust \
15                    infrastructure for concurrency. It is a functional \
16                    dialect of Lisp, with a rich set of immutable, \
17                    persistent data structures and a macro system.
18homepage            http://clojure.org/
19platforms           darwin
20master_sites        http://central.maven.org/maven2/org/${name}/${name}/${version}
21checksums           rmd160  a4a8485fc0b324d90e7f5e8594de9099f3109c33 \
22                    sha256  4de303794da1766c547f1a1baaf368abfdf49d4cd8aaa237e5b2ffbbcd03cf93
23
24use_zip             yes
25
26use_configure       no
27build               {}
28
29variant rlwrap description {Use rlwrap support for tab completion, parenthesis matching} {
30    depends_run-append port:rlwrap
31}
32
33destroot {
34    set javadir ${prefix}/share/java
35    set clojuredir ${javadir}/clojure
36    set clojurelibdir ${clojuredir}/lib
37    set clojurebindir ${clojuredir}/bin
38    set clojurebin ${clojurebindir}/clj
39    set clojuresh clj.sh
40
41    if {[variant_isset rlwrap]} {
42        set clojuresh clj-rlwrap.sh
43    }
44
45    xinstall -m 0755 -d ${destroot}${javadir}
46    xinstall -m 0755 -d ${destroot}${clojuredir}
47    xinstall -m 0755 -d ${destroot}${clojurelibdir}
48    xinstall -m 0755 -d ${destroot}${clojurebindir}
49    xinstall -m 0644 -W ${workpath} clojure-${version}/clojure-${version}.jar ${destroot}${clojurelibdir}/clojure.jar
50    xinstall -m 0755 -W ${filespath} ${clojuresh} ${destroot}${clojurebin}
51
52    if {[variant_isset rlwrap]} {
53        xinstall -m 0644 -W ${filespath} .clj_completions  ${destroot}${clojuredir}/.clj_completions
54    }
55
56    ln -s ${clojurebin} ${destroot}${prefix}/bin/clj
57
58    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
59    xinstall -m 0755 -d ${destroot}${prefix}/share/examples/${name}
60    xinstall -m 0644 -W ${worksrcpath} \
61            epl-v10.html \
62            doc/clojure/pprint/CommonLispFormat.markdown \
63            doc/clojure/pprint/PrettyPrinting.markdown \
64            ${destroot}${prefix}/share/doc/${name}
65    file copy ${worksrcpath}/test/clojure/test_clojure \
66              ${worksrcpath}/test/clojure/test_helper.clj \
67              ${destroot}${prefix}/share/examples/${name}
68}
69
70livecheck.type      regex
71livecheck.url       http://central.maven.org/maven2/org/clojure/clojure/
72livecheck.regex     {"([0-9.]+)/"}
Note: See TracBrowser for help on using the repository browser.