# $Id: Portfile,v 1.4 2005/10/03 19:55:56 mww Exp $

PortSystem 1.0

name		jakarta-log4j
version		1.2.12

categories	java devel
platforms	darwin
maintainers	mww@opendarwin.org

description	Java logging API
long_description	With log4j it is possible to enable logging at runtime \
	without modifying the application binary. The log4j \
	package is  designed so that these statements can \
	remain in shipped code  without incurring a heavy \
	performance cost. Logging behavior  can be controlled \
	by editing a configuration file, without  touching \
	the application binary.
homepage		http://logging.apache.org/

distname		logging-log4j-${version}
master_sites	apache:logging/log4j/${version}
checksums		md5 95b60d4cf517c9cf3438fb99e2bd231a

depends_build	port:apache-ant \
		bin:javac:kaffe

use_configure	no

build.cmd	ant
build.target	log4j.jar javadoc

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