Permalink
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.
homepage http://www.jmock.org/
master_sites ${homepage}dist
distfiles jmock-${version}-jars.zip \
jmock-${version}-javadoc.zip
checksums jmock-${version}-jars.zip \
md5 bc0e1a180a036217373b00f9a8914758 \
sha1 3644908178f75fbd493fffa9926a0cb03677d415 \
rmd160 2ef79aa199ee2621c7caf9a58bd7ec4d31fa33e5 \
jmock-${version}-javadoc.zip \
md5 00dc417d78c8768e51188e3a3997d567 \
sha1 7d8b8ef1967c09db6bf9a45c27a8357966334cbc \
rmd160 339968bc118da26f237ceecfe687b7861bcf2cbb
use_zip yes
worksrcdir jmock-${version}
depends_lib bin:java:kaffe \
port:cglib \
port:hamcrest-core \
port:objenesis
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 \
${javadir}/jmock2.jar
file copy ${worksrcpath}/jmock-junit3-${version}.jar \
${javadir}/jmock2-junit3.jar
file copy ${worksrcpath}/jmock-junit4-${version}.jar \
${javadir}/jmock2-junit4.jar
file copy ${worksrcpath}/jmock-legacy-${version}.jar \
${javadir}/jmock2-legacy.jar
file copy ${worksrcpath}/doc ${docdir}/api
}