<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d2a0c4428ff939b759fbd2ea9d3e3a8e86f15840">https://github.com/macports/macports-ports/commit/d2a0c4428ff939b759fbd2ea9d3e3a8e86f15840</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d2a0c4428ff939b759fbd2ea9d3e3a8e86f15840
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Wed Sep 6 21:02:25 2023 +0700

<span style='display:block; white-space:pre;color:#404040;'>    R-Rlibeemd: update to 1.4.3
</span>---
 R/R-Rlibeemd/Portfile                | 24 ++++++++++++++++++++----
 R/R-Rlibeemd/files/patch-openmp.diff |  9 +++++++++
 2 files changed, 29 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-Rlibeemd/Portfile b/R/R-Rlibeemd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4e05791b947..1b3811a44dc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/R/R-Rlibeemd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-Rlibeemd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,20 +3,36 @@
</span> PortSystem          1.0
 PortGroup           R 1.0
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-R.setup             github helske Rlibeemd 1.4.2 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# CRAN version lacks OpenMP support, stay with the GitHub one.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+R.setup             github helske Rlibeemd 1.4.3 v
</span> revision            0
 categories-append   math
 maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
 license             GPL-3
 description         Ensemble Empirical Mode Decomposition (EEMD) and its complete variant (CEEMDAN)
 long_description    {*}${description}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums           rmd160  623460eef454cb8d5fb4bb9042c49986563e23da \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  9fea74a99a271d77fca68eaa026bcb845dca444c6e3fdec89a97cc11e9ccc1c8 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    size    101694
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  752f7ce96115220ee009d1f016ae7d447794a15f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  bc16c030a27ff761011b961561c98b02e49275a6bc9af6cc131a72f936e16eba \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    101734
</span> 
 depends_lib-append  port:gsl \
                     port:R-Rcpp
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/helske/Rlibeemd/issues/10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-openmp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {[string match macports-gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s,@OMP_CFLAGS@,-fopenmp," ${worksrcpath}/src/Makevars.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s,@OMP_LDFLAGS@,-fopenmp," ${worksrcpath}/src/Makevars.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    } elseif {[string match macports-clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s,@OMP_CFLAGS@,-I${prefix}/include/libomp -fopenmp," ${worksrcpath}/src/Makevars.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s,@OMP_LDFLAGS@,-L${prefix}/lib/libomp -lomp," ${worksrcpath}/src/Makevars.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.openmp_version 3.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_test-append port:R-testthat
 
 test.run            yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-Rlibeemd/files/patch-openmp.diff b/R/R-Rlibeemd/files/patch-openmp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..7bca8ee8fea
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-Rlibeemd/files/patch-openmp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/Makevars.in.orig   2023-09-04 18:02:04.000000000 +0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/Makevars.in        2023-09-06 20:16:39.000000000 +0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,4 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GSL_CFLAGS = @GSL_CFLAGS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GSL_LIBS = @GSL_LIBS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PKG_LIBS=$(GSL_LIBS) $(SHLIB_OPENMP_CFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PKG_CFLAGS=$(GSL_CFLAGS) $(SHLIB_OPENMP_CFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PKG_LIBS=$(GSL_LIBS) @OMP_LDFLAGS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PKG_CFLAGS=$(GSL_CFLAGS) @OMP_CFLAGS@
</span></pre><pre style='margin:0'>

</pre>