# -*- 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          bee 0.12.2 gem {} rubygems
revision            0

categories-append   devel
license             Apache
platforms           any
supported_archs     noarch
maintainers         nomaintainer
description         Bee is a build tool running YAML files
long_description    {*}${description} \
                    These build files have a clean syntax à la Ant \
                    and run as fast as make. They are made of shell \
                    commands, Ruby code or Bee tasks for platform \
                    independent builds.
checksums           rmd160  dd3500e4f59589a2d95d7d938ea7721cdf2d7b5f \
                    sha256  7860a26a7ffbc1968fb10ee3b07fd1015754ec3f3ca697ff7c440dad906207ef \
                    size    53248

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:rb${ruby.suffix}-archive-tar-minitar \
                    port:rb${ruby.suffix}-highline \
                    port:rb${ruby.suffix}-rubyzip

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