# $Id: Portfile 72252 2010-10-08 23:20:28Z jberry@macports.org $

PortSystem 1.0

name				xom
version				1.2.5

categories			java devel textproc
platforms			darwin
maintainers			nomaintainer
supported_archs		noarch

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     5d0fbbfcc3cb2a462b614ba9ca66e66d \
					sha1    fb0eca847c605a081622a1698043c878c879bf40 \
					rmd160  81077788f677c32f75bb9306e58e4eaf1e24dd01

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe \
					port:jaxen

worksrcdir			XOM

patchfiles          patch-build.xml.diff

use_configure		no

build.cmd			ant
build.target		jar javadoc
build.env			""
build.args			-Djaxen.dir=${prefix}/share/java/jaxen.jar

destroot {
	xinstall -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}
}

livecheck.type      regex
livecheck.regex     {xom-(\d+(?:\.\d+)*)\.jar}
