# -*- 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 aalfons robustHD 0.8.1 v
revision            0
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-2+
description         Robust methods for high-dimensional data
long_description    {*}${description}
homepage            https://github.com/aalfons/robustHD
checksums           rmd160  e495b3278329ecde2b84c4a9131f62f90502772a \
                    sha256  9b712d951b53795627e5ad9e1730da9a48c60286d8edd49abbd7a687f2e88238 \
                    size    1676756

# 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-ggplot2 \
                    port:R-perry \
                    port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-robustbase

compilers.setup     require_fortran

depends_test-append port:R-lars \
                    port:R-mvtnorm \
                    port:R-testthat

test.run            yes