# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-crypto
version			2.0.1
categories		python security
platforms		darwin freebsd
maintainers		nomaintainer
description		collection of cryptographic algorithms and protocols for python
long_description	collection of cryptographic algorithms and protocols, \
				implemented for use from python. Among are MD2, MD4, \
				RIPEMD, AES, ARC2, Blowfish, CAST, DES, Triple-DES, \
				IDEA, RC5, ARC4, simple XOR, RSA, DSA, ElGamal, qNEW.

homepage		http://www.amk.ca/python/code/crypto.html
master_sites	http://www.amk.ca/files/python/crypto/
distname		pycrypto-${version}
checksums		sha1 c77cdefdfb06e4749690013a9a9e1600ab14e26f

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

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

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	pycrypto-(\[0-9.\]+)\\.tar\\.gz
