# -*- 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 107880 2013-07-08 09:32:14Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

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  4ab067675cc0078edbd0a2e94b1ddcb86aca0ea4 \
                    sha256  7e8645a5e1a5e36fb6f93d3113eb078e2763db15aafa3dfa5ba2ceace26a01c4

python.versions     25 26 27 31 32 33

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