# -*- 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             2.4.0
revision            0

categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}
maintainers         {toby @tobypeterson} openmaintainer

description         A full-fledged subprocess interface for Python
long_description    {*}${description} that allows you to call any program as if it were a function.

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

checksums           rmd160  b01fb9f4b6df6ac967cdf2d6de684d35bd697d1c \
                    sha256  a250aef68509ed93419c9a1d90b0647cd5cbe26107ba94d3717ef5b6d595ffd9 \
                    size    136950

python.versions     310 311 312 313 314
python.pep517_backend   hatch

if {${name} ne ${subport}} {
    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}
    }
}
