source: trunk/dports/devel/gradle/Portfile @ 51863

Last change on this file since 51863 was 51863, checked in by breskeby@…, 8 years ago

removing dependency to groovy port. (#19872)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 51863 2009-06-05 18:53:43Z breskeby@macports.org $
2
3PortSystem 1.0
4
5name                            gradle
6version                         0.6.1
7categories                      devel java groovy
8maintainers                     breskeby
9description                     An open-source build system that is based on the Groovy language
10long_description        Gradle is a build system which offers you ease, power and freedom. \
11                                        You can choose the balance for yourself. It has powerful multi-project build \
12                                        support. It has a layer on top of Ivy that provides a build-by-convention \
13                                        integration for Ivy. It gives you always the choice between the flexibility \
14                                        of Ant and the convenience of a build-by-convention behavior.
15                                       
16homepage                        http://www.gradle.org/
17platforms                       darwin
18distname                        ${name}-${version}-src
19master_sites            http://dist.codehaus.org/gradle
20checksums                       md5     ddd95c1dc2d9958193a0bf7228017748 \
21                                        sha1 357ddf074214b4df1fbca5879c8b282ab24f21cc \
22                                        rmd160 afa356483a2b19186edf89b5d892edb8ed97124a
23                                               
24worksrcdir                      ${name}-${version}
25set workTarget          ""
26
27use_zip                         yes
28use_configure           no
29
30build.cmd                       ./gradlew
31build.target            clean explodedDistBase -Dskip.test
32
33platform darwin {
34    extract.post_args   | gnutar -x
35    build.env           JAVA_HOME=/Library/Java/Home
36}
37
38pre-destroot {
39        # Remove extraneous bat files
40        foreach f [glob -directory ${worksrcpath}${workTarget}/build/distributions/exploded/bin *.bat] {
41                file 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        file copy ${worksrcpath}/build/distributions/exploded/bin                                       \
51                          ${worksrcpath}/build/distributions/exploded/lib                                       \
52                          ${worksrcpath}/build/distributions/exploded/gradle-imports            \
53                          ${worksrcpath}/build/distributions/exploded/LICENSE                           \
54                          ${worksrcpath}/build/distributions/exploded/NOTICE                            \
55                          ${worksrcpath}/build/distributions/exploded/plugin.properties         \
56                          ${destroot}${prefix}/share/java/${name}
57
58        # Symlink gradle into the bin directory
59        system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gradle"
60}
61
62post-activate {
63                ui_msg "****************************************************************************"
64                ui_msg "* Remember to set the environment variable GRADLE_HOME to the path to"
65                ui_msg "* the gradle distribution: ${prefix}/share/java/${name}"
66                ui_msg "****************************************************************************"
67 }
Note: See TracBrowser for help on using the repository browser.