# -*- 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.17.0
revision            0
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-3
description         Fast implementation of random forests
long_description    {*}${description}
homepage            http://imbs-hl.github.io/ranger
checksums           rmd160  1f3650b022d9dfbcb760e1dc5ebe9b03a1f6777f \
                    sha256  d48cdf4ce4917af93d9fe221c25d11089f5139ed765bbbff43e7b4fe58a09d36 \
                    size    178529

# 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
