# -*- 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 grimbough rhdf5filters 1.16.0
revision            1
categories-append   bioconductor
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             BSD
description         HDF5 compression filters
long_description    Provides a collection of additional compression filters for HDF5 datasets. \
                    The package is intended to provide seemless integration with rhdf5, \
                    however the compiled filters can also be used with external applications.
homepage            https://github.com/grimbough/rhdf5filters
checksums           rmd160  ff6c91e582b31dd887194bbd0e349990c60ffb7a \
                    sha256  1df1452264bdb9057c682d6c5d90178046bdd34addd923c100b32c77c9b84e3b \
                    size    1176741

depends_lib-append  port:R-Rhdf5lib

# Switch to build_arch due to: https://trac.macports.org/ticket/69301
platform darwin 10 {
    if {${configure.build_arch} eq "ppc"} {
        # Rosetta hack; inconsequential on native 10.6 PPC.
        post-patch {
            reinplace "s|x86_CPU=true|x86_CPU=false|" ${worksrcpath}/configure
        }
    }
}

depends_test-append port:R-BiocStyle \
                    port:R-knitr \
                    port:R-rhdf5 \
                    port:R-rmarkdown \
                    port:R-testthat

# Tests may fail to run due to: https://trac.macports.org/ticket/67059
test.run            no
