# -*- 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       3.3 3.2 3.1 3.0
ruby.setup          gettext 3.5.1 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  5013e5c8a5c0b7217827557e817ddd4fa634b290 \
                    sha256  03ec7f71ea7e2cf1fdcd5e08682e98b81601922fdbee890b7bc6f63b0e1a512a \
                    size    183808

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
    }
}
