# -*- 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-werkzeug
python.rootname     Werkzeug
version             1.0.1
revision            0
categories-append   www
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 35 36 37 38

maintainers         {stromnov @stromnov} openmaintainer

description         The Swiss Army knife of Python web development

long_description    Werkzeug is a one of the most advanced WSGI utility \
                    modules. It includes a powerful debugger, full featured \
                    request and response objects, HTTP utilities to handle \
                    entity tags, cache control headers, HTTP dates, cookie \
                    handling, file uploads, a powerful URL routing system \
                    and a bunch of community contributed addon modules.

homepage            https://palletsprojects.com/p/werkzeug/

checksums           rmd160  9dc625e19c6cb90783972a8d467bd5270aafe30c \
                    sha256  6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c \
                    size    904455

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

    post-destroot {
        set docdir ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 755 -d ${docdir}/examples
        foreach f [glob -directory ${worksrcpath}/docs *] {
            copy $f ${docdir}/[file tail $f]
        }
        foreach f [glob -directory ${worksrcpath}/examples *] {
            copy $f ${docdir}/examples/[file tail $f]
        }
        delete ${docdir}/Makefile
    }

    livecheck.type      none
}
