<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/5b008a71080ca632bff0d0f19b7a1f58fd6e823f">https://github.com/macports/macports-ports/commit/5b008a71080ca632bff0d0f19b7a1f58fd6e823f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5b008a71080ca632bff0d0f19b7a1f58fd6e823f
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Fri Aug 18 20:04:29 2023 +0800

<span style='display:block; white-space:pre;color:#404040;'>    R-invgamstochvol: new port
</span>---
 R/R-invgamstochvol/Portfile                    | 39 ++++++++++++++++++++++++++
 R/R-invgamstochvol/files/patch-fix-OpenMP.diff | 10 +++++++
 2 files changed, 49 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-invgamstochvol/Portfile b/R/R-invgamstochvol/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e85c719069f
</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-invgamstochvol/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,39 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem          1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           R 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+R.setup             cran cran invgamstochvol 1.0.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append   math
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license             MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description         Log-likelihood for an inverse Gamma stochastic volatility model
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description    {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  3ad06689cd5700000529d1c64072a37ea9986147 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  e16a50d34564205ed91db298db1b413b6b91582114d8d2fde23f338dc79fa506 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    248852
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append  port:R-Rcpp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:R-RcppArmadillo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Source is broken: it does not pass OpenMP flags, but then looks for its symbols:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Symbol not found: _omp_set_num_threads
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-fix-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;'>+    reinplace "s|@OPENMP_CXXFLAGS@|-fopenmp|" ${worksrcpath}/src/Makevars
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {[string match macports-clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|@OPENMP_LDFLAGS@|-L${prefix}/lib/libomp -lomp|" ${worksrcpath}/src/Makevars
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    } elseif {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|@OPENMP_LDFLAGS@|-fopenmp -lgomp|" ${worksrcpath}/src/Makevars
</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;'>+compilers.setup     require_fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_test-append port:R-knitr \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:R-rmarkdown \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:R-spelling
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run            yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-invgamstochvol/files/patch-fix-OpenMP.diff b/R/R-invgamstochvol/files/patch-fix-OpenMP.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c31825d7e31
</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-invgamstochvol/files/patch-fix-OpenMP.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/Makevars   2023-07-02 15:24:01.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/Makevars   2023-08-12 04:00:10.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15,5 +15,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## set the appropriate value, possibly CXX17.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #CXX_STD = CXX11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PKG_CXXFLAGS = @OPENMP_CXXFLAGS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PKG_LIBS = @OPENMP_LDFLAGS@ $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
</span></pre><pre style='margin:0'>

</pre>