# -*- 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-webtest
version             2.0.33
revision            0
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         Helper to test WSGI applications
long_description    ${description}
license             MIT
homepage            https://pypi.python.org/pypi/WebTest/

distname            WebTest-${version}
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

checksums           rmd160  dedb6f6a0f7e58898c825e7cbcc6113781cf4a7f \
                    sha256  41348efe4323a647a239c31cde84e5e440d726ca4f449859264e538d39037fd0 \
                    size    76081

python.versions     27 35 36 37

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

    depends_lib-append \
                    port:py${python.version}-beautifulsoup4 \
                    port:py${python.version}-six \
                    port:py${python.version}-waitress \
                    port:py${python.version}-webob

    depends_test-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-mock \
                    port:py${python.version}-nose \
                    port:py${python.version}-pastedeploy \
                    port:py${python.version}-pyquery
                    # TODO: misisng test dependency WSGIProxy2
    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst license.rst \
            CHANGELOG.rst contributing.md RELEASING.rst ${destroot}${docdir}
    }

    livecheck.type  none
}
