# $Id: Portfile,v 1.3 2005/04/11 06:56:39 mww Exp $

PortSystem 1.0

name			pdfbox
version			0.7.1
categories		java print
platforms		darwin
maintainers		mww@opendarwin.org
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}
}
