# -*- 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          gtk3 4.3.2 gem {} rubygems
categories-append   gnome devel
license             LGPL-2.1+
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Ruby/GTK3 is a Ruby binding of GTK+-3.x
long_description    {*}${description}
homepage            https://ruby-gnome2.osdn.jp
checksums           rmd160  e6b38d8bee3da0a81b6ebe349012c12299675602 \
                    sha256  2adbde7e983d25bdcc2cad3c1d694613c22e2ccaab39c766764d48337c628691 \
                    size    867328

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

    depends_lib-append \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3

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