# -*- 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 r-lib clock 0.7.0 v
revision            1
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Date–Time types and tools
long_description    {*}${description}
homepage            https://clock.r-lib.org
checksums           rmd160  ea5de6177f5bcbb8c44305dceeb21c15e187dd38 \
                    sha256  efa4ab4165c070cc905b3b0c68b99ef54b58ddf575239366b1386084432318d2 \
                    size    535504

depends_lib-append  port:R-cli \
                    port:R-cpp11 \
                    port:R-lifecycle \
                    port:R-rlang \
                    port:R-tzdb \
                    port:R-vctrs

# https://trac.macports.org/ticket/68533
platform darwin {
    if {${os.major} < 16 && ${configure.cxx_stdlib} eq "libc++"} {
        post-extract {
            copy ${filespath}/Makevars ${worksrcpath}/src/
        }
    }
}

depends_test-append port:R-covr \
                    port:R-knitr \
                    port:R-magrittr \
                    port:R-pillar \
                    port:R-rmarkdown \
                    port:R-slider \
                    port:R-testthat \
                    port:R-withr

test.run            yes
