# $Id: Portfile,v 1.4 2005/10/19 08:10:16 blb Exp $

PortSystem			1.0
name				saxon
version				8.3
categories			textproc java
maintainers			blb@opendarwin.org
description			saxon "basic" - collection of tools to process XML documents
long_description \
	Saxon includes an XSLT 2.0 processor, an XPath 2.0 processor, an XQuery \
	1.0 processor, and an XML Schema 1.0 processor.

platforms			darwin

homepage			http://saxon.sourceforge.net/
master_sites		sourceforge
distname			${name}b8-3
use_zip				yes

checksums			md5 9472089dccde30c23361810490a7c52b \
					sha1 6acc09b9954cea75fbd13ae34e18a1939076c7e2

depends_lib			bin:java:kaffe

pre-extract {
	file mkdir ${worksrcpath}
	extract.post_args	"-d ${worksrcpath}"
}

use_configure		no

build				{}

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
		${destroot}${prefix}/share/java ${destroot}${prefix}/share/${name}
	eval xinstall -m 644 [glob ${worksrcpath}/*.jar] \
		${destroot}${prefix}/share/java
	eval file copy [glob ${worksrcpath}/doc/*] \
		${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/samples ${worksrcpath}/source.zip \
		${worksrcpath}/use-cases ${destroot}${prefix}/share/${name}
}

