# -*- 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-jmespath-terminal
version             0.2.1
revision            0
platforms           darwin
license             Permissive
maintainers         nomaintainer

description         JMESPath, in your terminal!
long_description    ${description}

homepage            https://github.com/boto/jmespath
master_sites        pypi:j/jmespath-terminal
distname            jmespath-terminal-${version}

checksums           rmd160  cebee4ce13b29e2bc9a517e89c1b22164b636c7f \
                    sha256  60c538e6c0244d2b58d7ff470839b9742a91b74d685a6cbf2764a4895f133639 \
                    size    6295

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}-urwid \
                        port:py${python.version}-jmespath \
                        port:py${python.version}-pygments

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

    livecheck.type      none
}

subport py34-${python.rootname} {
    replaced_by py35-${python.rootname}
    PortGroup obsolete 1.0
}