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}-src |
---|
19 | master_sites http://dist.codehaus.org/gradle |
---|
20 | checksums md5 0a629160555918179e6f18355b34bd12 \ |
---|
21 | sha1 eb544bf902d954728f1188d1be37b97b974b87dc \ |
---|
22 | rmd160 a89ff353e12c534b214aca13cc266e3fb0d41aa4 |
---|
23 | |
---|
24 | worksrcdir ${name}-${version} |
---|
25 | set workTarget "" |
---|
26 | |
---|
27 | use_zip yes |
---|
28 | use_bzip2 no |
---|
29 | use_configure no |
---|
30 | |
---|
31 | worksrcdir gradle-${version} |
---|
32 | |
---|
33 | build.cmd ./gradlew |
---|
34 | build.target clean explodedDistBase -Dskip.test |
---|
35 | depends_lib port:groovy |
---|
36 | |
---|
37 | platform darwin { |
---|
38 | extract.post_args | gnutar -x |
---|
39 | build.env JAVA_HOME=/Library/Java/Home |
---|
40 | } |
---|
41 | |
---|
42 | pre-destroot { |
---|
43 | # Remove extraneous bat files |
---|
44 | foreach f [glob -directory ${worksrcpath}${workTarget}/build/distributions/exploded/bin *.bat] { |
---|
45 | file delete $f |
---|
46 | } |
---|
47 | } |
---|
48 | |
---|
49 | destroot { |
---|
50 | # Create the target java directory |
---|
51 | xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} |
---|
52 | |
---|
53 | # Copy over the needed elements of our directory tree |
---|
54 | file copy ${worksrcpath}/build/distributions/exploded/bin \ |
---|
55 | ${worksrcpath}/build/distributions/exploded/lib \ |
---|
56 | ${worksrcpath}/build/distributions/exploded/gradle-imports \ |
---|
57 | ${worksrcpath}/build/distributions/exploded/LICENSE \ |
---|
58 | ${worksrcpath}/build/distributions/exploded/NOTICE \ |
---|
59 | ${worksrcpath}/build/distributions/exploded/plugin.properties \ |
---|
60 | ${destroot}${prefix}/share/java/${name} |
---|
61 | |
---|
62 | # Symlink gradle into the bin directory |
---|
63 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gradle" |
---|
64 | } |
---|
65 | |
---|
66 | post-activate { |
---|
67 | ui_msg "****************************************************************************" |
---|
68 | ui_msg "* Remember to set the environment variable GRADLE_HOME to the path to" |
---|
69 | ui_msg "* the gradle distribution: ${prefix}/share/java/${name}" |
---|
70 | ui_msg "****************************************************************************" |
---|
71 | } |
---|