source: trunk/dports/java/gant/Portfile @ 78331

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

gant: version upgrade and added supported_archs noarch (#29303)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 78331 2011-05-03 18:07:16Z breskeby@macports.org $
2
3PortSystem 1.0
4
5name                            gant
6version                         1.9.5
7categories                      java devel groovy
8maintainers                     breskeby
9description                     A groovy based tool for scripting ant
10long_description        Gant is a tool for scripting Ant tasks using Groovy instead of XML \
11                                        to specify the logic. A Gant specification is a Groovy script and so \
12                                        can bring all the power of Groovy to bear directly, something not \
13                                        possible with Ant scripts. Whilst it might be seen as a competitor \
14                                        to Ant, Gant uses Ant tasks for many of the actions, so Gant is really \
15                                        an alternative way of doing things using Ant, but using a \
16                                        programming language rather than XML to specify the rules.
17                                       
18homepage                        http://gant.codehaus.org/
19platforms                       darwin
20distname                        ${name}-${version}
21master_sites            http://dist.codehaus.org/gant/distributions
22checksums                       md5     6930a7bd5209fb6d1e9e8186fd4b18fb \
23                                        sha1 919c750128af22797b1d53de37c70deda5676ea7 \
24                                        rmd160 2b23c6e2696629d9fb8878568955e459d51ebcc3
25                                               
26worksrcdir                      ${name}-${version}
27set workTarget          ""
28
29use_zip                         yes
30use_bzip2                       no
31use_configure           no
32
33build.cmd                       true
34supported_archs         noarch
35
36platform darwin {
37    extract.post_args   | gnutar -x
38    build.env           JAVA_HOME=/Library/Java/Home
39}
40
41pre-destroot {
42        # Remove extraneous bat files
43        foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
44                file delete $f
45        }
46}
47
48destroot        {
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}
61
62post-activate {
63                ui_msg "****************************************************************************"
64                ui_msg "* Remember to set the environment variable GANT_HOME to the path to"
65                ui_msg "* the gant distribution: ${prefix}/share/java/${name}"
66                ui_msg "****************************************************************************"
67 }
Note: See TracBrowser for help on using the repository browser.