a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20315 2006-11-01 22:23:03Z blair@macports.org $
PortSystem 1.0
name cobertura
version 1.6
categories java devel
platforms darwin
maintainers dglo@icecube.wisc.edu
description Java code coverage tool
long_description Cobertura is a free Java tool that calculates the \
percentage of code accessed by tests. It can be used to \
identify which parts of your Java program are lacking test \
coverage.
homepage http://cobertura.sourceforge.net/
master_sites sourceforge
distname ${name}-${version}-src
checksums md5 3c59d364e0a729eb1b4a254963eb5751
use_zip yes
depends_build port:junit \
bin:ant:apache-ant \
port:objectweb-asm \
port:javancss
depends_lib bin:java:kaffe
depends_run port:junit
worksrcdir ${name}-${version}
use_configure no
build.cmd ant
build.target jar javadoc
test.run yes
test.cmd ant
test.env CLASSPATH=${prefix}/share/java/junit.jar
test.target test
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
xinstall -m 644 ${worksrcpath}/${name}.jar \
${destroot}${prefix}/share/java/${name}.jar
file copy ${worksrcpath}/build/api \
${destroot}${prefix}/share/doc/${name}
}