Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name jdom
version 1.0
categories java devel textproc
platforms darwin
maintainers nomaintainer@macports.org
description JDOM is a Java API for manipulating XML the Java way.
long_description ${description}

homepage http://www.jdom.org/
master_sites ${homepage}/dist/source/
checksums md5 ce29ecc05d63fdb419737fd00c04c281

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

use_configure no

build.cmd ant
build.target package javadoc

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