<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/f5e5dfa47109e2a1fa908c465ce981692d5f9a82">https://github.com/macports/macports-ports/commit/f5e5dfa47109e2a1fa908c465ce981692d5f9a82</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 f5e5dfa4710 h5fortran: new port in fortran
</span>f5e5dfa4710 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f5e5dfa47109e2a1fa908c465ce981692d5f9a82
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Wed Oct 18 08:05:00 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> h5fortran: new port in fortran
</span>---
fortran/h5fortran/Portfile | 57 ++++++++++++++++++++++
.../h5fortran/files/patch-fix-install-dirs.diff | 48 ++++++++++++++++++
2 files changed, 105 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/fortran/h5fortran/Portfile b/fortran/h5fortran/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..18d744f3225
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/fortran/h5fortran/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,57 @@
</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 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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup geospace-code h5fortran 4.10.3 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories fortran 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 Object-oriented Fortran HDF5 interface
</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 91089b6c545977922ce20d331c70b45696999746 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 500f3ecce5252ab913b74ee277eed79968247aba703400fb0d1373d820d3c281 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 92152
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilers.choose cc fc f90
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mpi.setup require_fortran -gcc44 -gcc45 -gcc46 -gcc47 -gcc48 -gcc49 -gcc5 -gcc6 -g95
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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;'>+set python.branch 3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.version [join [split ${python.branch} "."] ""]
</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:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python${python.version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:hdf5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:szip \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+require_active_variants \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:hdf5 fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-install-dirs.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;'>+ -DBUILD_SHARED_LIBS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dh5fortran_BUILD_TESTING=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DHDF5_HAVE_PARALLEL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON_EXECUTABLE=${prefix}/bin/python${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset mpich] || [variant_isset openmpi]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:hdf5 [list fortran mpich]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DHDF5_HAVE_PARALLEL=OFF -DHDF5_HAVE_PARALLEL=ON
</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;'>+# Some tests fail on PowerPC: https://github.com/geospace-code/h5fortran/issues/41
</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 ctest
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/fortran/h5fortran/files/patch-fix-install-dirs.diff b/fortran/h5fortran/files/patch-fix-install-dirs.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..feae8beb8e9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/fortran/h5fortran/files/patch-fix-install-dirs.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,48 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt 2023-08-25 09:45:51.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2023-10-18 07:18:14.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -82,7 +82,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # additional Find*.cmake necessary
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install(FILES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindHDF5.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-DESTINATION cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/h5fortran
</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;'>+ include(cmake/pkgconf.cmake)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/install.cmake 2023-08-25 09:45:51.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/install.cmake 2023-10-18 07:17:53.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4,7 +4,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure_package_config_file(${CMAKE_CURRENT_LIST_DIR}/config.cmake.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-INSTALL_DESTINATION cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/h5fortran
</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;'>+ write_basic_package_version_file(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14,13 +14,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install(EXPORT ${PROJECT_NAME}-targets
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NAMESPACE ${PROJECT_NAME}::
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-DESTINATION cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/h5fortran
</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;'>+ install(FILES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-DESTINATION cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/h5fortran
</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;'>+ # --- CPack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/pkgconf.cmake 2023-08-25 09:45:51.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/pkgconf.cmake 2023-10-18 07:18:34.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -5,4 +5,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(pc_filename ${PROJECT_NAME}.pc)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure_file(${CMAKE_CURRENT_LIST_DIR}/pkgconf.pc.in ${pc_filename} @ONLY)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pc_filename} DESTINATION pkgconfig)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pc_filename} DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
</span></pre><pre style='margin:0'>
</pre>