# $Id: Portfile,v 1.5 2004/09/12 16:22:41 mww Exp $

PortSystem 1.0

name			jdom
version			1.0
categories		java devel textproc
platforms		darwin
maintainers		mww@opendarwin.org
description		JDOM is a Java API for manipulating XML the Java way.
long_description	${description}

homepage		http://www.jdom.org/
master_sites	${homepage}/dist/source/
checksums		md5 ce29ecc05d63fdb419737fd00c04c281

depends_build	bin:ant:apache-ant
depends_lib		bin:java:kaffe

use_configure	no

build.cmd		ant
build.target	package javadoc

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