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

# GitHub version is old.
R.setup             cran odelmarcelle stm 1.3.7
revision            1
categories-append   textproc
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Estimation of the Structural Topic Model
long_description    The Structural Topic Model (STM) allows researchers \
                    to estimate topic models with document-level covariates.
homepage            https://github.com/bstewart/stm
checksums           rmd160  f1ec018357d8293db6a745313a405b62cd7f6bb5 \
                    sha256  b874e2f06d8181c6e79aaf4286643ec7da5d7d2b62ab7cc4983896920b367b33 \
                    size    1876567

depends_lib-append  port:R-data.table \
                    port:R-glmnet \
                    port:R-lda \
                    port:R-matrixStats \
                    port:R-quadprog \
                    port:R-quanteda \
                    port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-slam \
                    port:R-stringr

compilers.setup     require_fortran

depends_test-append port:R-clue \
                    port:R-geometry \
                    port:R-huge \
                    port:R-igraph \
                    port:R-LDAvis \
                    port:R-NLP \
                    port:R-rsvd \
                    port:R-Rtsne \
                    port:R-SnowballC \
                    port:R-spelling \
                    port:R-testthat \
                    port:R-tm \
                    port:R-wordcloud

# TODO: https://github.com/bstewart/stm/issues/287
test.run            yes
