# -*- 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          archive-tar-minitar 0.8 gem {} rubygems
revision            0
maintainers         nomaintainer
description         Ruby library and command line utility to deal \
                    with POSIX tar archive files
long_description    Archive::Tar::Minitar is a pure-Ruby library \
                    and command-line utility that provides the ability \
                    to deal with POSIX tar(1) archive files. \
                    The implementation is based heavily on Mauricio \
                    Fernandez's implementation in rpa-base, but has \
                    been reorganised to promote reuse in other projects.
categories-append   archivers
license             BSD Ruby
checksums           rmd160  1f93760bc353f4893a14d7ba91a7ad01d1b33151 \
                    sha256  9d80e397f112133bffc468fb1042baade21417aa1f85fdbb956d66eab3275986 \
                    size    5120
platforms           any
supported_archs     noarch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:rb${ruby.suffix}-minitar \
                    port:rb${ruby.suffix}-minitar-cli

    post-destroot {
        system -W ${destroot}${ruby.gemdir}/specifications \
            "/usr/bin/patch -p0 < ${filespath}/patch-gemspec-${ruby.branch}.diff"
    }
}
