# -*- 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.recommended       yes

# This is a recommended package. Keep it CRAN-sourced.
R.setup             cran r-forge Matrix 1.7-1
revision            0
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-2+
description         Sparse and dense matrix classes and methods
long_description    {*}${description}. Recommended package.
homepage-append     https://Matrix.R-forge.R-project.org
checksums           rmd160  6ea35b2326b1c39a1833ff469013d08a3df7a119 \
                    sha256  a2cabbf04e4e2cafbd0a04281f130bb58e4f7653a91951368a404ef8682b38a1 \
                    size    2480082

# R-Matrix uses bundled parts of SuiteSparse. The version used in 1.7-0
# has a bug breaking it for < 10.7 (fixed in upstream already).
# See: https://github.com/macports/macports-ports/commit/e485b0a0c8125cb9d8bcc6241a9c2016514188c8
patchfiles          patch-pre-10.7-fix-math.diff

# Notice that recommended packages must have all hard dependencies set explicitly.
depends_lib-append  port:R-lattice

compilers.setup     require_fortran

depends_test-append port:R-graph \
                    port:R-MASS \
                    port:R-sfsmisc \
                    port:R-SparseM

test.run            yes
