# $Id: Portfile,v 1.8 2006/05/04 04:33:25 jberry Exp $

PortSystem 1.0

name		jaxen
version		1.1-beta-9

categories			java devel textproc
platforms			darwin

maintainers			mww@opendarwin.org
description			Java XPath engine
long_description	The jaxen project is a Java XPath Engine. jaxen is a \
					universal object model walker, capable of evaluating \
					XPath expressions across multiple models. Currently \
					supported  are dom4j and JDOM.
homepage			http://www.jaxen.org/

distname			${name}-${version}-src
master_sites		http://dist.codehaus.org/jaxen/distributions/
checksums			md5 e7f42d2b9dc633252ee47eeab52cdced

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe \
					port:junit \
					port:dom4j \
					port:jdom \
					port:xercesj \
					port:xom
					
worksrcdir			${name}-${version}
use_configure		no

set javaLibs ${prefix}/share/java
set classpath "
	${javaLibs}/apache-ant/ant.jar
	${javaLibs}/junit.jar
	${javaLibs}/xalan.jar
	${javaLibs}/xml-apis.jar
	${javaLibs}/dom4j.jar
	${javaLibs}/jdom.jar
	${javaLibs}/xercesImpl.jar
	${javaLibs}/xml-apis.jar
	${javaLibs}/xom.jar
	"

build.cmd			ant
build.target		dist
build.env			CLASSPATH=[join ${classpath} :]
build.args			-Dnoget -Djunit.jar=${prefix}/share/java/junit.jar

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