forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPortfile
46 lines (38 loc) · 1.11 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PortSystem 1.0
name cobertura
version 1.6
categories java devel
platforms darwin
maintainers nomaintainer
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}
}