<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/4b62849888c2c8a2a6e1b6a6687ad9668c1af7fe">https://github.com/macports/macports-ports/commit/4b62849888c2c8a2a6e1b6a6687ad9668c1af7fe</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 4b62849888c functional-fortran: new port
</span>4b62849888c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4b62849888c2c8a2a6e1b6a6687ad9668c1af7fe
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Thu Apr 20 12:04:58 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> functional-fortran: new port
</span>---
fortran/functional-fortran/Portfile | 43 ++++++++++++++++++++++
.../functional-fortran/files/patch-CMakeLists.diff | 9 +++++
2 files changed, 52 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/fortran/functional-fortran/Portfile b/fortran/functional-fortran/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f9de944b2be
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/fortran/functional-fortran/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,43 @@
</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 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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/wavebitscientific/functional-fortran/issues/29
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup wavebitscientific functional-fortran 2457a66531b3b803db36928fec21d74a20434830
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.6.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories fortran devel science
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</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 Functional programming for modern Fortran
</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 46546dd3a841d29c676fcf511286df927a4682de \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 48afdca13961f654d07fd17d26675b149744855c0627e64f4fafce44fff4b52c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 25894
</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.blacklist-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*gcc-[34].*} {macports-gcc-[56]}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Install into sane dirs:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-CMakeLists.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set moddir ${destroot}${prefix}/include/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set libdir ${destroot}${prefix}/lib/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${moddir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${libdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach mod [glob ${cmake.build_dir}/include/*.mod] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${mod} ${moddir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach lib [glob ${cmake.build_dir}/lib/*.a] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${lib} ${libdir}
</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;'>+# One test fails on ppc: https://github.com/wavebitscientific/functional-fortran/issues/31
</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/fortran/functional-fortran/files/patch-CMakeLists.diff b/fortran/functional-fortran/files/patch-CMakeLists.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5ec732ec596
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/fortran/functional-fortran/files/patch-CMakeLists.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;'>+--- CMakeLists.txt.orig 2023-02-14 00:10:27.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2023-04-20 11:48:16.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -44,6 +44,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_link_libraries(test_${execid} functional testing)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_test(test_${execid} bin/test_${execid})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(DIRECTORY "${CMAKE_Fortran_MODULE_DIRECTORY}" DESTINATION "${CMAKE_INSTALL_PREFIX}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" DESTINATION "${CMAKE_INSTALL_PREFIX}")
</span></pre><pre style='margin:0'>
</pre>