# -*- 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-editor
version             1.7.0
revision            0
categories-append   sysutils
platforms           any
license             MIT
maintainers         nomaintainer
description         Open the default text editor
long_description    {*}${description}
homepage            https://github.com/rec/editor
checksums           rmd160  1e638a17210348e83a5e0bfbe59c3bf099b0b04a \
                    sha256  979b25e3f7e0386af4478e7392ecb99e6c16a42db7c4336d6b16658fa0449fb3 \
                    size    2355
supported_archs     noarch

python.versions         310 311 312 313 314
python.pep517_backend   poetry

if {${subport} ne ${name}} {
    # https://github.com/rec/editor/issues/12
    patchfiles-append   patch-poetry.diff

    depends_run-append  port:py${python.version}-runs \
                        port:py${python.version}-xmod
}
