# -*- 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 sparklyr sparklyr 1.8.6
revision            0
maintainers         nomaintainer
license             Apache-2
description         R Interface to Apache Spark
long_description    {*}${description}
homepage            https://spark.posit.co
checksums           rmd160  619a1986ba20d873d1ac761f076d2cca95c0bbc5 \
                    sha256  c3d89b42cb4df109ef4a9e19db1d94a5e9f0759796ad089b46bdc31c2287e3fa \
                    size    3211396
supported_archs     noarch

depends_lib-append  port:R-config \
                    port:R-DBI \
                    port:R-dbplyr \
                    port:R-dplyr \
                    port:R-generics \
                    port:R-globals \
                    port:R-glue \
                    port:R-httr \
                    port:R-jsonlite \
                    port:R-openssl \
                    port:R-purrr \
                    port:R-rlang \
                    port:R-rstudioapi \
                    port:R-tidyr \
                    port:R-tidyselect \
                    port:R-uuid \
                    port:R-vctrs \
                    port:R-withr \
                    port:R-xml2

variant tests description "Enable testing" {
    depends_test-append \
                    port:R-arrow \
                    port:R-broom \
                    port:R-diffobj \
                    port:R-foreach \
                    port:R-ggplot2 \
                    port:R-iterators \
                    port:R-janeaustenr \
                    port:R-Lahman \
                    port:R-mlbench \
                    port:R-nycflights13 \
                    port:R-parsnip \
                    port:R-r2d3 \
                    port:R-R6 \
                    port:R-RCurl \
                    port:R-reshape2 \
                    port:R-rprojroot \
                    port:R-shiny \
                    port:R-testthat

    test.run        yes
}
