Fetching contributors…
Cannot retrieve contributors at this time
58 lines (47 sloc) 1.59 KB
PortSystem 1.0
name jmock2
version 2.5.1
categories java
platforms darwin
license BSD
maintainers {blair @blair}
description Library for testing Java code using mock objects
long_description jMock is a library that supports test-driven \
development of Java code with mock objects. Mock \
objects help you design and test the interactions \
between the objects in your programs.
master_sites ${homepage}dist
distfiles jmock-${version} \
checksums jmock-${version} \
md5 bc0e1a180a036217373b00f9a8914758 \
sha1 3644908178f75fbd493fffa9926a0cb03677d415 \
rmd160 2ef79aa199ee2621c7caf9a58bd7ec4d31fa33e5 \
jmock-${version} \
md5 00dc417d78c8768e51188e3a3997d567 \
sha1 7d8b8ef1967c09db6bf9a45c27a8357966334cbc \
rmd160 339968bc118da26f237ceecfe687b7861bcf2cbb
use_zip yes
worksrcdir jmock-${version}
depends_lib bin:java:kaffe \
port:cglib \
port:hamcrest-core \
use_configure no
build.cmd true
destroot {
set javadir ${destroot}${prefix}/share/java
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 755 ${javadir}
xinstall -d -m 755 ${docdir}
file copy ${worksrcpath}/jmock-${version}.jar \
file copy ${worksrcpath}/jmock-junit3-${version}.jar \
file copy ${worksrcpath}/jmock-junit4-${version}.jar \
file copy ${worksrcpath}/jmock-legacy-${version}.jar \
file copy ${worksrcpath}/doc ${docdir}/api