# $Id: Portfile 30233 2007-10-22 23:09:00Z jmpp@macports.org $

PortSystem 1.0

name			pdfbox
version			0.7.1
categories		java print
platforms		darwin
maintainers		nomaintainer
description		PDFBox is a Java PDF Library
long_description	PDFBox is a Java PDF Library. This project will allow \
					access to all of the components in a PDF document.

homepage		http://www.pdfbox.org/
master_sites	sourceforge
distname		PDFBox-${version}
checksums		md5 a7e64cd389b859e723f3426001cc9eda
use_zip			yes

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

post-extract	{
	file mkdir ${worksrcpath}/Config
}

use_configure	no

build.cmd		ant

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java/ \
		${destroot}${prefix}/share/doc
	xinstall -m 644 ${worksrcpath}/lib/PDFBox-${version}.jar \
		${destroot}${prefix}/share/java/pdfbox.jar
	file copy ${worksrcpath}/docs/javadoc ${destroot}${prefix}/share/doc/${name}
}
