# -*- 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 RfastOfficial Rfast 2.1.0
revision            2
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-2+
description         Collection of efficient and extremely fast R functions
long_description    {*}${description}
checksums           rmd160  27cba9305fa8e998eda3acdfe30623a0c6007efd \
                    sha256  f9e46cac99db756cd49c9cd83be8adc0d381e6c03102389bfdcb8258d02418ff \
                    size    331500

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

depends_lib-append  port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-RcppParallel \
                    port:R-RcppZiggurat

compilers.setup     require_fortran
compiler.cxx_standard 2017

depends_test-append port:R-philentropy

test.run            yes