1 | # $Id: Portfile,v 1.3 2005/04/19 18:15:04 jberry Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name cobertura |
---|
6 | version 1.6 |
---|
7 | categories java devel |
---|
8 | platforms darwin |
---|
9 | maintainers dglo@icecube.wisc.edu |
---|
10 | description Java code coverage tool |
---|
11 | long_description Cobertura is a free Java tool that calculates the \ |
---|
12 | percentage of code accessed by tests. It can be used to \ |
---|
13 | identify which parts of your Java program are lacking test \ |
---|
14 | coverage. |
---|
15 | |
---|
16 | homepage http://cobertura.sourceforge.net/ |
---|
17 | master_sites sourceforge |
---|
18 | distname ${name}-${version}-src |
---|
19 | checksums md5 3c59d364e0a729eb1b4a254963eb5751 |
---|
20 | use_zip yes |
---|
21 | |
---|
22 | depends_build port:junit \ |
---|
23 | bin:ant:apache-ant |
---|
24 | depends_lib bin:java:kaffe |
---|
25 | depends_run port:junit |
---|
26 | |
---|
27 | worksrcdir ${name}-${version} |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | build.cmd ant |
---|
32 | build.target jar javadoc |
---|
33 | build.dir ${worksrcpath} |
---|
34 | |
---|
35 | test.run yes |
---|
36 | test.cmd ant |
---|
37 | test.env CLASSPATH=${prefix}/share/java/junit.jar |
---|
38 | test.target test |
---|
39 | |
---|
40 | destroot { |
---|
41 | xinstall -m 755 -d ${destroot}${prefix}/share/java \ |
---|
42 | ${destroot}${prefix}/share/doc |
---|
43 | xinstall -m 644 ${worksrcpath}/${name}.jar \ |
---|
44 | ${destroot}${prefix}/share/java/${name}.jar |
---|
45 | file copy ${worksrcpath}/build/api \ |
---|
46 | ${destroot}${prefix}/share/doc/${name} |
---|
47 | } |
---|