# -*- 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.4 3.3 3.2 3.1 3.0
ruby.setup          sassc 2.4.0 gem {} rubygems
categories-append   devel
license             MIT
maintainers         nomaintainer
description         Use libsass with Ruby!
long_description    {*}${description}
homepage            https://github.com/sass/sassc-ruby
checksums           rmd160  2fa1d26256e46310c921856a14e54d0219bd8fb1 \
                    sha256  4c60a2b0a3b36685c83b80d5789401c2f678c1652e3288315a1551d811d9f83e \
                    size    304640

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

    post-destroot {
        reinplace "s|~> 1.9|>= 1.9|g" ${destroot}${ruby.gemdir}/specifications/${ruby.module}-${version}.gemspec
    }
}
