# $Id: Portfile,v 1.1 2005/09/24 13:55:36 mww Exp $

PortSystem 1.0

name			objectweb-anttasks
version			1.3
categories		java devel
platforms		darwin
maintainers		dave@glowacki.org
description		ObjectWeb ant tasks
long_description	Assorted utility tasks used in ObjectWeb ant builds.

set project		monolog
set realname		ow_util_ant_tasks

homepage		http://monolog.objectweb.org/
master_sites		http://download.us.forge.objectweb.org/${project} \
			http://download.forge.objectweb.org/${project} \
			http://download.fr2.forge.objectweb.org/${project}
distname		${realname}_${version}
checksums		md5 cfd7fde4b3269f359a3445fb5f8afcad

depends_build		bin:ant:apache-ant

pre-extract {
	file mkdir ${worksrcpath}
}
extract.dir	${worksrcpath}

patchfiles		patch-MultipleAnt

use_zip			yes
use_configure		no

build.cmd		ant
build.target		clean jar

variant debug {
	build.args-append		-debug
}

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java
	xinstall -m 644 ${worksrcpath}/output/lib/${realname}.jar \
		${destroot}${prefix}/share/java/${name}.jar
}
