# -*- 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-cmd2
version             4.4.0
revision            0

maintainers         nomaintainer
license             MIT
supported_archs     noarch
platforms           {darwin any}

description         Tool for building interactive command line applications in Python
long_description    {*}${description}
homepage            https://github.com/python-cmd2/cmd2

checksums           rmd160  44088e0a1cae5500cd509fb08f2c0504ec159c67 \
                    sha256  6655b92e0231a43f20eadb6fb9a1ad54f8b9c9e716b4ce493542044f0d3ca926 \
                    size    826174

python.versions     311 312 313 314 315

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

    depends_run-append \
                    port:py${python.version}-pyperclip \
                    port:py${python.version}-prompt_toolkit \
                    port:py${python.version}-rich \
                    port:py${python.version}-rich-argparse
}
