# -*- 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.3.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  8c61c6e3130947aac169b52addf8ac0f480e36ff \
                    sha256  402af9087bf8a5557562913ca83d715bfa0646cb93865c5d60c5578b07b17871 \
                    size    135995

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}
    }
}
