# -*- 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-robotframework-ride
version             2.2.2
revision            0

license             Apache-2

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
description         Robot Framework test case editor
long_description    {*}${description}

homepage            https://github.com/robotframework/RIDE

distname            robotframework_ride-${version}

checksums           rmd160  47668c58200080419c1663b4fee758d48bb13805 \
                    sha256  5a4615c8b74c0bedac7fa3f65168e9e18a2549971f8f46703859c04e07995ded \
                    size    2290141

python.versions     313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-fancy-pypi-readme

    # Upstream declares "ride" in both console_scripts and gui_scripts,
    # causing python -m installer to fail with FileExistsError.
    patchfiles-append   patch-remove-gui-scripts.diff

    depends_lib-append \
                    port:py${python.version}-isbinary \
                    port:py${python.version}-packaging \
                    port:py${python.version}-psutil \
                    port:py${python.version}-Pygments \
                    port:py${python.version}-pypubsub \
                    port:py${python.version}-requests \
                    port:py${python.version}-robotframework \
                    port:py${python.version}-wxPython-4.0
}
