# -*- 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             github zhuxr11 hypergeo2 0.2.0 v
revision            0
categories-append   math
maintainers         nomaintainer
license             GPL-2
description         Generalized hypergeometric function \
                    with tunable high precision
long_description    {*}${description}
checksums           rmd160  c5f843f46b79106416cbb4dee87649a4fb0844b1 \
                    sha256  fa3e56bd34a298de296a26b7877eafe2495186c80c17f93522b07bb93aba1a3a \
                    size    97856
github.tarball_from archive

# Avoid a disaster: https://github.com/zhuxr11/hypergeo2/issues/1
post-extract {
    delete ${worksrcpath}/\.Rprofile ${worksrcpath}/renv.lock
}

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:gmp \
                    port:mpfr \
                    port:R-BH \
                    port:R-Rcpp

depends_test-append port:R-ggplot2 \
                    port:R-hypergeo \
                    port:R-microbenchmark \
                    port:R-testthat

test.run            yes
