# -*- 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          cairo 1.17.13 gem {} rubygems
maintainers         {kimuraw @kimuraw} openmaintainer
description         Ruby bindings for Cairo
long_description    {*}${description}. Cairo is a 2D graphics library \
                    with support for multiple output devices.
homepage            https://rcairo.github.io
categories-append   graphics
license             GPL-2+ Ruby

checksums           rmd160  f063e213573a3812794ba561fdb58c2efd192e09 \
                    sha256  8ca44023747de6c290e71657c4b826f500dc2996ec78759719c28a25757c05a9 \
                    size    199168

if {${name} ne ${subport}} {
    depends_build-append \
                    port:pkgconfig

    depends_lib-append \
                    path:lib/pkgconfig/cairo.pc:cairo \
                    port:freetype

    depends_run-append \
                    port:rb${ruby.suffix}-native-package-installer \
                    port:rb${ruby.suffix}-pkg-config \
                    port:rb${ruby.suffix}-red-colors
}