# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0
PortGroup           python27 1.0

name                py27-mcrypt
version             1.1
categories          python
platforms           darwin
maintainers         openmaintainer

description         A comprehensive Python interface to the mcrypt library.

long_description    A comprehensive Python interface to the crypt library, \
                    which a library providing a uniform interface to several \
                    symmetric encryption algorithms. It is intended to have \
                    a simple interface to access encryption algorithms in \
                    ofb, cbc, cfb, ecb and stream modes. The algorithms it \
                    supports are DES, 3DES, RIJNDAEL, Twofish, IDEA, GOST, \
                    CAST-256, ARCFOUR, SERPENT, SAFER+, and more.

homepage            http://niemeyer.net/python-mcrypt
master_sites        http://niemeyer.net/download/python-mcrypt/
distname            python-mcrypt-${version}

checksums           md5     0e9f7cc17545af6b51188b38984fe034 \
                    sha1    a6bed6ef183ed042a1261e8da1edb462deadc891 \
                    rmd160  eb02c61e4ea11836716c442c24078da56cf4d1c1 \

depends_lib         port:mcrypt

patchfiles          patch-setup.py.diff

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "python-mcrypt-(\\d+(?:\\.\\d+)*)"
