# -*- 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-traceback2
version             1.4.0
revision            1

categories-append   devel
platforms           darwin
supported_archs     noarch
license             PSF
maintainers         {reneeotten @reneeotten} openmaintainer

description         Backports of the traceback module
long_description    ${description}

homepage            https://github.com/testing-cabal/traceback2
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  3baf3da615360e8a4b773325102b49d2acbf5b5d \
                    sha256  05acc67a09980c2ecfedd3423f7ae0104839eccb55fc645773e1caa0951c3030 \
                    size    15872

python.versions     27

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

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

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

    livecheck.type none
}
