# -*- 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             2.5.11
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  244ba71e0648f479448ef4de1c414c96837334cf \
                    sha256  30a0d385021fbe4a4116672845e5695bbe56eb682f9096066776394f954a7429 \
                    size    883350

python.versions     39 310 311 312 313

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

    if {${python.version} < 310} {
        depends_lib-append  port:py${python.version}-importlib-metadata
    }

    depends_run-append \
                    port:py${python.version}-pyperclip \
                    port:py${python.version}-wcwidth
}
