# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

set _name           bottle-sqlalchemy
set _n              [string index ${_name} 0]

name                py-${_name}
version             0.3

categories-append   databases devel
license             MIT
maintainers         nomaintainer

description         SQLAlchemy plugin for bottle web microframework
long_description    This bottle-sqlalchemy plugin integrates SQLAlchemy \
                    with Bottle applications. It injects a SQLAlchemy \
                    session in routes and handles the session cycle.

platforms           darwin
supported_archs     noarch

homepage            https://github.com/iurisilvio/bottle-sqlalchemy
master_sites        pypi:${_n}/${_name}/
distname            ${_name}-${version}

checksums           md5 b139d97424efcf917474f142851f0231 \
                    sha256 197189c4aa92dad32c49fcb6e8a1c365679b1d024129640a4f30eee0b2db6b78

python.versions     26 27

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

    livecheck.type  none
} else {
    livecheck.url   https://pypi.python.org/pypi/${_name}/json
    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
}