# -*- 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.1 v
revision            0
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  18b1df25f5f48d86cadb839dce833dddbfb27335 \
                    sha256  b7a1246bdfdaf569d66d1a37fa4284298bade1df242a4c9252d0a7cc6b3096ab \
                    size    535685
github.tarball_from archive

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
