# $Id: Portfile 92098 2012-04-18 17:46:37Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-pygpgme
version			0.3
python.versions		25 26 27
python.default_version 27
platforms		darwin
license			LGPL
categories		python
maintainers		afb openmaintainer
description		Python module for working with OpenPGP messages
long_description	\
PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt \
files using the OpenPGP format.  It is built on top of GNU Privacy Guard and \
the GPGME library.

homepage		http://pypi.python.org/pypi/pygpgme/${version}/
master_sites		http://pypi.python.org/packages/source/p/pygpgme/
distname		pygpgme-${version}
checksums		md5 d38355af73f0352cde3d410b25f34fd0 \
			sha1 f8df35bd2705ac2e1642209fba732e6a42d03fd4 \
			rmd160 7d15991622ee7adf643d9d658c5da718c6b1bfd0

if {$name != $subport} {
depends_lib-append	port:gpgme

build.env		CPPFLAGS="-I${prefix}/include"
}

livecheck.type		regex
livecheck.url		${master_sites}
livecheck.regex		pygpgme-(\\d+(\\.\\d+)+)${extract.suffix}
