# -*- 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           legacysupport 1.1
PortGroup           R 1.0

# strnlen
legacysupport.newest_darwin_requires_legacy 10

R.setup             github tidyverse vroom 1.6.5 v
revision            1
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         The fastest delimited reader for R
long_description    {*}${description}
homepage            https://vroom.r-lib.org
checksums           rmd160  aa0dbdc4fd03ed022523a6ec0af45a6cf448b089 \
                    sha256  e633cc72d5c5c37306a563d67f5819ac4b836258cd1f694261c1189aea62a696 \
                    size    2496927

depends_lib-append  port:R-bit64 \
                    port:R-cli \
                    port:R-cpp11 \
                    port:R-crayon \
                    port:R-glue \
                    port:R-hms \
                    port:R-lifecycle \
                    port:R-progress \
                    port:R-rlang \
                    port:R-tibble \
                    port:R-tidyselect \
                    port:R-tzdb \
                    port:R-vctrs \
                    port:R-withr

if {${os.platform} eq "darwin" && ${os.major} < 11} {
    patchfiles-append \
                    patch-Makevars.diff
    post-patch {
        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/Makevars
    }
}

depends_test-append port:R-archive \
                    port:R-bench \
                    port:R-covr \
                    port:R-curl \
                    port:R-dplyr \
                    port:R-forcats \
                    port:R-fs \
                    port:R-ggplot2 \
                    port:R-knitr \
                    port:R-patchwork \
                    port:R-prettyunits \
                    port:R-purrr \
                    port:R-rmarkdown \
                    port:R-rstudioapi \
                    port:R-scales \
                    port:R-spelling \
                    port:R-testthat \
                    port:R-tidyr \
                    port:R-waldo \
                    port:R-xml2

test.run            yes
