# -*- 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.2.5
revision            3
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} 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.
checksums           rmd160  a89b3353e2bee70c6fd1659145a895b52d1e62fc \
                    sha256  b6c99102b17f65209b0df38ddc8146a1eed4678afaca7b4a1643d9d59267e8c2 \
                    size    221993

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
