# -*- 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-frozen
python.rootname     Frozen-Flask
version             0.15
revision            0
categories-append   www
maintainers         nomaintainer
description         Freeze a Flask application into a set of static files.
long_description    ${description} The result can be hosted without any \
                    server-side software other than a traditional web server.
license	            BSD

platforms           darwin

homepage            https://github.com/Frozen-Flask/Frozen-Flask
master_sites        pypi:F/${python.rootname}/
distname            ${python.rootname}-${version}
checksums           rmd160  c09eea59b48adcda11d33c07fc51f5faca5f805c \
                    sha256  83858d6ed8b9d3fa7fc9523e415e65fb86b99352798d7695f63cffbd59a56269 \
                    size    477516

python.versions     27 37

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

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

    test.run        yes
    test.cmd        ${python.bin} -m flask_frozen.tests
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type  none
}
