source: trunk/dports/devel/gradle/Portfile

Last change on this file was 152943, checked in by khindenburg@…, 14 months ago

gradle: update to 3.1 maintainer #52282

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
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# $Id: Portfile 152943 2016-09-21 02:16:31Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gradle
7version             3.1
8categories          devel java groovy
9license             Apache-2
10maintainers         madlon-kay.com:aaron+macports openmaintainer
11
12description         An open-source build system that is based on the Groovy language
13long_description    Gradle is a build system which offers you ease, power and freedom. \
14                    You can choose the balance for yourself. It has powerful multi-project build \
15                    support. It has a layer on top of Ivy that provides a build-by-convention \
16                    integration for Ivy. It gives you always the choice between the flexibility \
17                    of Ant and the convenience of a build-by-convention behavior.
18
19homepage            http://www.gradle.org/
20platforms           darwin
21distname            ${name}-${version}-bin
22master_sites        https://services.gradle.org/distributions
23
24checksums           rmd160  55a7cba64df5e6d342ef70cfe47df8a512a9250e \
25                    sha256  c7de3442432253525902f7e8d7eac8b5fd6ce1623f96d76916af6d0e383010fc
26
27worksrcdir          ${name}-${version}
28
29use_zip             yes
30use_configure       no
31
32build.cmd           true
33
34platform darwin {
35    build.env       JAVA_HOME=/Library/Java/Home
36}
37
38pre-destroot {
39    # Remove extraneous bat files
40    foreach f [glob -directory ${worksrcpath}/bin *.bat] {
41        delete $f
42    }
43}
44
45destroot    {
46    # Create the target java directory
47    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
48
49    # Copy over the needed elements of our directory tree
50    copy ${worksrcpath}/bin \
51        ${worksrcpath}/lib \
52        ${worksrcpath}/LICENSE \
53        ${worksrcpath}/NOTICE \
54        ${destroot}${prefix}/share/java/${name}
55
56    # Symlink gradle into the bin directory
57    ln -s ${prefix}/share/java/${name}/bin/gradle ${destroot}${prefix}/bin
58}
59
60notes "
61Remember to set the environment variable GRADLE_HOME to the path to the gradle\
62distribution: ${prefix}/share/java/${name}
63"
64
65livecheck.type  regex
66livecheck.url   ${master_sites}
67livecheck.regex ${name}-(\\d+\\.\\d+(\\.\\d+)?)-all\\.zip
Note: See TracBrowser for help on using the repository browser.