# -*- 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 92896 2012-05-10 13:41:47Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-redis
version             2.4.12
revision            0
categories-append   devel
license             MIT
platforms           darwin
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://cloud.github.com/downloads/andymccurdy/redis-py/
distname            redis-${version}

checksums           rmd160  625ebc2ff6082f6b1681b8732a4e365c50ca19e6 \
                    sha256  98cadb4481671a54b7de867280dc11f11ba16ce007d1e078746ba768d2655486

python.versions     25 26 27
python.default_version 27

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-distribute
}

livecheck.type      regex
livecheck.url       ${homepage}/downloads
livecheck.regex     "redis-(\\d+(?:\\.\\d+)*)"
