# -*- 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: Portfile 66683 2010-04-20 10:22:07Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-mhash
version             1.4
maintainers         stromnov openmaintainer

description         A comprehensive Python interface to the mhash library.

long_description    A comprehensive Python interface to the mhash library, \
                    which provides a uniform interface to access several \
                    hashing algorithms such as MD4, MD5, SHA1, SHA160, \
                    and many others.

platforms           darwin

homepage            http://labix.org/python-mhash
master_sites        http://labix.org/download/python-mhash/
distname            python-mhash-${version}

checksums           md5     b3536ef3474a6459b5f03dee69ab97b6 \
                    sha1    08bfb86bb51968e0f941181780570a80f08b4616 \
                    rmd160  dd3dcf019059d6eb24f3d8b55e29f1c7e690289b

depends_build       port:mhash

patchfiles          patch-setup.py.diff

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

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