# $Id: Portfile 73871 2010-11-27 19:04:32Z ram@macports.org $

PortSystem       1.0
PortGroup        python27 1.0

name             py27-crypto
version          2.3

categories       python security
platforms        darwin freebsd
maintainers      jwa 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.dlitz.net/software/pycrypto/
master_sites     http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
distname         pycrypto-${version}

checksums        md5 2b811cfbfc342d83ee614097effb8101 \
                 sha1 96b33b77e729893bd0837a09a6aa7a12b5070037 \
                 rmd160 5b7b15aab3f5e33113ba197a2edd629c72595374

test.run         yes
test.target      test

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

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