# $Id: Portfile,v 1.2 2004/12/31 14:33:48 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-lrucache
version			0.2
revision		1
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		least-recently-used cache module for python
long_description	py-lrucache provides a simple but efficient \
				least-recently-used (LRU) cache module. The LRUCache class \
				provides a container interface with prioritized caching. The \
				implementation uses a heap and a dictionary to provide quick \
				inserts, deletes, and references.

homepage		http://bad.dynu.ca/~evan/lrucache/
master_sites	${homepage}
distname		lrucache-${version}
checksums		md5 b55a8cc303c43c8a0f01ed25269d588a

set cmd			"PYTHONPATH=../build/lib ${python.bin}"
test.run		yes
test.cmd		${cmd} assign.py && ${cmd} contain.py && ${cmd} delete.py \
					&& ${cmd} instantiate.py && ${cmd} iterator.py \
					&& ${cmd} lru.py && ${cmd} mtime.py
test.dir		${worksrcpath}/test
test.target

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} Changelog Changelog-0.1 README.txt \
		afl-2.1.txt ${destroot}${prefix}/share/doc/${name}
}
