# -*- 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 imbs-hl ranger 0.18.0
revision            1
categories-append   math
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             GPL-3
description         Fast implementation of random forests
long_description    {*}${description}
homepage            http://imbs-hl.github.io/ranger
checksums           rmd160  226a97ff3205bd581d2fdc943ba5a5db5116bfe6 \
                    sha256  94c5e4c67cd92292bbba72e71d1a89be6ddea1a0d7b8e7ad452e0609b675b44d \
                    size    178695

# https://github.com/imbs-hl/ranger/pull/752
patchfiles-append   0001-utility.cpp-fix-lgamma_r-for-Darwin.patch

depends_lib-append  port:R-Rcpp \
                    port:R-RcppEigen

depends_test-append port:R-testthat

test.run            yes
