# -*- 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 fabsig gpboost 1.6.6
revision            1
categories-append   math
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             Apache-2
description         Combining tree-boosting with Gaussian process \
                    and mixed effects models
long_description    {*}${description}
homepage            https://github.com/fabsig/GPBoost
checksums           rmd160  62debe056d8f616a7867aac791fab28eadbdd2d4 \
                    sha256  59ef66bb9a83ac751eb7a30e493fb7048aa6939103bbee8373e4ea981d181e1e \
                    size    2341119

depends_lib-append  port:R-data.table \
                    port:R-R6 \
                    port:R-RJSONIO

depends_test-append port:R-testthat

test.run            yes

# FIXME: linking on Rosetta may fail: https://github.com/fabsig/GPBoost/issues/97
# No problem when building natively on PowerPC.

# FIXME: OpenMP detection breaks down if clang is found in the environment:
# https://github.com/fabsig/GPBoost/issues/163
