# HG changeset patch
# Parent 031aacccbf3e48405f5e3e849d72d614c0b8794d
devel/leiningen: replace with binary version to update to leiningen-2.9.1
Use the `bin/lein-pkg` version of Leiningen which doesn't attempt to
do autoupdates along with the binary standalone version to form the
basis for a more maintainable Leiningen release strategy.
diff -r 031aacccbf3e -r b453533d964d devel/leiningen/Portfile
a
|
b
|
|
1 | 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | | PortGroup github 1.0 |
| 4 | PortGroup java 1.0 |
| 5 | # *sigh* can't seem to get the git portgroup to have additional distfiles, so do everything manually |
5 | 6 | |
6 | | github.setup technomancy leiningen 2.6.1 |
| 7 | name leiningen |
| 8 | version 2.9.1 |
7 | 9 | categories devel java |
8 | | maintainers nomaintainer |
| 10 | maintainers openmaintainer easieste |
9 | 11 | platforms darwin |
10 | 12 | supported_archs noarch |
11 | 13 | license EPL-1 |
… |
… |
|
13 | 15 | description A build tool for Clojure designed to not set your hair on fire. |
14 | 16 | long_description ${description} |
15 | 17 | |
16 | | checksums rmd160 232ed012595ac8e5d8ad75a7e20cdfe2f554a5de \ |
17 | | sha256 7e1b49d21c7cdfb4b897493914a5965ad6d8c0217fcc54b3de42cc963c723e2e |
18 | | |
19 | | depends_build port:clojure \ |
20 | | port:clojure-contrib \ |
21 | | port:apache-ant \ |
22 | | port:maven2 |
23 | 18 | depends_run port:jline |
24 | 19 | |
25 | | post-patch { |
26 | | copy ${filespath}/build.xml ${worksrcpath} |
27 | | reinplace "s|__PREFIX__|${prefix}/share/java|" ${worksrcpath}/build.xml |
| 20 | master_sites \ |
| 21 | https://github.com/technomancy/leiningen/archive/:source \ |
| 22 | https://github.com/technomancy/leiningen/releases/download/${version}/:standalone |
| 23 | |
| 24 | distfiles \ |
| 25 | ${version}.tar.gz:source \ |
| 26 | leiningen-${version}-standalone.zip:standalone |
| 27 | |
| 28 | checksums \ |
| 29 | ${version}.tar.gz \ |
| 30 | rmd160 4a463058795b5317e434b48e7b72b7eccbd288f5 \ |
| 31 | sha256 a4c239b407576f94e2fef5bfa107f0d3f97d0b19c253b08860d9609df4ab8b29 \ |
| 32 | size 734694 \ |
| 33 | leiningen-${version}-standalone.zip \ |
| 34 | rmd160 a2ea357c3a988ad242ba23354f70633e9bb7336b \ |
| 35 | sha256 ea7c831a4f5c38b6fc3926c6ad32d1d4b9b91bf830a715ecff5a70a18bda55f8 \ |
| 36 | size 14621704 |
| 37 | |
| 38 | java.version 1.8+ |
| 39 | |
| 40 | extract.only ${version}.tar.gz |
| 41 | |
| 42 | use_configure no |
| 43 | |
| 44 | set javadir ${prefix}/share/java/leiningen |
| 45 | set lein_jar_dest ${javadir}/leiningen-${version}-standalone.jar |
| 46 | |
| 47 | build { |
| 48 | reinplace -E "s|^LEIN_JAR=.*$|LEIN_JAR=${lein_jar_dest}|" ${worksrcpath}/bin/lein-pkg |
28 | 49 | } |
29 | 50 | |
30 | | use_configure no |
31 | | |
32 | | build.cmd ant |
33 | | build.target jar |
34 | | |
35 | 51 | destroot { |
36 | | set javadir ${prefix}/share/java |
37 | | reinplace "s|__PREFIX__|${javadir}|" ${worksrcpath}/bin/lein |
38 | 52 | xinstall -m 0755 -d ${destroot}${javadir} |
39 | | xinstall -m 0755 ${worksrcpath}/bin/lein ${destroot}${prefix}/bin |
40 | | xinstall -m 0644 ${worksrcpath}/leiningen.jar ${destroot}${javadir} |
| 53 | xinstall -m 0755 ${worksrcpath}/bin/lein-pkg ${destroot}${prefix}/bin/lein |
| 54 | xinstall -m 0644 ${distpath}/leiningen-${version}-standalone.zip ${destroot}${lein_jar_dest} |
41 | 55 | } |