1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name gant |
---|
6 | version 1.6.1 |
---|
7 | categories java devel groovy |
---|
8 | maintainers rene@breskeby.com |
---|
9 | description Gant is a tool for scripting Ant tasks using Groovy instead of XML \ |
---|
10 | to specify the logic. A Gant specification is a Groovy script and so \ |
---|
11 | can bring all the power of Groovy to bear directly, something not \ |
---|
12 | possible with Ant scripts. Whilst it might be seen as a competitor \ |
---|
13 | to Ant, Gant uses Ant tasks for many of the actions, so Gant is really \ |
---|
14 | an alternative way of doing things using Ant, but using a \ |
---|
15 | programming language rather than XML to specify the rules. |
---|
16 | |
---|
17 | homepage http://gant.codehaus.org/ |
---|
18 | platforms darwin |
---|
19 | distname ${name}-${version}_groovy-1.6.0 |
---|
20 | extract.suffix .tgz |
---|
21 | master_sites http://dist.codehaus.org/gant/distributions |
---|
22 | checksums md5 486c8d96f6a41eb7e00b177ef92e7917 \ |
---|
23 | sha1 468111aa3e86a506f8c3820c1ea195b0c0ac910b \ |
---|
24 | rmd160 c9d909b5c63dd89cf6776e391187cb37c5a80041 |
---|
25 | |
---|
26 | worksrcdir ${name}-${version} |
---|
27 | set workTarget "" |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | patchfiles GANT-79.patch |
---|
32 | |
---|
33 | build.cmd true |
---|
34 | |
---|
35 | depends_run port:groovy |
---|
36 | |
---|
37 | platform darwin { |
---|
38 | extract.post_args | gnutar -x |
---|
39 | } |
---|
40 | |
---|
41 | pre-destroot { |
---|
42 | # Remove extraneous bat files |
---|
43 | foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] { |
---|
44 | file delete $f |
---|
45 | } |
---|
46 | } |
---|
47 | |
---|
48 | destroot { |
---|
49 | # Create the target java directory |
---|
50 | xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} |
---|
51 | |
---|
52 | # Copy over the needed elements of our directory tree |
---|
53 | file copy ${worksrcpath}/bin \ |
---|
54 | ${worksrcpath}/lib \ |
---|
55 | ${worksrcpath}/conf \ |
---|
56 | ${destroot}${prefix}/share/java/${name} |
---|
57 | |
---|
58 | # Symlink gant into the bin directory |
---|
59 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gant" |
---|
60 | } |
---|