# $Id: Portfile 34165 2008-02-16 08:54:42Z blair@macports.org $

PortSystem 1.0

name		jakarta-log4j
version		1.2.15

categories	java devel
platforms	darwin
maintainers	nomaintainer

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	apache-log4j-${version}
master_sites	apache:logging/log4j/${version}
checksums	md5 10f04abe4d68d5a89e8eb167e4e45e1a \
		sha1 d6daea1586b932b1e38dc3fbac68624372bec6db \
		rmd160 280adfcd45c291d5bd45fbc5d5a9b0585374e4e0

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

use_configure	no

build		{ }

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java/ \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/log4j-${version}.jar \
		${destroot}${prefix}/share/java/jakarta-log4j.jar
	foreach f {LICENSE NOTICE contribs examples site} {
		file copy ${worksrcpath}/${f} \
			${destroot}${prefix}/share/doc/${name}/${f}
	}
	ln -s site/apidocs ${destroot}${prefix}/share/doc/${name}/api
}
