# -*- 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             cran mlampros KernelKnn 1.1.5
revision            1
categories-append   math
maintainers         nomaintainer
license             GPL-3+
description         Kernel k-nearest neighbors
long_description    {*}${description}
homepage            https://mlampros.github.io/KernelKnn
checksums           rmd160  735eca52e1d148d174e0c3d19717bf70e810e7c0 \
                    sha256  92b1a7e647fcae8e8be790c0fabc70ca1789b1cb48ba032be36db138310e66ac \
                    size    126177

# Remove this with the next update. It is a one-time fix.
if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} eq "libc++"} {
    incr revision
}

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

compilers.setup     require_fortran

depends_test-append port:R-covr \
                    port:R-knitr \
                    port:R-rmarkdown \
                    port:R-testthat

test.run            yes
