# $Id: Portfile 35275 2008-03-23 15:54:42Z jberry@macports.org $

PortSystem 1.0

name				ehcache
version				1.1

categories			java
maintainers			jberry openmaintainer
platforms			darwin

description			Ehcache is a pure Java, in-process object cache.
long_description	Ehcache is a pure Java, in-process cache with the following features: \
	1.	Fast \
	2.	Simple \
	3.	Acts as a pluggable cache for Hibernate \
	4.	Small foot print. Both in terms of size and memory requirements. \
	5.	Minimal dependencies. \
	6.	Fully documented. See the online Documentation, FAQ and the online JavaDoc. \
	7.	Comprehensively Test Coverage. See the clover test report. \
	8.	Scalable to hundreds of caches and large multi-cpu servers. \
	9.	Provides LRU, LFU and FIFO cache eviction policies. \
	10.	Available under the Apache 1.1 license. Ehcache's copyright and licensing has been reviewed and approved by the Apache Software Foundation, making ehcache suitable for use in Apache projects. \
	11.	Production tested. All final versions of ehcache are production tested for several weeks on a large and very busy eCommerce site before release. \

homepage			http://ehcache.sourceforge.net/

master_sites		sourceforge

extract.suffix		.tgz
worksrcdir			${name}
fetch.type			cvs
cvs.module			${name}
cvs.root			:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ehcache
cvs.tag				RELEASE_[string map { . _ } ${version}]

checksums			md5 1cc46d376838b9d4a99b1a83ebabb88c

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe

use_configure		no

build.cmd			ant
build.target		clean dist

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