# -*- 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 ManosPapadakis95 Rnanoflann 0.0.3
revision            0
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             GPL-3+
description         Extremely fast nearest neighbor search
long_description    {*}${description}
homepage            https://github.com/ManosPapadakis95/Rnanoflann
checksums           rmd160  58dd36db1aeca1898b1753679c8a352013a89f70 \
                    sha256  46fcf84c640f8fb71d8fa397b6c441af95b6a0dadc168ecac214074b8ef57211 \
                    size    33722

# 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

# TODO: should it use OpenMP? See: https://github.com/ManosPapadakis95/Rnanoflann/issues/1
compilers.setup     require_fortran

test.run            yes
