# $Id: Portfile,v 1.4 2004/12/28 07:00:05 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-gnupg
version			0.3.2
revision		1
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		GnuPGInterface is a Python module to interface with GnuPG
long_description	GnuPGInterface is a Python module to interface with \
				GnuPG. It concentrates on interacting with GnuPG via \
				filehandles, providing access to control GnuPG via \
				versatile and extensible means.

homepage		http://py-gnupg.sourceforge.net/
master_sites	sourceforge
distname		GnuPGInterface-${version}
checksums		md5 d4627d83446f96bd8c22f8d15db3f7c2
patchfiles		patch-setup.py.diff

depends_lib-append	lib:gnupg:gnupg

post-patch	{
	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
}

test.run		yes
test.cmd		${python.bin} unittests.py
test.target

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog NEWS README THANKS \
		${destroot}${prefix}/share/doc/${name}
}
