# -*- 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

name                rb-fsevent-legacy
ruby.branches       3.3 3.2 3.1 3.0 2.7
ruby.setup          rb-fsevent-legacy 0.2.0 gem {} rubygems
categories-append   devel
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Legacy version of an FSEvents API for Darwin
long_description    {*}${description} - it works on PowerPCs and 10.5.8.
homepage            https://rubygems.org/gems/rb-fsevent-legacy
checksums           rmd160  bf8a908eb97ef7ee7ceb2d83fce1f5ff741e9bda \
                    sha256  41c6c423124ee99886a6c6fc0564a4106e0f1da765eff754ddbfbd5569591c4a \
                    size    11776

# Clang gets unhappy: error: '__declspec' attributes are not enabled;
# use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
# We can use -fms-extensions unconditionally, it works with GCC too.
if {${name} ne ${subport}} {
    platforms       {darwin < 11}
    destroot.post_args-append \
                    -- --with-cflags="-fms-extensions"
}
