# $Id: Portfile,v 1.3 2004/10/21 13:10:02 mww Exp $

PortSystem 1.0

name			saxpath
version			1.0
categories		java devel textproc
platforms		darwin
maintainers		mww@opendarwin.org
description		simple Java API for XPath
long_description	The SAXPath project is a Simple API for XPath. SAXPath \
				is analogous to SAX in that the API abstracts away the \
				details of parsing and provides a simple event based \
				callback interface. 

homepage		http://saxpath.sourceforge.net/
master_sites	sourceforge
checksums		md5 cc95ecc7dfb689a29bd42323490ee702

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

set worksrcdir	${worksrcdir}-FCS

post-extract	{
	file mkdir ${worksrcpath}/src/conf
	file copy ${filespath}/MANIFEST.MF ${worksrcpath}/src/conf
}

use_configure	no

build.cmd		ant
build.target	package

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