# $Id: Portfile,v 1.2 2005/08/24 04:13:17 jberry Exp $

PortSystem 1.0

name				commons-lang
version				2.1

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-Lang
long_description	The Lang Component provides a host of helper utilities for \
					the java.lang API, notably String manipulation methods, basic \
					numerical methods, object reflection, creation and serialization, \
					and System properties. Additionally it contains an inheritable \
					enum type, an exception structure that supports multiple types \
					of nested-Exceptions, basic enhancements to java.util.Date and \
					a series of utlities dedicated to help with building methods, \
					such as hashCode, toString and equals.
homepage			http://jakarta.apache.org/commons/lang/
				
distname			${name}-${version}-src
worksrcdir			${name}-${version}
master_sites		apache:jakarta/commons/lang/source/
checksums			md5 d8379e93f597b2ae6d1f7b4bb7e83fce

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

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

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