# -*- 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 tidyverse dbplyr 2.5.0 v
revision            0
categories-append   databases
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         R-dplyr back-end for databases
long_description    {*}${description}
homepage            https://dbplyr.tidyverse.org
checksums           rmd160  481850ae7ccb718c76193cabef865b9591bb0c52 \
                    sha256  bb475bdbe89487b189ecc257b5c92007a7458803c81aa77bfc4ed46f5f24bcff \
                    size    770647
supported_archs     noarch

depends_lib-append  port:R-blob \
                    port:R-cli \
                    port:R-DBI \
                    port:R-dplyr \
                    port:R-glue \
                    port:R-lifecycle \
                    port:R-magrittr \
                    port:R-pillar \
                    port:R-purrr \
                    port:R-R6 \
                    port:R-rlang \
                    port:R-tibble \
                    port:R-tidyr \
                    port:R-tidyselect \
                    port:R-vctrs \
                    port:R-withr

# Making this a variant for now, since mariadb is broken on CI.
variant tests description "Enable tests" {
    depends_test-append \
                    port:R-bit64 \
                    port:R-covr \
                    port:R-knitr \
                    port:R-Lahman \
                    port:R-nycflights13 \
                    port:R-odbc \
                    port:R-RMariaDB \
                    port:R-rmarkdown \
                    port:R-RPostgres \
                    port:R-RPostgreSQL \
                    port:R-RSQLite \
                    port:R-testthat

    test.run        yes
}
