# -*- 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 ku-awdc runjags 2.2.2-5
revision            1
categories-append   math
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             GPL-2
description         Interface utilities, model templates, parallel computing methods \
                    and additional distributions for MCMC models in JAGS
long_description    {*}${description}
homepage            https://github.com/ku-awdc/runjags
checksums           rmd160  90572a1dc36b2bdb859348a34c3c550fa90c87c8 \
                    sha256  0eb4c686b815a4a7b23fd0b21811abbdb0188d6b5d1502280d5c04632f4d3851 \
                    size    1106856

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:jags \
                    port:R-coda

# The issue is not as obvious as with other JAGS-related ports,
# but shows up in tests.
if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libc++"} {
    patchfiles      patch-fix-cxx11.diff
}

depends_test-append port:R-knitr \
                    port:R-markdown \
                    port:R-modeest \
                    port:R-rjags \
                    port:R-spelling \
                    port:R-testthat

test.run            yes
