<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/4a77a1f8cee5b472a978f0aacfd5395c8c6b211e">https://github.com/macports/macports-ports/commit/4a77a1f8cee5b472a978f0aacfd5395c8c6b211e</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 4a77a1f8cee flexiblas: new port in math
</span>4a77a1f8cee is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4a77a1f8cee5b472a978f0aacfd5395c8c6b211e
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Mon May 29 13:01:20 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> flexiblas: new port in math
</span>---
math/flexiblas/Portfile | 71 ++++++++++++++++++++++
.../flexiblas/files/patch-remove-faulty-flags.diff | 11 ++++
2 files changed, 82 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/flexiblas/Portfile b/math/flexiblas/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..039930bc4f1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/flexiblas/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 compilers 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 legacysupport 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# getline, strndup, strnlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup mpimd-csc flexiblas 3.3.1 v
</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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3+
</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 A BLAS and LAPACK wrapper library with runtime exchangeable backends
</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.mpi-magdeburg.mpg.de/projects/flexiblas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 51aeccf62fad5167c6d81a268cb22699a7730baf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d21cd0b05748546193cfc8d129a6507ff0f1facb0b53f002f733534f8e43278b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 63683945
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Does not seem to like it:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# depends_lib-append blis
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/mpimd-csc/flexiblas/issues/37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-remove-faulty-flags.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver 3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.python ${prefix}/bin/python${py_ver}
</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,/usr/bin/env python,${configure.python}," \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/test/usage/python-numpy-scipy/numpy-scipy-benchmark.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,/usr/bin/env python3,${configure.python}," \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/tools/code_generators/generate_hook_profile_lapack.py \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/tools/code_generators/generate_lapack.py \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/tools/code_generators/generate_lapack_dummy.py
</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;'>+compiler.thread_local_storage yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.openmp_version 2.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 1999
</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;'>+ -DABI=GNU \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBLAS_AUTO_DETECT=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_SHARED_LIBS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEV=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLAPACK=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLINK_OPENMP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPythonInterp:FILEPATH=${prefix}/bin/python${py_ver} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DTESTS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DEXAMPLES=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMKL_BUILDER=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -L${prefix}/lib/libomp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lomp
</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;'>+depends_test-append port:python${py_ver_nodot}
</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;background:#e0ffe0;'>+test.target test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd-prepend DYLD_LIBRARY_PATH=${cmake.build_dir}/lib
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/flexiblas/files/patch-remove-faulty-flags.diff b/math/flexiblas/files/patch-remove-faulty-flags.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1d17b056b70
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/flexiblas/files/patch-remove-faulty-flags.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2023-05-29 09:45:55.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2023-05-29 09:46:44.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -204,7 +204,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIST(REMOVE_DUPLICATES INCLUDE_DIR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FILE_OFFSET_BITS=64 ")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rdynamic -Wl,-export_dynamic")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ SET ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ELSE()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF (WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FILE_OFFSET_BITS=64 -Wall")
</span></pre><pre style='margin:0'>
</pre>