# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           ruby 1.0

ruby.branches       4.0 3.4 3.3 3.2 3.1 3.0
ruby.setup          gettext 3.5.2 gem
revision            0

categories-append   devel
license             Ruby
maintainers         {kimuraw @kimuraw} \
                    {judaew @judaew} \
                    openmaintainer

description         a Localization library and tools which modeled GNU gettext.
long_description \
    This library provides to translate original messages to \
    localized messages properly using client-side locale \
    information(environment variable or CGI variable).\
    And the tools for developers support to create, use, and \
    modify localized message files(message catalogs) easily.
homepage            https://ruby-gettext.github.io

checksums           rmd160  a38556963dc7e32282ba4a7d70e13a4f89c1ceb0 \
                    sha256  ada02c59aa7e9f56bd2522faedaed16421dd2f3ddb5fe28628c0be5abcbf3c74 \
                    size    184832

if {${name} ne ${subport}} {
    depends_run-append  port:rb${ruby.suffix}-erubi \
                        port:rb${ruby.suffix}-locale \
                        port:rb${ruby.suffix}-text

    if {${ruby.branch} < 3.3} {
        depends_run-append \
                        port:rb${ruby.suffix}-racc
    }
}
