# -*- 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.4.0
revision            2
categories-append   math
maintainers         {@barracuda156 macos-powerpc.org:barracuda} 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  751b5b667c391c57fafb849088c1b7723605ad23 \
                    sha256  9e702a09ef5d433be48f5b5cf075b44b4d7406db09b20ff8346fb2254b88e1d5 \
                    size    5123281

depends_lib-append  port:R-cli \
                    port:R-dbscan \
                    port:R-dplyr \
                    port:R-fdasrvf \
                    port:R-future.apply \
                    port:R-ggplot2 \
                    port:R-lpSolve \
                    port:R-nloptr \
                    port:R-progressr \
                    port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-rlang \
                    port:R-tibble

# 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 \
                    port:R-withr

test.run            yes
