# $Id: Portfile 58770 2009-10-05 02:26:06Z ram@macports.org $

PortSystem        1.0
PortGroup         python26 1.0

name              py26-gnupg
version           0.3.2
categories        python
platforms         darwin
maintainers       nomaintainer

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:py-gnupg
distname          GnuPGInterface-${version}

checksums         md5 d4627d83446f96bd8c22f8d15db3f7c2 \
                  sha1 4d916b0fa1ba2d1894efdc1bc0c14ea4e6b43fa6 \
                  rmd160 7bc5ae75bf17203442cfda8bbdb430b2f02fdd75

patchfiles        patch-setup.py.diff

depends_lib-append  port: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}
}

universal_variant no

livecheck.distname GnuPGInterface
