# -*- 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           ruby 1.0

ruby.branches       3.4 3.3 3.2 3.1
ruby.setup          diakonos 0.9.12 gem {} rubygems
revision            1
categories-append   editors
platforms           any
license             GPL-3
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Console text editor
long_description    ${name} is a console text editor for the masses.
homepage            https://git.sr.ht/~pistos/diakonos
checksums           rmd160  3d6c1a6daeca5c60f948b09ad7d06205090d1670 \
                    sha256  41def27283a1cfe8eb5a5e28e7c46c77c3a00078ab3a2cdc6130016be3927397 \
                    size    127488
supported_archs     noarch

if {${name} ne ${subport}} {
    depends_run-append \
                    port:rb${ruby.suffix}-curses

    post-destroot {
        # Verify this works correctly when updating:
        reinplace "s|= 1.4.6|>= 1.4.6|g" ${destroot}${ruby.gemdir}/specifications/${ruby.module}-${version}.gemspec
    }
}
