# -*- 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 3.0
ruby.setup          xml-simple 1.1.9 gem {} rubygems
description         A simple API for XML processing
long_description    \
    Class XmlSimple offers an easy API to read and write XML. It is a Ruby \
    translation of Grant McLean's Perl module XML::Simple.
license             Ruby
maintainers         nomaintainer
homepage            https://github.com/maik/xml-simple
platforms           any
supported_archs     noarch
checksums           rmd160  966801ee87943b12ed49ed8f8f72e88a419f855d \
                    sha256  d21131e519c86f1a5bc2b6d2d57d46e6998e47f18ed249b25cad86433dbd695d \
                    size    12288

if {${name} ne ${subport}} {
    if {${ruby.branch} < 3.3} {
        depends_run-append \
                    port:rb${ruby.suffix}-rexml
    }
}
