# -*- 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 105458 2013-04-21 11:32:54Z stromnov@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-mhash version 1.4 revision 1 categories-append security license LGPL platforms darwin 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. 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 python.versions 24 25 26 27 if {$subport != $name} { depends_build-append port:py${python.version}-distribute depends_lib-append port:mhash patchfiles patch-setup.py.diff post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py } livecheck.type none } else { livecheck.type regex livecheck.url ${homepage} livecheck.regex "python-mhash-(\\d+(?:\\.\\d+)*)" }