# -*- 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 117002 2014-02-12 11:16:30Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-redis
version             2.9.1
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     25 26 27 31 32 33 34

maintainers         stromnov openmaintainer

description         Python client for Redis key-value store
long_description    ${description}

homepage            http://github.com/andymccurdy/redis-py
master_sites        http://pypi.python.org/packages/source/r/redis/

distname            redis-${version}

checksums           rmd160  54ae1e52cd6b1b9d829738970137562b38027c69 \
                    sha256  af9747ec2727425b1b09252975e21502ee5a3d8d235c7f49869eb13e09ccf4e4

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {redis-(\d+(?:\.\d+)*)\.[tz]}
}
