# -*- 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
PortGroup           github 1.0

github.setup        jkeyes pathfinder 0.6.1
revision            0
name                py-pathfinder

platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         A utility to find file paths.
long_description    ${description}

checksums           rmd160  972445cf1d9069b573b6baee80a112ce10697e87 \
                    sha256  c1395228700fba1da783374ddf408a0327f062daf392008ed93791d68012f27b \
                    size    135390

python.versions     27 35 36 37 38

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

    depends_test-append \
                        port:py${python.version}-nose

    test.run        yes
    test.cmd        nosetests-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type      none
}
