# $Id: Portfile,v 1.1 2005/11/23 16:21:09 jberry Exp $

PortSystem 1.0

name				xom
version				1.0

categories			java devel textproc
platforms			darwin
maintainers			jberry@opendarwin.org

description			A tree-based API for XML processing
long_description	XOM is a new XML object model. It is an open source (LGPL), \
					tree-based API for processing XML with Java that strives for \
					correctness, simplicity, and performance, in that order.
homepage			http://www.xom.nu/

master_sites		http://www.cafeconleche.org/XOM/
checksums			md5 af472e90685eef0ac1e731eb84a49763

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

worksrcdir			XOM
use_configure		no

build.cmd			ant
build.target		jar javadoc
build.env			""
build.args			""

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