# $Id: Portfile,v 1.4 2005/04/21 15:58:15 jberry Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-spf
version			1.6
revision		1
categories		python mail
platforms		darwin
maintainers		mww@opendarwin.org
description		python module for SPF (Sender Permitted From)
long_description	py-spf is a python module for Sender Permitted From. \
				SPF does email sender validation. For more information \
				about SPF, please see http://spf.pobox.com.

homepage		http://www.wayforward.net/spf/
master_sites	${homepage}
distname		pyspf-${version}
checksums		md5 7ff35d8f9db41f2f7e0068f78f243a3d

depends_lib-append	port:py-dns

patch	{
	reinplace "s|test-1.9.5.txt|${worksrcpath}/test/test-1.9.5.txt|g" \
		${worksrcpath}/test/testspf.py
}

test.run		yes
test.cmd		${python.bin} test/testspf.py
test.env		PYTHONPATH=${worksrcpath}/build/lib
test.target

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