1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name gradle |
---|
6 | version 0.6 |
---|
7 | categories devel java groovy |
---|
8 | maintainers rene@breskeby.com |
---|
9 | description An open-source build system that is based on the Groovy language |
---|
10 | long_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 | |
---|
16 | homepage http://www.gradle.org/ |
---|
17 | platforms darwin |
---|
18 | distname ${name}-${version}-bin |
---|
19 | master_sites http://dist.codehaus.org/gradle |
---|
20 | checksums md5 42e7dd270bdb187a594d1167a3f0ad71 \ |
---|
21 | sha1 bcf25487290326e4611c61154b0bdc7bc7244ea6 \ |
---|
22 | rmd160 38b053bf23b39b694a66c0a490bf14601eed65be |
---|
23 | |
---|
24 | worksrcdir ${name}-${version} |
---|
25 | set workTarget "" |
---|
26 | |
---|
27 | use_zip yes |
---|
28 | use_bzip2 no |
---|
29 | use_configure no |
---|
30 | |
---|
31 | depends_lib port:groovy |
---|
32 | build.cmd true |
---|
33 | |
---|
34 | platform darwin { |
---|
35 | extract.post_args | gnutar -x |
---|
36 | build.env JAVA_HOME=/Library/Java/Home |
---|
37 | } |
---|
38 | |
---|
39 | pre-destroot { |
---|
40 | # Remove extraneous bat files |
---|
41 | foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] { |
---|
42 | file delete $f |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | destroot { |
---|
47 | # Create the target java directory |
---|
48 | xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} |
---|
49 | |
---|
50 | # Copy over the needed elements of our directory tree |
---|
51 | file copy ${worksrcpath}/bin \ |
---|
52 | ${worksrcpath}/lib \ |
---|
53 | ${worksrcpath}/gradle-imports \ |
---|
54 | ${worksrcpath}/LICENSE \ |
---|
55 | ${worksrcpath}/NOTICE \ |
---|
56 | ${worksrcpath}/plugin.properties \ |
---|
57 | ${destroot}${prefix}/share/java/${name} |
---|
58 | |
---|
59 | # Symlink gradle into the bin directory |
---|
60 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gradle" |
---|
61 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/startGradle" |
---|
62 | } |
---|
63 | |
---|
64 | post-activate { |
---|
65 | ui_msg "****************************************************************************" |
---|
66 | ui_msg "* Remember to set the environment variable GRADLE_HOME to the path to" |
---|
67 | ui_msg "* the gradle distribution: ${prefix}/share/java/${name}" |
---|
68 | ui_msg "****************************************************************************" |
---|
69 | } |
---|