# -*- 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             cran fstpackage fstcore 0.9.18
revision            1
categories-append   devel
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MPL-2
description         R bindings to the Fstlib library
long_description    {*}${description}
homepage            https://www.fstpackage.org/fstcore
checksums           rmd160  070e40b22467031c05c641f902b7509239787426 \
                    sha256  18c71e17f51663d413ccc9c5c62fbdd8d5c783438bd84dd56037e91345be9f03 \
                    size    632153

# Remove this with the next update. It is a one-time fix.
if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} eq "libc++"} {
    incr revision
}

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

depends_lib-append  port:lz4 \
                    port:R-Rcpp \
                    port:zstd

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

test.run            yes
