# -*- 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 106117 2013-05-15 12:54:42Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pyrant
version             0.6.5
license             Apache-2
maintainers         stromnov openmaintainer

description         Pyrant is a Python wrapper around Tokyo Tyrant.

long_description    ${description}

platforms           darwin
supported_archs     noarch

homepage            http://code.google.com/p/pyrant/
master_sites        http://pypi.python.org/packages/source/p/pyrant/
distname            pyrant-${version}

checksums           md5     e59b3a21771e138b82c6a9a69ae57219 \
                    sha1    5d834ea145728bdd4f818f81213bcfcf4f6f610d \
                    rmd160  65ada9a56e12d7065be2c017e93d1afa45be281a

python.versions     26

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