# -*- 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-formalchemy
version             1.4.1
platforms           darwin
supported_archs     noarch
license             MIT

maintainers         nomaintainer

description         FormAlchemy greatly speeds development with SQLAlchemy \
                    mapped classes (models) in a HTML forms environment.
long_description    ${description}

homepage            https://pypi.python.org/pypi/FormAlchemy/
master_sites        pypi:F/FormAlchemy/
distname            FormAlchemy-${version}

checksums           rmd160 d7f78d51bf7fd20c642356002bcfa77022fb56fc

python.versions     26 27

if {$subport ne $name} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-sqlalchemy \
        	            port:py${python.version}-tempita \
                            port:py${python.version}-webhelpers \
                            port:py${python.version}-webob

    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   ${homepage}
    livecheck.regex {>FormAlchemy (.+) :}
}