# $Id: Portfile 62065 2009-12-28 16:36:45Z nox@macports.org $

PortSystem 1.0

name			jdom
version			1.1.1
categories		java devel textproc
platforms		darwin
maintainers		nomaintainer
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/ \
				${homepage}dist/source/archive/

checksums       md5     0ad116194e3101fb08fab8f6f00cc58f \
                sha1    affa11961f93aefef5f9df3173260c269df247c9 \
                rmd160  f677cdfaf6510d9117288edda75f28a86bff7d36

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

use_configure	no

worksrcdir      ${name}

build.cmd		ant
build.target	package javadoc

destroot	{
	xinstall -d ${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}
}

livecheck.type  regex
livecheck.url   http://www.jdom.org/dist/source/
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
