# -*- 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-weberror
version             0.13.1
python.versions     27
maintainers         nomaintainer
platforms           darwin

description         Web Error handling and exception catching
long_description    ${description}
license             MIT
homepage            https://pypi.python.org/pypi/WebError/

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

checksums           rmd160  2c007846b46cc9eb6ec9e304d44b8df95b6636bd \
                    sha256  c19f8bd57de2f1eea1b18a44f1ba1ad27421097c9ecfa0ae754fa42c9cdd9864 \
                    size    85910

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools
    depends_lib-append \
                    port:py${python.version}-paste \
                    port:py${python.version}-pygments \
                    port:py${python.version}-tempita \
                    port:py${python.version}-webob
    depends_test-append \
                    port:py${python.version}-beautifulsoup4 \
                    port:py${python.version}-nose \
                    port:py${python.version}-waitress \
                    port:py${python.version}-webtest

    post-extract {
        foreach file [glob ${worksrcpath}/WebError.egg-info/*] {
            file attributes ${file} -permissions 0644
        }
    }

    test.run        yes
    livecheck.type  none
}
