RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/devel/apache-ant/Portfile,v
retrieving revision 1.16
diff -u -r1.16 Portfile
|
|
|
1 | 1 | # $Id: Portfile,v 1.16 2004/08/09 16:33:56 mww Exp $ |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | | name apache-ant |
5 | | version 1.6.2 |
6 | | categories devel java |
7 | | maintainers sean@fuzzymagic.com |
8 | | description Java opensource build system |
| 4 | name apache-ant |
| 5 | version 1.6.2 |
| 6 | categories devel java |
| 7 | maintainers sean@fuzzymagic.com |
| 8 | description Java opensource build system |
9 | 9 | long_description Ant is a Java based build tool. In theory it is kind of like \ |
10 | | make without make's wrinkles. Ant uses XML build files that defines \ |
11 | | a set of targets. Each target has dependencies (other targets) and \ |
12 | | contains a set of tasks to perform. |
| 10 | make without make's wrinkles. Ant uses XML build files that define \ |
| 11 | a set of targets. Each target has dependencies (other targets) and \ |
| 12 | contains a set of tasks to perform. |
13 | 13 | homepage http://ant.apache.org/ |
14 | 14 | |
15 | | platforms darwin freebsd |
16 | | master_sites apache:ant/source |
17 | | checksums md5 83c3adefdbf90bcbc4b804d4c55c0778 |
18 | | distname ${name}-${version}-src |
19 | | use_bzip2 yes |
| 15 | platforms darwin freebsd |
| 16 | |
| 17 | distname ${name}-${version}-bin |
| 18 | master_sites apache:ant/ |
| 19 | master_sites.mirror_subdir binaries |
| 20 | checksums md5 a568c7271c3f168771c0313926d060fa |
20 | 21 | |
21 | | worksrcdir ${name}-${version} |
| 22 | worksrcdir ${name}-${version} |
| 23 | set workTarget "" |
22 | 24 | |
| 25 | use_bzip2 yes |
23 | 26 | use_configure no |
24 | 27 | |
25 | | build.cmd ./build.sh |
26 | | build.args -Dchmod.fail=false -Ddist.name=${name} |
27 | | build.target dist |
| 28 | build.cmd "" |
| 29 | build.args "" |
| 30 | build.target "" |
28 | 31 | |
29 | 32 | variant darwin { |
30 | 33 | extract.post_args | gnutar -x |
31 | 34 | build.env JAVA_HOME=/Library/Java/Home |
32 | 35 | } |
33 | 36 | |
| 37 | # Ant is installed from the binary (jar) distribution by default. Due to bootstrapping |
| 38 | # issues, the source variant generally doesn't build a very usable ant: the ant tasks |
| 39 | # (such as junit) are non-functional as their dependent support isn't available when ant |
| 40 | # is built, due to circular dependencies back to ant. |
| 41 | variant source { |
| 42 | distname ${name}-${version}-src |
| 43 | master_sites.mirror_subdir source |
| 44 | checksums md5 83c3adefdbf90bcbc4b804d4c55c0778 |
| 45 | set workTarget /${name} |
| 46 | |
| 47 | build.cmd ./build.sh |
| 48 | build.args -Dchmod.fail=false -Ddist.name=${name} |
| 49 | build.target dist |
| 50 | } |
| 51 | |
34 | 52 | pre-destroot { |
35 | | cd ${worksrcpath}/${name}/bin |
| 53 | cd ${worksrcpath}${workTarget}/bin |
36 | 54 | file delete ant.bat ant.cmd antRun.bat antenv.cmd \ |
37 | 55 | envset.cmd lcp.bat runrc.cmd |
38 | 56 | } |
| 57 | |
39 | 58 | destroot { |
40 | 59 | xinstall -m 755 -d ${destroot}${prefix}/share/java |
41 | | file copy ${worksrcpath}/${name} ${destroot}${prefix}/share/java/ |
| 60 | file copy ${worksrcpath}${workTarget} ${destroot}${prefix}/share/java/${name} |
42 | 61 | system "ln -fs ${prefix}/share/java/${name}/bin/ant \ |
43 | 62 | ${destroot}${prefix}/bin/ant" |
44 | 63 | } |