source: trunk/dports/devel/jakarta-ant/Portfile @ 1553

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

Change ln -s to ln -fs to cope with existing install.

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1PortSystem                              1.0
2name                                    jakarta-ant
3version                                 1.5.1
4revision                                0
5categories                              java jakarta
6maintainers                             sean@fuzzymagic.com
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.
12
13platforms                               darwin freebsd
14master_sites                    http://jakarta.apache.org/builds/jakarta-ant/release/v1.5.1/src/
15distname                                ${name}-${version}-src
16worksrcdir                              ${name}-${version}
17checksums                               md5 a9d1d1cb1c042ef2fffc21f31d96d4a9
18set antdir              java/${name}
19set instdir                             ${prefix}/${antdir}
20set chmodarg                    -Dchmod.fail=false
21build.cmd                               ./build.sh
22build.args                              ${chmodarg} -Ddist.name=${name}
23build.target.all                dist
24
25include                                 contents
26
27variant darwin {
28    build.env                           JAVA_HOME=/Library/Java/Home           
29    extract.post_args           | gnutar -x
30}
31
32configure { }
33
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 -fs ${prefix}/java/${name}/bin/ant ${prefix}/bin/"
40}
41
Note: See TracBrowser for help on using the repository browser.