# -*- 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             github cynkra dm 1.0.10.9006 v
revision            1
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Relational Data Models
long_description    {*}${description}
homepage            https://dm.cynkra.com
checksums           rmd160  39ea872b5fba5630bfbb3440c6c12aa484027ecf \
                    sha256  5bcb159b541ce3e2ac16d39b98727fefa7b5b4c7d52298573b9c50eed3bf43e6 \
                    size    3750066
supported_archs     noarch

depends_lib-append  port:R-backports \
                    port:R-cli \
                    port:R-DBI \
                    port:R-dplyr \
                    port:R-glue \
                    port:R-igraph \
                    port:R-lifecycle \
                    port:R-magrittr \
                    port:R-memoise \
                    port:R-pillar \
                    port:R-purrr \
                    port:R-rlang \
                    port:R-tibble \
                    port:R-tidyr \
                    port:R-tidyselect \
                    port:R-vctrs

variant tests description "Enable testing" {
    # A few optional deps are omitted.
    depends_test-append \
                    port:R-brio \
                    port:R-colourpicker \
                    port:R-covr \
                    port:R-crayon \
                    port:R-DBI \
                    port:R-dbplyr \
                    port:R-DiagrammeR \
                    port:R-digest \
                    port:R-duckdb \
                    port:R-fansi \
                    port:R-forcats \
                    port:R-htmltools \
                    port:R-htmlwidgets \
                    port:R-jsonlite \
                    port:R-keyring \
                    port:R-knitr \
                    port:R-labelled \
                    port:R-magrittr \
                    port:R-mockr \
                    port:R-nycflights13 \
                    port:R-odbc \
                    port:R-pillar \
                    port:R-pool \
                    port:R-progress \
                    port:R-reactable \
                    port:R-RMariaDB \
                    port:R-rmarkdown \
                    port:R-RPostgres \
                    port:R-RSQLite \
                    port:R-rstudioapi \
                    port:R-shiny \
                    port:R-shinyAce \
                    port:R-shinydashboard \
                    port:R-testthat \
                    port:R-waldo \
                    port:R-withr

    # A few tests will fail on Big-endian platforms
    # due to DuckBD bug: https://github.com/cynkra/dm/issues/2211
    test.run        yes
}
