# -*- 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 outdated.
R.setup             cran cole-trapnell-lab leidenbase 0.1.36
revision            1
categories-append   math
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             GPL-3
description         R and C/C++ wrappers to run the Leiden find_partition() function
long_description    {*}${description}
homepage            https://github.com/cole-trapnell-lab/leidenbase
checksums           rmd160  d2f857eec7f59745387c311f0f84d6883e8aac9b \
                    sha256  e53d949a26a5c6ffa7e4bc302b672516d35ba465611f6dd02e3ccdeda857b8a2 \
                    size    3783302

depends_lib-append  port:glpk \
                    port:gmp \
                    port:libxml2 \
                    port:R-igraph

build.args-append   --configure-args="--prefix=${prefix}"

compilers.setup     require_fortran

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

test.run            yes
