# -*- 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 mcnicholas mixture 2.1.1
revision            2
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-2+
description         Mixture models for clustering and classification
long_description    {*}${description}
checksums           rmd160  6a96c605335f6104e44972cbd4b9b155614c3f36 \
                    sha256  5089271d9980fbaa3f58646ce5d2687c0b9e1474e6065e9cd344435aaef1ed28 \
                    size    213964

# 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:gsl \
                    port:R-BH \
                    port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-RcppGSL

patchfiles          patch-fix-isnan-isinf.diff

compilers.setup     require_fortran

test.run            yes
