# -*- 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             github DiogoFerrari hdpGLM 1.0.3 v
revision            1
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Hierarchical Dirichlet process generalized linear models
long_description    {*}${description}
homepage            http://www.diogoferrari.com/hdpGLM/index.html
checksums           rmd160  100f10e12e243eaba45b8215482a54cfeae66d57 \
                    sha256  4b811534f3f039a7226d9817354d0c7bcc7ec16f55901f2a40411fceed49f509 \
                    size    9438782

depends_lib-append  port:R-coda \
                    port:R-data.table \
                    port:R-dplyr \
                    port:R-formula.tools \
                    port:R-ggjoy \
                    port:R-ggplot2 \
                    port:R-ggpubr \
                    port:R-ggridges \
                    port:R-Hmisc \
                    port:R-isotone \
                    port:R-LaplacesDemon \
                    port:R-magrittr \
                    port:R-MCMCpack \
                    port:R-mvtnorm \
                    port:R-png \
                    port:R-purrr \
                    port:R-questionr \
                    port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-rprojroot \
                    port:R-stringr \
                    port:R-tibble \
                    port:R-tidyr \
                    port:R-tidyverse

compilers.setup     require_fortran

post-extract {
    delete ${worksrcpath}/src/hdpGLM.so
    foreach obj [glob ${worksrcpath}/src/*.o] {
        delete ${obj}
    }
}

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

test.run            yes