# -*- 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 wenjie2wang splines2 0.5.3 v
revision            0
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-3+
description         Regression spline functions and classes
long_description    {*}${description}
homepage            https://wwenjie.org/splines2
checksums           rmd160  cdbb3484af06968eec75e129e2d95f416a0589c1 \
                    sha256  c27e7bd12d615095f765f4c1ed3cb9e39b922653aabbe88c4ca3ac31e6a01ddc \
                    size    933326
# github.tarball_from archive

# 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_lib-append  port:R-Rcpp \
                    port:R-RcppArmadillo

compilers.setup     require_fortran

depends_test-append port:R-knitr \
                    port:R-rmarkdown \
                    port:R-tinytest

test.run            yes
