<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/a8fac86679f9343bd040b7d7ba3f4507683d9694">https://github.com/macports/macports-ports/commit/a8fac86679f9343bd040b7d7ba3f4507683d9694</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a8fac86679f paramonte: new port in math
</span>a8fac86679f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a8fac86679f9343bd040b7d7ba3f4507683d9694
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Wed May 24 10:17:09 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> paramonte: new port in math
</span>---
math/paramonte/Portfile | 71 +++++++++++++++++++++++++++++++++
math/paramonte/files/patch-install.diff | 9 +++++
2 files changed, 80 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/paramonte/Portfile b/math/paramonte/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d022369a18e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/paramonte/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,71 @@
</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 cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup mpi 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup linear_algebra 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Using commit since release is broken: https://github.com/cdslaborg/paramonte/issues/20
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup cdslaborg paramonte 08b5ee74e1dc9045fca8fd7d94e3bbc979a3c425
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.5.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories math science fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</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;'>+description ParaMonte: plain powerful parallel Monte Carlo and MCMC library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.cdslab.org/paramonte
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 276593de1dd00faa48768f388372ec5d0df0b51f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 16d8756315f528725f02dd9d79b6099952deb7e6d8af1837619f971c0219ee44 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4389174
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.build_type Release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Needs Fortran 2008.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Notice that it also needs Fortran to support ieee_arithmetic, which is not yet supported for PPC in Macports.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Do not exclude PPC though, since experimental implementation for ieee_arithmetic exists for it.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.arch} eq "powerpc"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mpi.setup require require_fortran \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -gcc44 -gcc45 -gcc46 -gcc47 -gcc48 -gcc49 -gcc5 -gcc6 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -clang -fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mpi.setup require require_fortran \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -gcc44 -gcc45 -gcc46 -gcc47 -gcc48 -gcc49 -gcc5 -gcc6
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix install location:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-install.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBASIC_TEST_ENABLED:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCAF_ENABLED:BOOL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCFI_ENABLED:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCODECOV_ENABLED:BOOL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLTYPE:STRING=shared \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMPI_ENABLED:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMPIEXEC_EXECUTABLE=${prefix}/bin/${mpi.exec} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DOMP_ENABLED:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPERFPROF_ENABLED:BOOL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPMCS:STRING=GNU \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPMLIB_INSTALL_NAME_DIR:STRING=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPMLIB_NAME:STRING=paramonte \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSAMPLER_TEST_ENABLED:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DTEST_RUN_ENABLED:BOOL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+universal_variant no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# One test fails on ppc: https://github.com/cdslaborg/paramonte/issues/21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd ${cmake.build_dir}/test/obj/testParaMonte
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix malloc disaster:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd-prepend DYLD_LIBRARY_PATH=${prefix}/lib/libgcc:${cmake.build_dir}/obj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Yeah, it is a mess: data files are placed into bin, while a binary is sitting in obj. Eh.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.dir ${cmake.build_dir}/test/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/paramonte/files/patch-install.diff b/math/paramonte/files/patch-install.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d66f88a1eae
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/paramonte/files/patch-install.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/kernel/CMakeLists.txt.orig 2023-05-24 04:17:44.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/kernel/CMakeLists.txt 2023-05-24 07:12:39.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -448,5 +448,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install(TARGETS ${PMLIB_NAME}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CONFIGURATIONS "${CMAKE_BUILD_TYPE}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- DESTINATION "${ParaMonte_LIB_DIR}/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ DESTINATION ${CMAKE_INSTALL_LIBDIR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span></pre><pre style='margin:0'>
</pre>