# -*- 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
PortGroup           github 1.0

github.setup        lepture flask-wtf 0.14.2 v
revision            0
name                py-flask-wtf
categories-append   www
maintainers         nomaintainer
description         Simple integration of Flask and WTForms
long_description    \
    Flask-WTF offers simple integration with WTForms. This integration includes \
    optional CSRF handling for greater security.

license             BSD
platforms           darwin
checksums           rmd160  d13526641737fe8d22f67b613a11c024c43b5fc0 \
                    sha256  14dcf2ffcfc2f17ebd2b59221bf1de6f826a38d251435f32bce63f9cd0e64293 \
                    size    252962

python.versions     27 37

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

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

    livecheck.type  none
}