# -*- 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
PortGroup           select 1.0
PortGroup           github 1.0

github.setup        rocky python3-trepan 1.2.3
github.tarball_from archive
name                py-trepan3k
revision            0

categories-append   devel
platforms           darwin
supported_archs     noarch
license             GPL-3+
maintainers         {reneeotten @reneeotten} openmaintainer

description         A gdb-like Python 3 Debugger in the Trepan family
long_description    This is a gdb-like debugger for Python. It is a rewrite of pdb \
                    from the ground up. A command-line interface (CLI) is provided \
                    as well as an remote access interface over TCP/IP.

checksums           rmd160  ff7ce791dbb1228a0f62b3c9fe4e7ef9adf2c176 \
                    sha256  935dc33094622c97b9928a842ae70797a5b72efe58d30e8f2f6be1a0147ce5f4 \
                    size    280282

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-columnize \
                    port:py${python.version}-pyficache \
                    port:py${python.version}-pygments \
                    port:py${python.version}-spark_parser \
                    port:py${python.version}-tracer \
                    port:py${python.version}-term-background \
                    port:py${python.version}-uncompyle6 \
                    port:py${python.version}-xdis \
                    port:trepan3k_select

    depends_test-append \
                    port:py${python.version}-nose \
                    port:py${python.version}-pyficache

    test.run        yes
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    select.group    trepan3k
    select.file     ${filespath}/trepan${python.version}

    notes "
To make the Python ${python.branch} version of ${python.rootname} the one that is run\
when you execute the commands without a version suffix, e.g. '${python.rootname}', run:

sudo port select --set ${select.group} [file tail ${select.file}]
"
    livecheck.type  none
}
