# $Id: Portfile 89654 2012-02-05 22:21:32Z jmr@macports.org $

PortSystem 1.0

name				jakarta-oro
version				2.0.8

categories			java
license				Apache-1.1
maintainers			nomaintainer
platforms			darwin

description			Jakarta ORO
long_description	The Jakarta-ORO Java classes are a set of text-processing \
					Java classes that provide Perl5 compatible regular \
					expressions, AWK-like regular expressions, glob \
					expressions, and utility classes for performing \
					substitutions, splits, filtering filenames, etc. This \
					library is the successor to the OROMatcher, AwkTools, \
					PerlTools, and TextTools libraries originally  from ORO, \
					Inc.
homepage			http://jakarta.apache.org/oro/

master_sites		apache:jakarta/oro/source/
checksums			md5 6f7690c6ba9750e3cbb8ebd10078a79a

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

use_configure		no

build.cmd			ant
build.target		package
build.args			-Dfinal.name=${name} \
					-Dfinal.dir=${worksrcpath}/dist

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