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

R.setup             cran rstudio sass 0.4.9
revision            1
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Syntactically Awesome Style Sheets
long_description    {*}${description}
checksums           rmd160  bed409f08ca1f9667ce04a258609f17203d8d2a4 \
                    sha256  e133049aad7964e0f6150257e1470b3748f36029322265ee797b8caf7517d4d2 \
                    size    3025086

depends_lib-append  port:R-fs \
                    port:R-htmltools \
                    port:R-R6 \
                    port:R-rappdirs \
                    port:R-rlang

if {[string match *gcc* ${configure.compiler}]} {
    # error: unrecognized command-line option '-stdlib=libc++'
    post-patch {
        reinplace "s|-stdlib=libc++||g" ${worksrcpath}/src/libsass/Makefile
    }
}

depends_test-append port:R-curl \
                    port:R-knitr \
                    port:R-rmarkdown \
                    port:R-shiny \
                    port:R-testthat \
                    port:R-withr

test.run            yes
