# $Id: Portfile,v 1.1 2004/09/01 17:50:05 mww Exp $

PortSystem 1.0

name			crimson
version			1.1.3
categories		java
platforms		darwin
maintainers		mww@opendarwin.org
description		Crimson is a Java XML parser which supports XML 1.0
long_description	${description}

homepage		http://xml.apache.org/crimson/
master_sites	http://xml.apache.org/dist/crimson/
distname		${distname}-src
checksums		md5 bb0a5fe59fd28ce5bfc4b22baeca12c1

depends_build	bin:ant:apache-ant

worksrcdir		${name}-${version}

use_configure	no

build.cmd		ant
build.target	crimson.jar javadoc

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc/
	xinstall -m 644 ${worksrcpath}/build/crimson.jar \
		${destroot}${prefix}/share/java/
	file copy ${worksrcpath}/build/docs/api \
		${destroot}${prefix}/share/doc/${name}
}
