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

PortSystem       1.0
PortGroup        python26 1.0

name             py26-crypto
version          2.0.1
revision         1
categories       python security
platforms        darwin freebsd
maintainers      ram openmaintainer
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        md5 4d5674f3898a573691ffb335e8d749cd \
                 sha1 c77cdefdfb06e4749690013a9a9e1600ab14e26f \
                 rmd160 5ce938a24f77f414e42680c17ef9b6dc8de94a2e

patchfiles       patch-hash_modules.diff

#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
