# -*- 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 gradle version 8.12 revision 0 categories devel java groovy license Apache-2 maintainers {amake @amake} openmaintainer description An open-source build system that is based on the Groovy language long_description Gradle is a build system which offers you ease, power and freedom. \ You can choose the balance for yourself. It has powerful multi-project build \ support. It has a layer on top of Ivy that provides a build-by-convention \ integration for Ivy. It gives you always the choice between the flexibility \ of Ant and the convenience of a build-by-convention behavior. homepage https://gradle.org/ platforms {darwin any} supported_archs noarch distname ${name}-${version}-bin master_sites https://services.gradle.org/distributions # Update checksums for variant when updating these! checksums rmd160 9cdf94b9f4c1e38a52aaa3a3ad48cf7c53ddc4d4 \ sha256 7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03 \ size 136556108 worksrcdir ${name}-${version} use_zip yes use_configure no java.version 1.8+ java.fallback openjdk8 build {} pre-destroot { # Remove extraneous bat files delete {*}[glob ${worksrcpath}/bin/*.bat] } destroot { # Create the target java directory xinstall -m 0755 -d ${destroot}${prefix}/share/java/${name} # Copy over the needed elements of our directory tree copy ${worksrcpath}/bin \ ${worksrcpath}/lib \ ${worksrcpath}/LICENSE \ ${worksrcpath}/NOTICE \ ${worksrcpath}/README \ ${destroot}${prefix}/share/java/${name} # Symlink gradle into the bin directory ln -s ${prefix}/share/java/${name}/bin/gradle ${destroot}${prefix}/bin } variant all description {Install supplemental documentation and source code} { distname ${name}-${version}-all checksums rmd160 b393171397eef00b6009a920a34b46526c2e510e \ sha256 7ebdac923867a3cec0098302416d1e3c6c0c729fc4e2e05c10637a8af33a76c5 \ size 229762718 post-destroot { xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name} copy ${worksrcpath}/src \ ${worksrcpath}/docs \ ${destroot}${prefix}/share/doc/${name} } } notes { For Bash and Zsh completion support, install port 'gradle-completion'. } livecheck.type regex livecheck.url ${master_sites} livecheck.regex ${name}-(\\d+\\.\\d+(\\.\\d+)?)-all\\.zip