# -*- 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          gpgme 2.0.25 gem {} rubygems
revision            0
categories-append   devel crypto
license             LGPL-2.1+
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Ruby language binding of GPGME
long_description    {*}${description}
homepage            https://github.com/ueno/ruby-gpgme
checksums           rmd160  a17c94ae7ed68cb8d10e79585bcbc8a303cdd997 \
                    sha256  9242408b28720513145deb6150f25f5fe5149f3728ebaea635050cc3fc84dc34 \
                    size    3160064

if {${subport} ne ${name}} {
    depends_lib-append \
                    port:gpgme \
                    port:libassuan \
                    port:libgpg-error
    depends_run-append \
                    port:rb${ruby.suffix}-mini_portile2

    # Bundled ones do not build correctly,
    # but we do not want them anyway.
    destroot.post_args-append \
                    -- --use-system-libraries
}
