# $Id: Portfile,v 1.3 2005/04/25 12:15:08 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-radix
version			0.4
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		radix tree data structure implementation for python
long_description	py-radix is an implementation of a radix tree data \
				structure for the storage and retrieval of IPv4 and IPv6 \
				network prefixes. The radix tree is the data structure most \
				commonly used for routing table lookups. It efficiently stores \
				network prefixes of varying lengths and allows fast lookups of \
				containing networks.

homepage		http://www.mindrot.org/py-radix.html
master_sites	http://www2.mindrot.org/files/py-radix/
checksums		md5 a3e7a2cb078c009e39633aa4034ad523

pre-test	{
	system "cd ${worksrcpath} && ln -sf build/lib*/radix.so"
}
test.run		yes
test.cmd		${python.bin}
test.target		test.py

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE README TODO \
		${destroot}${prefix}/share/doc/${name}
}
