# -*- 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.31
revision            0
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} 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  273d670406d65e660417cb8c848d40d99c4549cb \
                    sha256  cd0a825fa44485e957847321c02b32ac5205675e56df00cd883ea50b9aab23e1 \
                    size    3755223

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
