# $Id: Portfile,v 1.2 2004/11/22 17:27:11 mww Exp $

PortSystem 1.0

name			itext
version			1.1
categories		java print
platforms		darwin
maintainers		mww@opendarwin.org
description		Java library that allows you to generate PDF files on the fly.
long_description	${description}

homepage		http://www.lowagie.com/iText/
master_sites	sourceforge
distname		${name}-src-${version}
checksums		md5 3e8aa3d0b3cd93ac40e88a6e45281210

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

pre-extract	{
	file mkdir ${worksrcpath}/src/com
	file link ${workpath}/com ${worksrcpath}/src/com
	file copy ${filespath}/build.xml ${worksrcpath}
}

use_configure	no

build.cmd		ant
build.target	jar javadoc

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java/ \
		${destroot}${prefix}/share/doc/
	xinstall -m 644 ${worksrcpath}/dist/iText.jar \
		${destroot}${prefix}/share/java/
	file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
}
