# -*- 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

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        pypi:p/pyrant/
distname            pyrant-${version}

checksums           md5     e59b3a21771e138b82c6a9a69ae57219 \
                    sha1    5d834ea145728bdd4f818f81213bcfcf4f6f610d \
                    rmd160  65ada9a56e12d7065be2c017e93d1afa45be281a

python.versions     26

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/pyrant/json
    livecheck.regex     "pyrant-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
