# -*- 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.53
revision            0

license             BSD
maintainers         nomaintainer
description         Library for building powerful interactive command lines in Python
long_description    {*}${description}
homepage            https://github.com/prompt-toolkit/python-prompt-toolkit

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  07041f52122c0271c278a399d8e5722401f79a0d \
                    sha256  9ec8a0ad96d5c56148b3f914aa79c1564c3fde5d2e6b876e7bc327e353cf8fa6 \
                    size    435492

python.versions     310 311 312 313 314

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