# -*- 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          gpgme 2.0.24 gem {} rubygems
revision            1
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  a97e976c52a2d63b41bece1878a46669bafefbd7 \
                    sha256  53eccd7042abb4fd5c78f30bc9ed075b1325e6450eab207f2f6a1e7e28ae3b64 \
                    size    3498496

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