PortSystem 1.0

name			jmock1
version			1.2.0
categories		java
platforms		any
supported_archs	noarch
license			BSD
maintainers		nomaintainer

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 551c531f7fe36ac2fb0f4e9354be1a82 \
				sha1 b1fa7cb1fe4acaacc67b8d37bb2bcc563bc63ea7 \
				rmd160 0cc4683285615875e39fc654222b133b2fb1bf82 \
			jmock-${version}-javadoc.zip \
				md5 1ee41636ec18fa68dc8881dbec9b3879 \
				sha1 0944d4850b12375811dd9b4974fb70f6ac877c22 \
				rmd160 7895cd7895ef1721f7f32948d540dc10637b7a8e
use_zip			yes

worksrcdir		.

depends_lib		bin:java:kaffe

use_configure		no

build {}

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 ${workpath}/jmock-core-${version}.jar \
		${javadir}/jmock1-core.jar
	file copy ${workpath}/jmock-cglib-${version}.jar \
		${javadir}/jmock1-cglib.jar
	file copy ${workpath}/javadoc-${version} \
		${docdir}/api
}
