# -*- 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.2
revision            0
categories-append   math
platforms           {darwin any}
maintainers         {@barracuda156 gmail.com:vital.had} 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  299f88481ffcffe567942d76ac9df3bd8762c77d \
                    sha256  ccf6c08468a2e9db11bb5145180bc479a8bf82c7a2eb27d40d64b9a92fccc877 \
                    size    40912
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
