Ticket #22720: Portfile

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