# -*- 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.3 3.2 3.1
ruby.setup          gtk4 4.2.4 gem {} rubygems
categories-append   gnome devel
license             LGPL-2.1+
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Ruby/GTK4 is a Ruby binding of GTK+-4.x
long_description    {*}${description}
homepage            https://ruby-gnome2.osdn.jp
checksums           rmd160  1c10421f9e32b6011217ed67b05da1a607b37cbd \
                    sha256  0d54e14efc8bb609a2557d7359599328f957a5ad2ef465842fac8796f38d36ee \
                    size    95744

if {${name} ne ${subport}} {
    depends_build-append \
                    path:bin/pkg-config:pkgconfig

    depends_lib-append \
                    path:lib/pkgconfig/gtk4.pc:gtk4

    depends_run-append \
                    port:rb${ruby.suffix}-atk \
                    port:rb${ruby.suffix}-gdk4
}
