<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/21493bb8e3dcebd2f7b90fb1198297adc0d66108">https://github.com/macports/macports-ports/commit/21493bb8e3dcebd2f7b90fb1198297adc0d66108</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 21493bb8e3dcebd2f7b90fb1198297adc0d66108
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Jul 21 09:15:56 2019 -0700

<span style='display:block; white-space:pre;color:#404040;'>    xdmf: new port
</span>---
 science/xdmf/Portfile                   | 50 +++++++++++++++++++++++++++++++++
 science/xdmf/files/patch-isystem.diff   | 41 +++++++++++++++++++++++++++
 science/xdmf/files/patch-libraries.diff | 10 +++++++
 3 files changed, 101 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/xdmf/Portfile b/science/xdmf/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e5aa2f2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/xdmf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,50 @@
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name                    xdmf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version                 3.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              science devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# cannot find license, assume same as ParaView
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license                 BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms               darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description             eXtensible Data Model and Format
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description        The need for a standardized method to exchange scientific data between \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        High Performance Computing codes and tools lead to the development of \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        the eXtensible Data Model and Format (XDMF).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage                http://xdmf.org/index.php/Main_Page
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fetch.type              git
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git.url                 https://gitlab.kitware.com/xdmf/xdmf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git.branch              8d9c98081d89ac77a132d56bc8bef53581db4078
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append      port:tiff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        port:boost \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        port:hdf5  \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        port:libxml2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# avoid self-conflict
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# allow VTK and ParaView to find libraries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append       patch-isystem.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        patch-libraries.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append   -DBUILD_SHARED_LIBS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # allow VTK and ParaView to find libraries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set xdmf_major [lindex [split ${version} .] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d -m 0755 ${destroot}${prefix}/lib/cmake/xdmf${xdmf_major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${prefix}/lib/cmake/Xdmf/XdmfConfig.cmake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${prefix}/lib/cmake/xdmf${xdmf_major}/xdmf${xdmf_major}Config.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|set(XDMF_|set(XDMF${xdmf_major}_|g" ${destroot}${prefix}/lib/cmake/xdmf${xdmf_major}/xdmf${xdmf_major}Config.cmake
</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;'>+livecheck.type          regexm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.version       ${git.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url           https://gitlab.kitware.com/xdmf/xdmf/commits/master
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex         {/xdmf/xdmf/commit/([0-9a-z]*)}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/xdmf/files/patch-isystem.diff b/science/xdmf/files/patch-isystem.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..14cd803
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/xdmf/files/patch-isystem.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,41 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig    2019-07-02 08:13:37.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2019-07-02 08:15:42.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -58,7 +58,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_package(TIFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (TIFF_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   add_definitions(-DXDMF_BUILD_TIFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-  include_directories(${TIFF_INCLUDE_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  include_directories(SYSTEM ${TIFF_INCLUDE_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif (TIFF_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Test for DSM
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -67,7 +67,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(XDMF_BUILD_DSM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   find_package(MPI REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   if(MPI_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    include_directories(${MPI_INCLUDE_PATH})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    include_directories(SYSTEM ${MPI_INCLUDE_PATH})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     # The Intel compiler requires an extra tag for CXX_FLAGS in order to properly build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     if (CMAKE_CXX_COMPILER_ID MATCHES "Intel")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       add_definitions(-DMPICH_IGNORE_CXX_SEEK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -99,9 +99,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         set(PYTHON_INCLUDE_MPI4PY_DIR ${MPI4PY_INCLUDE_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       endif ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     endif ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    include_directories(${PYTHON_INCLUDE_DIRS} ${MPI_CXX_INCLUDE_PATH} ${PYTHON_INCLUDE_MPI4PY_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS} ${MPI_CXX_INCLUDE_PATH} ${PYTHON_INCLUDE_MPI4PY_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   else ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    include_directories(${PYTHON_INCLUDE_DIRS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   endif ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # A macro to swig and create the python files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -181,7 +181,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(XDMF_WRAP_JAVA)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   find_package(Java REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   find_package(JNI REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-  include_directories(${CMAKE_CURRENT_SOURCE_DIR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     ${JAVA_INCLUDE_PATH}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     ${JAVA_INCLUDE_PATH2})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/xdmf/files/patch-libraries.diff b/science/xdmf/files/patch-libraries.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..ec71445
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/xdmf/files/patch-libraries.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;'>+--- CMakeLists.txt.orig    2019-07-16 09:22:38.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2019-07-16 09:23:15.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -21,6 +21,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CM
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(BUILD_SHARED_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   set(BUILD_SHARED 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  set(XDMF_LIBRARIES "${CMAKE_INSTALL_PREFIX}/lib/libXdmf.dylib;${CMAKE_INSTALL_PREFIX}/lib/libXdmfCore.dylib")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/XdmfConfig.hpp.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                ${CMAKE_CURRENT_BINARY_DIR}/XdmfConfig.hpp)
</span></pre><pre style='margin:0'>

</pre>