# $Id: Portfile 35275 2008-03-23 15:54:42Z jberry@macports.org $

PortSystem 1.0

name				xalanj
version				2.7.0
revision			1

categories			java textproc
maintainers			jberry openmaintainer
platforms			darwin

description			Apache Xerces 2 Java XML Parser
long_description	Xalan-Java is an XSLT processor for transforming XML documents \
					into HTML, text, or other XML document types. It implements \
					XSL Transformations (XSLT) Version 1.0 and  XML Path Language \
					(XPath) Version 1.0. It can be used from the command line, \
					in an applet or a servlet, or as a module in other program.
homepage			http://xml.apache.org/xalan-j/

set ver2			[string map ". _" $version]
distname			xalan-j_${ver2}-src
master_sites		apache:xml/xalan-j/source/
checksums			md5 7859a78a5564cae42c933adcbbecdd01

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe
depends_run			port:xercesj
					
worksrcdir			xalan-j_${ver2}

use_configure		no

build.cmd			ant
build.target		all docs javadocs

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