# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-torndb
version             0.1
revision            0
categories-append   www
platforms           darwin
license             Apache-2
supported_archs     noarch

python.versions     25 26 27

maintainers         stromnov openmaintainer

description         A lightweight wrapper around MySQLdb.

long_description    A lightweight wrapper around MySQLdb. \
                    Originally part of the Tornado framework.

homepage            https://github.com/bdarnell/torndb
master_sites        https://pypi.python.org/packages/source/t/torndb/

distname            torndb-${version}

checksums           rmd160  b8cfda68c0b594462f49c634bd7d481a17e4cb83 \
                    sha256  e68eb595112601be08a39ec60b7af312cee843fb1d9bb2bf73169d9c4f5e14e4

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

    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.url           ${master_sites}
    livecheck.regex         "torndb-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
