source: trunk/dports/devel/apache-ant/Portfile @ 1528

Last change on this file since 1528 was 1528, checked in by jkh, 18 years ago

Permanently retire the contents { .. } hack. Sorry. It was convenient,
it looked nicer in many cases, but it was frankly more of a special-case pain
than it was worth in terms of its impact on other infrastructural routines
that expected to be able to deal with the contents procedure the same as all
the others. Better to just throw this out all at once and nuke all existing
examples of it so nobody tries to use it in the future. The support for it
has also been fundamentally removed, so it also won't work if people accidently
try to use it.

  • Property svn:eol-style set to native
File size: 1.3 KB
1PortSystem                              1.0
2name                                    jakarta-ant
3version                                 1.5.1
4revision                                0
5categories                              java jakarta
7description                             Java opensource build system
8long_description                        Ant is a Java based build tool. In theory it is kind of like \
9                                        make without make's wrinkles. Ant uses XML build files that defines \
10                                        a set of targets. Each target has dependencies (other targets) and \
11                                        contains a set of tasks to perform.
13platforms                               darwin freebsd
15distname                                ${name}-${version}-src
16worksrcdir                              ${name}-${version}
17checksums                               md5 a9d1d1cb1c042ef2fffc21f31d96d4a9
18set antdir              java/${name}
19set instdir                             ${prefix}/${antdir}
20set chmodarg          
21build.cmd                               ./
22build.args                              ${chmodarg}${name}                dist
25include                                 contents
27variant darwin {
28    build.env                           JAVA_HOME=/Library/Java/Home           
29    extract.post_args           | gnutar -x
32configure { }
34install {
35    system "mkdir -p ${prefix}/java"
36        system "cd ${worksrcpath}; cp -R ${name} ${prefix}/java"
37        system "rm ${prefix}/java/${name}/bin/*.bat"
38    system "chmod -R ugo+r ${prefix}/java/${name}"
39        system "ln -s ${prefix}/java/${name}/bin/ant ${prefix}/bin/"
Note: See TracBrowser for help on using the repository browser.