# -*- 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-sh
version             1.14.1
categories-append   devel
license             MIT
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

description         sh (previously pbs) is a full-fledged subprocess interface
long_description    {*}${description} \
                    for Python 2.6 - 3.8 that allows you to call any program as \
                    if it were a function

homepage            https://amoffat.github.io/sh/

checksums           rmd160  c7ccba3d3885f6a88e28f32cb084a8479b874d94 \
                    sha256  39aa9af22f6558a0c5d132881cf43e34828ca03e4ae11114852ca6a55c7c1d8e \
                    size    63317

python.versions     27 35 36 37 38 39

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

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

    livecheck.type  none
}
