a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20843 2006-12-03 15:37:27Z jberry@macports.org $
PortSystem 1.0
name xercesj
version 2.9.0
categories java textproc
maintainers jberry@macports.org
platforms darwin
description Apache Xerces 2 Java XML Parser
long_description The Xerces 2 Java Parser supports XML 1.0 Third Edition\; \
XML 1.1\; XML 1.1 Namespaces\; DOM Level 2 \
Core, Events, Traversal and Range\; \
SAX 2.0.1 Core and Extensions\; JAXP 1.2\; \
Schema 1.0 Structure and Datatypes.
homepage http://xml.apache.org/xerces-j/
distname Xerces-J-src.${version}
distfiles ${distname}${extract.suffix} \
Xerces-J-tools.${version}${extract.suffix}
master_sites apache:xml/xerces-j/
checksums ${distname}${extract.suffix} \
md5 bd43e57ec7105acc9f13072e0208d445 \
Xerces-J-tools.${version}${extract.suffix} \
md5 79d48733b0ab41af190f1af7ca89ab3f
depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe
worksrcdir xerces-[string map ". _" $version]
set tools tools
use_configure no
build.cmd ant
build.target jars docs javadocs
build.env CLASSPATH=${tools}/xml-apis.jar:${tools}/xercesImpl.jar:${tools}/bin/xjavac.jar
post-extract {
file rename ${workpath}/tools ${worksrcpath}/
}
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
xinstall -m 644 \
${worksrcpath}/build/xml-apis.jar \
${worksrcpath}/build/xercesImpl.jar \
${destroot}${prefix}/share/java/
file copy ${worksrcpath}/build/docs ${destroot}${prefix}/share/doc/${name}
}