source: trunk/dports/lang/clojure-devel/Portfile

Last change on this file was 138661, checked in by ryandesign@…, 2 years ago

clojure-contrib, clojure-contrib-devel, clojure-devel, leiningen, maven-ant-tasks, tokyocabinet-clj, tokyocabinet-java: ports abandoned by ieure (#47616)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 138661 2015-07-15 04:23:39Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                clojure-devel
6conflicts           clojure
7version             1.1.0-rc2
8revision            0
9categories          lang java
10maintainers         nomaintainer
11description         The Clojure programming language (development version)
12long_description    Clojure is a dynamic programming language for the JVM. \
13                    It is interactive, yet compiled, with a robust \
14                    infrastructure for concurrency. It is a functional \
15                    dialect of Lisp, with a rich set of immutable, \
16                    persistent data structures and a macro system.
17homepage            http://clojure.org/
18platforms           darwin
19
20fetch.type          git
21git.url             git://github.com/richhickey/clojure.git
22git.branch          d548cf2078846ec06336d2357435bb87959281e1
23
24
25
26use_configure       no
27build.cmd           ant
28build.target        jar
29
30variant readline conflicts rlwrap description {Use readline support} {
31    depends_run-append port:jline
32}
33
34variant rlwrap conflicts readline description {Use rlwrap support for tab completion, parenthesis matching} {
35    depends_run-append port:rlwrap
36}
37
38destroot {
39    set javadir ${destroot}${prefix}/share/java
40    set clojuredir ${javadir}/clojure
41    set clojurejar ${clojuredir}/lib/clojure.jar
42    set clojurebin ${clojuredir}/bin/clj
43    set clojurelink ${prefix}/share/java/clojure/bin/clj
44    set clojuresh clj.sh
45    set bindir ${destroot}${prefix}/bin
46   
47    if {[variant_isset readline]} {
48        set clojuresh clj-jline.sh
49    }
50   
51    if {[variant_isset rlwrap]} {
52        set clojuresh clj-rlwrap.sh
53    }
54   
55    xinstall -m 0755 -d ${javadir}
56    xinstall -m 0755 -d ${clojuredir}
57    xinstall -m 0755 -d ${clojuredir}/lib
58    xinstall -m 0755 -d ${clojuredir}/bin
59    xinstall -m 0644 -W ${worksrcpath} clojure-${version}.jar ${clojurejar}
60    xinstall -m 0755 -W ${filespath} ${clojuresh} ${clojurebin}
61   
62    if {[variant_isset rlwrap]} {
63        xinstall -m 0644 -W ${filespath} .clj_completions  ${clojuredir}/.clj_completions
64    }
65   
66    ln -s ${clojurelink} ${bindir}/clj
67}
Note: See TracBrowser for help on using the repository browser.