# -*- 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             github turgeonmaxime rootWishart 0.4.1 v
revision            4
categories-append   math
maintainers         nomaintainer
license             GPL-2+
description         Distribution of largest root for single and double Wishart settings
long_description    {*}${description}
checksums           rmd160  42f975920c9f3f99d229df15b2bd571e6e199139 \
                    sha256  e543c5ebc1fb2641a91a160063369db92eab4ab1a2bd049f9428beffacbaa61e \
                    size    9117
github.tarball_from tarball

# Fails to build with C++11 now.
post-patch {
    reinplace "s|CXX_STD = CXX11|CXX_STD = CXX17|" ${worksrcpath}/src/Makevars
}

depends_lib-append  port:R-BH \
                    port:R-Rcpp \
                    port:R-RcppEigen

depends_test-append port:R-testthat

test.run            yes
