# -*- 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 nimble-dev nimbleHMC 0.2.3
revision            2
categories-append   math
platforms           {darwin any}
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             {BSD GPL-2+}
description         Hamiltonian Monte Carlo and other gradient-based MCMC \
                    sampling algorithms for R-nimble
long_description    {*}${description}
homepage            https://R-nimble.org
checksums           rmd160  2ef7447b5d22edc48d51279fa906673348b89328 \
                    sha256  748536ded1ddbda80ebab34a1252ca447b586c9ee223a069264a94d4ad8ffd73 \
                    size    40987
supported_archs     noarch

# Fix running tests:
post-extract {
    copy ${filespath}/testthat.R ${worksrcpath}/tests/
}

depends_lib-append  port:R-nimble

depends_test-append port:R-testthat

test.run            yes
