# -*- 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 115132 2013-12-25 12:15:46Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-torndb
version             0.2
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  79a7d233521e1e73af037e82d83653db3df929e9 \
                    sha256  9bac7aef214c3aa9623e0693bc8e1d7e387d195b82fec2256c1212cacee42c29

if {${name} ne ${subport}} {
    depends_lib-append      port:py${python.version}-mysql

    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.url           ${master_sites}
    livecheck.regex         {torndb-(\d+(?:\.\d+)*)\.[tz]}
}
