# -*- 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-flask-mongoalchemy
python.rootname     Flask-MongoAlchemy
version             0.7.2
revision            0
categories-append   www
maintainers         nomaintainer
description         Add Flask support for MongoDB using MongoAlchemy
long_description    ${description}
license             BSD

platforms           darwin

homepage            https://github.com/cobrateam/flask-mongoalchemy
master_sites        pypi:F/${python.rootname}
distname            ${python.rootname}-${version}
checksums           rmd160  988ca8c81553d35253fd98c55e0719845b8527a0 \
                    sha256  7bf17e8d5f0702315c839a93a3bbd47e116b6ea4005e625efe9c570b2f0e2f2b \
                    size    6630

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-flask \
                    port:py${python.version}-mongoalchemy \
                    port:py${python.version}-pymongo

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
            ${destroot}${docdir}
    }

    livecheck.type  none
}