# -*- 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          sass-listen 4.0.0 gem {} rubygems
platforms           any
license             MIT
maintainers         nomaintainer
description         This fork of guard/listen provides a stable API \
                    for users of the Ruby Sass CLI
long_description    {*}${description}
homepage            https://github.com/sass/listen
checksums           rmd160  445af828a06451e6536275d60fd40cb161fdfe11 \
                    sha256  ae9dcb76dd3e234329e5ba6e213f48e532c5a3e7b0b4d8a87f13aaca0cc18377 \
                    size    27136
supported_archs     noarch

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

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