# -*- 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 fs 2.1.0
revision            0
categories-append   sysutils
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             MIT
description         Cross-platform uniform interface to file system operations
long_description    fs provides a cross-platform, uniform interface to file system operations. \
                    It shares the same back-end component as nodejs, the libuv C library, \
                    which brings the benefit of extensive real-world use and rigorous cross-platform testing. \
                    The name, and some of the interface, is partially inspired by Rust’s fs module.
homepage            https://fs.r-lib.org
checksums           rmd160  8122b8cb2e6aab48abf7ccac0ee399d5c81047bb \
                    sha256  7088af1117d65c4ceb144b532e323f197fc8243b1d704bf6edf40774789829cd \
                    size    1471347

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/libuv.pc:libuv

depends_test-append port:R-covr \
                    port:R-crayon \
                    port:R-knitr \
                    port:R-pillar \
                    port:R-rmarkdown \
                    port:R-spelling \
                    port:R-testthat \
                    port:R-tibble \
                    port:R-vctrs \
                    port:R-withr

test.run            yes
