# -*- 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.3.2 gem {} rubygems
categories-append   gnome devel
license             LGPL-2.1+
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Ruby/GTK4 is a Ruby binding of GTK+-4.x
long_description    {*}${description}
homepage            https://ruby-gnome2.osdn.jp
checksums           rmd160  56fa5df0213e52799637a7ffaff20a46f38352f9 \
                    sha256  f83eb57f16c9be5bf7e3f6eed1afd22a82656e9c16f3e901c7609722d6a10385 \
                    size    96256

if {${subport} ne ${name}} {
    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
}
