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

# GitHub lags behind.
R.setup             cran jthomasmock gtExtras 0.5.0
revision            1
maintainers         nomaintainer
license             MIT
description         Extending R-gt for beautiful HTML tables
long_description    {*}${description}
homepage            https://jthomasmock.github.io/gtExtras
checksums           rmd160  fed2f66900c276f9bf7135529b847a0f1366bba4 \
                    sha256  7bbf9131e39ebf9414c3132903eccb01d1de3ca62e1aff7739366f3009e61b00 \
                    size    4045209
supported_archs     noarch
platforms           {darwin any}

depends_lib-append  port:R-cli \
                    port:R-commonmark \
                    port:R-dplyr \
                    port:R-fontawesome \
                    port:R-ggplot2 \
                    port:R-gt \
                    port:R-htmltools \
                    port:R-knitr \
                    port:R-paletteer \
                    port:R-rlang \
                    port:R-scales

patchfiles          patch-no-webshot2.diff

depends_test-append port:R-base64enc \
                    port:R-bitops \
                    port:R-covr \
                    port:R-fs \
                    port:R-hms \
                    port:R-magrittr \
                    port:R-rvest \
                    port:R-sass \
                    port:R-stringr \
                    port:R-svglite \
                    port:R-testthat \
                    port:R-tibble \
                    port:R-tidyr \
                    port:R-tidyselect \
                    port:R-xml2

# A number of tests will fail due to missing R-juicyjuice package, which R-gt expects
# and which we do not have due to its ridiculous dependency on V8.
test.run            yes