# -*- 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-pudb
version             2024.1.3
revision            0

categories-append   devel
license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         A full-screen, console-based Python debugger
long_description    PuDB is a full-screen, console-based visual debugger for \
                    Python. Its goal is to provide all the niceties of \
                    modern GUI-based debuggers in a more lightweight and \
                    keyboard-friendly package. PuDB allows you to debug code \
                    right where you write and test it--in a terminal. If \
                    you've worked with the excellent (but nowadays ancient) \
                    DOS-based Turbo Pascal or C tools, PuDB's UI might look \
                    familiar.

homepage            https://github.com/inducer/pudb

checksums           rmd160  981e9cebbbabab1432e4cd0ca2cdbd8c492e34db \
                    sha256  264f239e0538e52e83d3d020143100b3171cae17227674bb1b9f8b075f34849c \
                    size    219443

python.versions     310 311 312 313
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-jedi \
                    port:py${python.version}-packaging \
                    port:py${python.version}-pygments \
                    port:py${python.version}-urwid \
                    port:py${python.version}-urwid-readline

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