# -*- 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 PortSystem 1.0 PortGroup java 1.0 name leiningen version 2.10.0 categories devel java maintainers {easieste @easye} openmaintainer supported_archs noarch platforms any license EPL-1 description A build tool for Clojure designed to not set your hair on fire. long_description {*}${description} homepage https://leiningen.org # Codeberg attachments use UUIDs for non-source archives set uuid 43cebda5-a7c2-405b-b641-5143a00051b5 master_sites \ https://codeberg.org/leiningen/leiningen/archive/:source \ https://codeberg.org/attachments/${uuid}?dummy=:standalone distfiles \ ${version}.tar.gz:source \ leiningen-${version}-standalone.jar:standalone checksums \ ${version}.tar.gz \ rmd160 c341d4470a9db737fb95399634569e775e81f164 \ sha256 6b04dbe0934ab4c34dc27b0055ad290d2ba9c0f454c1bda7defa58d62946b743 \ size 973533 \ leiningen-${version}-standalone.jar \ rmd160 d60d82959270188c2d77b747d5e2953b63a786b1 \ sha256 d27299bad34075ac2864d0bd0559f835c6e2c476c0b0a283bcbdb574fdadbb34 \ size 12758097 java.version 1.8+ extract.only ${version}.tar.gz worksrcdir ${name} use_configure no set javadir ${prefix}/share/java/leiningen set lein_jar_dest ${javadir}/leiningen-${version}-standalone.jar build { reinplace -E "s|^LEIN_JAR=.*$|LEIN_JAR=${lein_jar_dest}|" ${worksrcpath}/bin/lein-pkg } destroot { xinstall -m 0755 -d ${destroot}${javadir} xinstall -m 0755 ${worksrcpath}/bin/lein-pkg ${destroot}${prefix}/bin/lein xinstall -m 0644 ${distpath}/leiningen-${version}-standalone.jar ${destroot}${lein_jar_dest} }