# $Id: Portfile 70583 2010-08-14 13:56:39Z ryandesign@macports.org $

PortSystem 1.0

name			fast-md5
version			2.6.2
categories		java
platforms		darwin
maintainers		nomaintainer
supported_archs	noarch

description		Fast MD5 Implementation in Java
long_description	${description}

homepage		http://www.twmacinta.com/myjava/fast_md5.php
master_sites	http://www.twmacinta.com/myjava/

checksums		md5     30b98b28652c6eb97270e89119f563f0 \
				sha1    7339e45977adeb78f7506d70f2c6901c81decd22 \
				rmd160  0f58b021fff2a9bf19cbde07f3dadd488229ab0a

use_zip			yes

depends_build	bin:ant:apache-ant

worksrcdir		${name}

use_configure	no

build.cmd		ant
build.target	dist

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/java/
	xinstall -m 644 ${worksrcpath}/dist/fast-md5.jar \
		${destroot}${prefix}/share/java/
}

livecheck.type	regex
livecheck.regex	${name}-(\[0-9.\]+)${extract.suffix}
