# -*- 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             3.1.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  e4e49966c6c04490b97ee570bb0aec3a21244ced \
                    sha256  cce3aece018b0b1055988adaa2b687ac9c1df38bfd2abfc29dbeb51a9707de33 \
                    size    1002416

python.versions     310 311 312 313

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}-gnureadline \
                    port:py${python.version}-rich \
                    port:py${python.version}-rich-argparse
}
