# -*- 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

# Revert to GitHub once updated there.
R.setup             cran alexander-pastukhov bistablehistory 1.1.2 v
revision            2
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-3+
description         Cumulative history analysis for bistable perception time series
long_description    {*}${description}
homepage            https://alexander-pastukhov.github.io/bistablehistory
checksums           rmd160  3dc9c942768b725f6e181ec38b7edba8c8dbd78c \
                    sha256  0e967eae00bf6661a44a3d9e24deeb67e141d3977a09fce9a104826cd53a9584 \
                    size    3384653

depends_lib-append  port:R-BH \
                    port:R-dplyr \
                    port:R-future \
                    port:R-glue \
                    port:R-loo \
                    port:R-magrittr \
                    port:R-purrr \
                    port:R-Rcpp \
                    port:R-RcppEigen \
                    port:R-RcppParallel \
                    port:R-rlang \
                    port:R-rstan \
                    port:R-rstantools \
                    port:R-tibble \
                    port:R-tidyr \
                    port:R-StanHeaders

post-patch {
	file attributes ${worksrcpath}/configure -permissions +x
}

depends_test-append port:R-ggplot2 \
                    port:R-knitr \
                    port:R-rmarkdown \
                    port:R-testthat

test.run            yes
