# -*- 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             1.0.2
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 any}
supported_archs     noarch

homepage            https://github.com/Frozen-Flask/Frozen-Flask

checksums           rmd160  5b244be2293718791757296845327fea8be79366 \
                    sha256  53a7895b188b7d59eb8d6fcf3fce18e097d8b4a26b6bb665e176add1a1e03aaf \
                    size    101832

distname            frozen_flask-${version}

python.versions     312 313
python.pep517_backend hatch

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

    test.run        yes

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