# $Id: Portfile 148744 2016-05-16 16:20:26Z blair@macports.org $ PortSystem 1.0 PortGroup java 1.0 name apache-ant version 1.9.7 categories devel java license Apache-2 W3C maintainers openmaintainer blair supported_archs noarch description Java opensource build system long_description Ant is a Java based build tool. In theory it is \ kind of like make without make's wrinkles. Ant \ uses XML build files that define a set of targets. \ Each target has dependencies (other targets) and \ contains a set of tasks to perform. homepage http://ant.apache.org/ platforms darwin freebsd distname ${name}-${version}-bin master_sites apache:ant/ master_sites.mirror_subdir binaries checksums md5 99a86981333a0ff39bb56c963d1f492b \ sha1 230c6a5c59dc08364f615deb240aa50c23ccfe2a \ sha512 3954a6ad3f522c135f327ba0d376eb16ae42103849c8cc5cd6c8c6e87b8c5433c95a0f2d4dfa3e6c2705ee0b8996e5b27d0b2248f64a05fc8c902116cc45a7b2 worksrcdir ${name}-${version} set workTarget "" use_bzip2 yes use_configure no build.cmd true # Ant is installed from the binary (jar) distribution by default. Due to # bootstrapping issues, the source variant generally doesn't build a very # usable ant: the ant tasks (such as junit) are non-functional as their # dependent support isn't available when ant is built, due to circular # dependencies back to ant. variant source description "build from source; not recommended" { distname ${name}-${version}-src master_sites.mirror_subdir source checksums md5 6413ed1cee16372d0fa215ffacca48b7 \ sha1 5f0d4f059cf7dc2620cde59e9c209663e99cad54 \ sha512 5a557e06b71c69ca61bbb4d2709edb41405cb22258a158f5645cf43b1087a692a0cc9829e356238c660ed9cd917ce3ce6d8accb1775b1642545c932a49676459 set workTarget /${name} build.cmd ./build.sh build.args -Dchmod.fail=false -Ddist.name=${name} build.target dist } pre-destroot { delete \ ${worksrcpath}${workTarget}/bin/ant.bat \ ${worksrcpath}${workTarget}/bin/ant.cmd \ ${worksrcpath}${workTarget}/bin/antRun.bat \ ${worksrcpath}${workTarget}/bin/antenv.cmd \ ${worksrcpath}${workTarget}/bin/envset.cmd \ ${worksrcpath}${workTarget}/bin/lcp.bat \ ${worksrcpath}${workTarget}/bin/runrc.cmd } destroot { xinstall -m 755 -d ${destroot}${prefix}/share/java file copy ${worksrcpath}${workTarget} \ ${destroot}${prefix}/share/java/${name} xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} foreach f {INSTALL KEYS LICENSE NOTICE README WHATSNEW manual} { file rename ${destroot}${prefix}/share/java/${name}/${f} \ ${destroot}${prefix}/share/doc/${name}/${f} } ln -s ../share/java/${name}/bin/ant ${destroot}${prefix}/bin/ant } universal_variant no livecheck.type regex livecheck.url http://www.apache.org/dist/ant/binaries/ livecheck.regex {apache-ant-(\d+(?:\.\d+)*)-bin.tar.bz2}