# -*- 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
categories devel java groovy
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/
distname ${name}-${version}-bin
master_sites https://services.gradle.org/distributions
checksums rmd160 3e67c0ba3f27884538782687134fa756ba76cc1a \
sha256 748c33ff8d216736723be4037085b8dc342c6a0f309081acf682c9803e407357 \
worksrcdir ${name}-${version}
# Remove extraneous bat files
delete {*}[glob ${worksrcpath}/bin/*.bat]
# 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 \
${destroot}${prefix}/share/java/${name}
# Symlink gradle into the bin directory
ln -s ${prefix}/share/java/${name}/bin/gradle ${destroot}${prefix}/bin
livecheck.url ${master_sites}
livecheck.regex ${name}-(\\d+\\.\\d+(\\.\\d+)?)-all\\.zip