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

# Revert to GitHub once updated there.
R.setup             cran rstudio leaflet 2.2.2 v
revision            1
maintainers         nomaintainer
license             GPL-3
description         Create and customize interactive maps
long_description    {*}${description}
homepage            https://rstudio.github.io/leaflet
checksums           rmd160  73aeefa07db71b209e2b21edb263bbf5498f2e56 \
                    sha256  d2877b8d394116cc648456a828c5b825728be6a7afbbb3d55cc142c91a1ab8eb \
                    size    1983642
supported_archs     noarch
platforms           {darwin any}

depends_lib-append  port:R-crosstalk \
                    port:R-htmltools \
                    port:R-htmlwidgets \
                    port:R-jquerylib \
                    port:R-leaflet.providers \
                    port:R-magrittr \
                    port:R-png \
                    port:R-raster \
                    port:R-RColorBrewer \
                    port:R-scales \
                    port:R-sp \
                    port:R-viridis \
                    port:R-xfun

depends_test-append port:R-knitr \
                    port:R-maps \
                    port:R-purrr \
                    port:R-R6 \
                    port:R-RJSONIO \
                    port:R-rmarkdown \
                    port:R-s2 \
                    port:R-sf \
                    port:R-shiny \
                    port:R-terra \
                    port:R-testthat

# Tests run fine via port test, but apparently do not get installed,
# so running them from R session fails: https://github.com/rstudio/leaflet/issues/881
# Notice that R-raster should be up-to-date for tests to pass.
test.run            yes
