# $Id: Portfile,v 1.4 2005/04/19 18:15:06 jberry Exp $

PortSystem 1.0

name				commons-launcher
version				1.1

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-Launcher
long_description	The Launcher Component is designed to be a cross platform \
					Java application launcher. Commons-launcher eliminates the \
					need for a batch or shell script to launch a Java class. \
					The original Java classes come from the Jakarta Tomcat 4.0 \
					project.
homepage			http://jakarta.apache.org/commons/launcher/
				
distname			${name}-${version}-src
master_sites		apache:jakarta/commons/launcher/source/
checksums			md5 99082b05bfc6f5ce452d179ee2871ef9

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe \
					port:junit

worksrcdir 			${name}

use_configure		no

build.cmd			ant
build.target		jar javadoc
build.args			-Djunit.jar=${prefix}/share/java/junit.jar

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