# -*- 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

# Notice that the package uses ieee_arithmetic, which is not yet supported for PowerPC (SPARC and MIPS too).
# See: https://github.com/aadler/Delaporte/issues/4
# Experimental implementation for PowerPC is here: https://github.com/barracuda156/gcc-git/tree/gfortran
# Discussion: https://github.com/iains/darwin-toolchains-start-here/discussions/40
# I set < 10.6 on purpose; anyone building this on 10.6 for ppc, please modify the value manually.
if {${os.platform} eq "darwin" && ${os.major} < 10 && (${configure.build_arch} in [list ppc ppc64])} {
    R.setup         github aadler Delaporte 8.0.3 v
    revision        1
    checksums       rmd160  77e626dd55dcd473aff35065fbdd46c66214f1d7 \
                    sha256  ac87ccdd86a4476c9107dccd53baaefe9576a2518c05191c39fa11db559a022a \
                    size    29940
} else {
    # Revert to GitHub once updated there.
    R.setup         cran aadler Delaporte 8.4.1 v
    revision        0
    checksums       rmd160  bc2260bf248528da6241c04dc643dd3e5d9f5cfe \
                    sha256  9b80ce53cbb7a4cf5d08a14a75b80db3c7006f20d0ef29372950971e849660bf \
                    size    34704
}
categories-append   math
maintainers         nomaintainer
license             BSD
description         Statistical functions for the Delaporte distribution
long_description    {*}${description}

compilers.setup     require_fortran

depends_test-append port:R-covr \
                    port:R-tinytest

test.run            yes
