# -*- 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 github Rdatatable data.table 1.16.0 revision 0 maintainers {@barracuda156 gmail.com:vital.had} openmaintainer license MPL-2 description Extension of data.frame long_description {*}${description} homepage https://r-datatable.com checksums rmd160 4cc19daa70f4350de2cf5dd27fbf1cba15d134ae \ sha256 547236a8b4d36fa13486f23339fc9719bdf2d4a984aa25f72ade4ddd25990bff \ size 5751016 github.tarball_from archive depends_build-append \ path:bin/pkg-config:pkgconfig depends_lib-append port:zlib variant openmp description "Enable OpenMP support" { # In 1.16.0 OpenMP detection got broken further by # https://github.com/Rdatatable/data.table/commit/096b20f1f1b9788787a826ba3d32177ed9836352 # See: https://github.com/Rdatatable/data.table/issues/6409 # We modify the patch, so that OpenMP works again. patchfiles patch-fix-omp.diff post-patch { reinplace "s,@MP_OPENMP_FLAGS@,-fopenmp," ${worksrcpath}/configure if {[string match *gcc* ${configure.compiler}]} { reinplace "s,@MP_OPENMP_CFLAGS@,," ${worksrcpath}/configure reinplace "s,@MP_OPENMP_LFLAGS@,," ${worksrcpath}/configure } elseif {[string match *clang* ${configure.compiler}]} { reinplace "s,@MP_OPENMP_CFLAGS@,-I${prefix}/include/libomp," ${worksrcpath}/configure reinplace "s,@MP_OPENMP_LFLAGS@,-L${prefix}/lib/libomp -lomp," ${worksrcpath}/configure } } compiler.openmp_version 3.0 } depends_test-append port:R-bit \ port:R-bit64 \ port:R-knitr \ port:R-markdown \ port:R-R.utils \ port:R-xts \ port:R-yaml \ port:R-zoo # 2 errors out of 1161 on PPC: https://github.com/Rdatatable/data.table/issues/5601 test.run yes