# -*- 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 114788 2013-12-15 11:55:56Z hum@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-mmh3
version             2.3
categories-append   textproc math
maintainers         hum openmaintainer

description         Python wrapper for MurmurHash (MurmurHash3), a set of fast and robust hash functions.
long_description    ${description}

homepage            https://pypi.python.org/pypi/mmh3
platforms           darwin
license             Permissive

master_sites        https://pypi.python.org/packages/source/m/mmh3/
checksums           rmd160  dd8b817b57b2dffe6659747ea20a97c062d7520c \
                    sha256  ef9896a8083ffadf92a9e41e3db4d276670cdcddf4b2a4d619d92edb4af6cbdb

distname            mmh3-${version}

python.versions     27 31 32 33 34

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} README.rst ${destroot}${docdir}
    }
    livecheck.type      none
} else {
    livecheck.url       [lindex ${master_sites} 0]
    livecheck.regex     "mmh3-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
