# -*- 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.5.0
revision            2
categories-append   devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             MIT
description         Time zone database information
long_description    {*}${description}
homepage            https://tzdb.r-lib.org
checksums           rmd160  9d52576ed089fe1c8ebc7742aa0cf3091ccd4d83 \
                    sha256  380d5237dbfa722fddb7d1d9ad8520a2b26331dbbb77d51850ded332fcf347db \
                    size    600718

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
