# -*- 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 astamm fdacluster 0.3.0
revision            1
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-3+
description         Joint clustering and alignment of functional data
long_description    {*}${description}
homepage            https://astamm.github.io/fdacluster/index.html
checksums           rmd160  fda1202f41766da1cfe1260a992cc2954b8515f6 \
                    sha256  838c1bd003c04a5663d7e777645944ce393f9e6fa2ecbe747011928b4d83f656 \
                    size    5100353

depends_lib-append  port:R-cli \
                    port:R-dbscan \
                    port:R-dplyr \
                    port:R-fdasrvf \
                    port:R-forcats \
                    port:R-furrr \
                    port:R-ggplot2 \
                    port:R-lpSolve \
                    port:R-nloptr \
                    port:R-progressr \
                    port:R-purrr \
                    port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-rlang \
                    port:R-tibble \
                    port:R-tidyr \
                    port:R-withr

# It is weird with this port: only macOS 12 on buildbots tries to link to libgfortran.
# However we rather avoid random failures and add fortran just in case for all.
compilers.setup     require_fortran

depends_test-append port:R-fda \
                    port:R-funData \
                    port:R-future \
                    port:R-knitr \
                    port:R-rmarkdown \
                    port:R-testthat

test.run            yes
