# -*- 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 r-lib tzdb 0.4.0
revision            2
categories-append   devel
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Time zone database information
long_description    {*}${description}
homepage            https://tzdb.r-lib.org
checksums           rmd160  ad91d284b08c90f1b223adee9264dbd64842809b \
                    sha256  4253c66041bdddfd463c98183bf0052fbcacdb7c5cff9eadbb858b3dcf9d3a23 \
                    size    586327

depends_lib-append  port:R-cpp11

platform darwin {
    if {(${os.major} > 10) && (${os.major} < 16)} {
        patchfiles-append \
                    patch-cxx_std.diff
    }
}

depends_test-append port:R-covr \
                    port:R-testthat

test.run            yes
