# $Id: Portfile 52616 2009-06-19 22:13:13Z macsforever2000@macports.org $

PortSystem 1.0

name			objectweb-anttasks
version			1.3.2
categories		java devel
platforms		darwin
maintainers		glowacki.org:dave
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 cd602bf75a0feab480fa97739955b84e

depends_build		bin:ant:apache-ant port:xalanj

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

use_zip			yes
use_configure		no

build.cmd		ant
build.target		clean jar
build.env        CLASSPATH=${prefix}/share/java/xalan.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
}
