1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name leiningen |
---|
6 | version 0.5.0 |
---|
7 | revision 1 |
---|
8 | categories devel java |
---|
9 | maintainers gmail.com:ian.eure |
---|
10 | description A build tool for Clojure designed to not set your hair on fire. |
---|
11 | long_description ${description} |
---|
12 | homepage http://github.com/technomancy/${name} |
---|
13 | platforms darwin |
---|
14 | depends_build port:clojure-devel port:clojure-contrib-devel \ |
---|
15 | port:apache-ant port:maven2 port:maven-ant-tasks |
---|
16 | |
---|
17 | master_sites http://download.github.com/ |
---|
18 | distname technomancy-${name}-f97228f |
---|
19 | extract.suffix .tar.gz |
---|
20 | checksums md5 9f63981bbcf11272270bdff0747fff2f \ |
---|
21 | sha1 e312bbf39e02d9272f6b118addf50f580d9aaa20 \ |
---|
22 | rmd160 617285d1941fdc3945112a035512880b59197a5b |
---|
23 | |
---|
24 | patchfiles patch-bin-lein.diff |
---|
25 | patch.pre_args -p1 |
---|
26 | |
---|
27 | #use_configure no |
---|
28 | |
---|
29 | configure { |
---|
30 | copy ${filespath}/build.xml ${worksrcpath} |
---|
31 | reinplace "s|__PREFIX__|${prefix}/share/java|" ${worksrcpath}/build.xml |
---|
32 | } |
---|
33 | |
---|
34 | build.cmd ant |
---|
35 | build.target jar |
---|
36 | |
---|
37 | destroot { |
---|
38 | set javadir ${prefix}/share/java |
---|
39 | reinplace "s|__PREFIX__|${javadir}|" ${worksrcpath}/bin/lein |
---|
40 | xinstall -m 0755 -d ${destroot}${javadir} |
---|
41 | xinstall -m 0755 ${worksrcpath}/bin/lein ${destroot}${prefix}/bin |
---|
42 | xinstall -m 0644 ${worksrcpath}/leiningen.jar ${destroot}${javadir} |
---|
43 | } |
---|