# -*- 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 119067 2014-04-16 13:46:14Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-hiredis
version             0.1.3
revision            0
categories-append   devel databases
platforms           darwin
license             BSD

python.versions     27 33 34

maintainers         stromnov openmaintainer

description         Python wrapper for hiredis
long_description    ${description}

homepage            https://github.com/pietern/hiredis-py
master_sites        https://pypi.python.org/packages/source/h/hiredis/

distname            hiredis-${version}

checksums           rmd160  f305c991efe7001e5de545a4cc333f62d05ed601 \
                    sha256  77b7b31fb81d74d356206fae891a18d6095279611bc1d93e927900208173fca1

if {${name} ne ${subport}} {
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {hiredis-(\d+(?:\.\d+)*)\.[tz]}
}
