# -*- 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 comodin19 BayesVarSel 2.4.5
revision            2
categories-append   math
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             GPL-2
description         Bayes factors, model choice and variable selection in linear models
long_description    Bayes factors and posterior probabilities in Linear models, \
                    aimed at providing a formal Bayesian answer to testing and variable selection problems.
homepage            https://github.com/comodin19/BayesVarSel
checksums           rmd160  e57e5058d9541686c91495d4879f377514f5bc68 \
                    sha256  d13ed4831af8b65e96bf1ef1115bb1b4b433b4b95415391d91aa9e9faf2e38fe \
                    size    227829

depends_lib-append  port:gsl \
                    port:R-mvtnorm

# Makevars hardcodes a wrong prefix, fix it.
post-patch {
    reinplace "s,/usr/local,${prefix}," ${worksrcpath}/src/Makevars
}

depends_test-append port:R-faraway \
                    port:R-hdi \
                    port:R-knitr

# Example fails to fun: https://github.com/comodin19/BayesVarSel/issues/47
test.run            yes
