Ticket #59684: leiningen-binary-2.9.1.patch

File leiningen-binary-2.9.1.patch, 3.4 KB (added by easye, 5 years ago)
  • devel/leiningen/Portfile

    # 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  
    11# -*- 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
    22
    33PortSystem          1.0
    4 PortGroup           github 1.0
     4PortGroup           java 1.0
     5# *sigh* can't seem to get the git portgroup to have additional distfiles, so do everything manually
    56
    6 github.setup        technomancy leiningen 2.6.1
     7name                leiningen
     8version             2.9.1
    79categories          devel java
    8 maintainers         nomaintainer
     10maintainers         openmaintainer easieste
    911platforms           darwin
    1012supported_archs     noarch
    1113license             EPL-1
     
    1315description         A build tool for Clojure designed to not set your hair on fire.
    1416long_description    ${description}
    1517
    16 checksums           rmd160  232ed012595ac8e5d8ad75a7e20cdfe2f554a5de \
    17                     sha256  7e1b49d21c7cdfb4b897493914a5965ad6d8c0217fcc54b3de42cc963c723e2e
    18 
    19 depends_build       port:clojure \
    20                     port:clojure-contrib \
    21                     port:apache-ant \
    22                     port:maven2
    2318depends_run         port:jline
    2419
    25 post-patch {
    26     copy ${filespath}/build.xml ${worksrcpath}
    27     reinplace "s|__PREFIX__|${prefix}/share/java|" ${worksrcpath}/build.xml
     20master_sites \
     21    https://github.com/technomancy/leiningen/archive/:source \
     22    https://github.com/technomancy/leiningen/releases/download/${version}/:standalone
     23
     24distfiles           \
     25    ${version}.tar.gz:source \
     26    leiningen-${version}-standalone.zip:standalone
     27
     28checksums           \
     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
     38java.version    1.8+
     39
     40extract.only    ${version}.tar.gz
     41
     42use_configure   no
     43
     44set javadir       ${prefix}/share/java/leiningen
     45set lein_jar_dest ${javadir}/leiningen-${version}-standalone.jar
     46
     47build {
     48    reinplace -E  "s|^LEIN_JAR=.*$|LEIN_JAR=${lein_jar_dest}|" ${worksrcpath}/bin/lein-pkg
    2849}
    2950
    30 use_configure       no
    31 
    32 build.cmd           ant
    33 build.target        jar
    34 
    3551destroot {
    36     set javadir ${prefix}/share/java
    37     reinplace "s|__PREFIX__|${javadir}|" ${worksrcpath}/bin/lein
    3852    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}
    4155}