# -*- 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.setup             bioconductor Bioconductor BiocParallel 1.38.0
revision            0
categories-append   bioconductor parallel
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             {GPL-2 GPL-3}
description         Bioconductor facilities for parallel evaluation
long_description    {*}${description}
checksums           rmd160  2e14674a9189d3db1f723ddf88a4f8510e3e61cb \
                    sha256  7e96e07beb4e59ab08d8064aaf6b4e414c9ccd7657e9949d7d9b2325b2113cd6 \
                    size    995485

depends_lib-append  port:R-BH \
                    port:R-cpp11 \
                    port:R-futile.logger \
                    port:R-snow

variant tests description "Enable testing" {
    patchfiles-append \
                    patch-remove-unavailable-suggests.diff

    depends_test-append \
                    port:R-batchtools \
                    port:R-BBmisc \
                    port:R-BiocGenerics \
                    port:R-BiocStyle \
                    port:R-data.table \
                    port:R-doParallel \
                    port:R-foreach \
                    port:R-GenomicAlignments \
                    port:R-GenomicRanges \
                    port:R-knitr \
                    port:R-Rmpi \
                    port:R-Rsamtools \
                    port:R-RUnit \
                    port:R-ShortRead \
                    port:R-VariantAnnotation

    # FIXME: there are MPI-related failures in tests, at least on PowerPC:
    # Error in DEACTIVATED("MPI tests not run") : MPI tests not run
    # *** caught segfault ***
    # address 0x11e81414, cause 'memory not mapped'
    # Code from vignettes runs fine, however.
    test.run        yes
}
