# -*- 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-prompt_toolkit
version             3.0.50
revision            0

license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
description         Library for building powerful interactive command lines in Python
long_description    {*}${description}

python.versions     39 310 311 312 313

homepage            https://github.com/prompt-toolkit/python-prompt-toolkit

checksums           rmd160  441b67833a619f419e78c239dadfba19ef90c725 \
                    sha256  544748f3860a2623ca5cd6d2795e7a14f3d0e1c3c9728359013f79877fc89bab \
                    size    429087

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

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE AUTHORS.rst \
            README.rst CHANGELOG ${destroot}${docdir}
        copy ${worksrcpath}/examples ${destroot}${docdir}/examples
    }
}
