# -*- 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

# GitHub version lags behind.
R.setup             cran erichson rsvd 1.0.5
revision            2
categories-append   math
maintainers         nomaintainer
license             GPL-3+
description         Randomized Singular Value Decomposition
long_description    {*}${description}
checksums           rmd160  ee6d5fdbd82abb7885917487d780d3c8b0f3c053 \
                    sha256  e40686b869acd4f71fdb1e8e7a6c64cd6792fc9d52a78f9e559a7176ab84e21e \
                    size    3458090
supported_archs     noarch
platforms           {darwin any}

# https://github.com/erichson/rSVD/issues/10
post-extract {
    copy ${filespath}/testthat.R ${worksrcpath}/tests/
}

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

test.run            yes
