# $Id: Portfile,v 1.3 2005/10/26 16:11:04 jberry Exp $

PortSystem 1.0

name           		jakarta-regexp
version         	1.4

categories      	java
maintainers     	jberry@opendarwin.org
platforms       	darwin

description     	Jakarta Regular Expressions Parser.
long_description	Jakarta Regexp is a 100% Pure Java Regular Expression package.
homepage			http://jakarta.apache.org/regexp/
				
master_sites    	apache:jakarta/regexp/source
checksums       	md5 d903d84c949df848009f3bf205b32c97

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

post-extract {
	file mkdir ${workpath}/jakarta-site2/lib
	file delete ${worksrcpath}/${distname}.jar
}
					
use_configure		no

build.cmd			ant
build.target		jar
build.args			-Dfinal.name=${name}

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 \
		${worksrcpath}/build/${name}.jar \
		${destroot}${prefix}/share/java/
	foreach f [glob -directory ${worksrcpath}/docs *.html api] {
		file copy $f ${destroot}${prefix}/share/doc/${name}/
	}
}
