<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/7f27b5fe4843948fc7802156a3c35be3d1b3dde5">https://github.com/macports/macports-ports/commit/7f27b5fe4843948fc7802156a3c35be3d1b3dde5</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 7f27b5fe484 chai: new port in devel
</span>7f27b5fe484 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7f27b5fe4843948fc7802156a3c35be3d1b3dde5
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sat Jul 15 23:42:24 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> chai: new port in devel
</span>---
devel/chai/Portfile | 103 ++++++++++++++++++++++++++++
devel/chai/files/patch-avoid-dupe-camp.diff | 59 ++++++++++++++++
2 files changed, 162 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/chai/Portfile b/devel/chai/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..05e1882f0e8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/chai/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,103 @@
</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 legacysupport 1.1
</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;'>+# MAP_ANONYMOUS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 14
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup LLNL CHAI 2022.10.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name chai
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</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 Copy-hiding array abstraction to automatically migrate data between memory spaces
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description CHAI is a library that handles automatic data migration to different memory spaces \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ behind an array-style interface. It was designed to work with RAJA and integrates with it. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CHAI could be used with other C++ abstractions, as well.
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "git submodule update --init --recursive"
</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;'>+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;'>+ -clang16
</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_lib-append port:cppcheck \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:git \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:raja \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:uncrustify
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Configure fails to work correctly with an external Camp: https://github.com/LLNL/CHAI/issues/231
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -Dcamp_DIR=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Since Raja already installs Camp, we have to patch sources to avoid a conflicting copy.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# For now, keeping dylib is fine though, since Raja builds statically.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-avoid-dupe-camp.diff
</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;'>+ {macports-clang-1[6-9]}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Bump C++ to 2017: https://github.com/LLNL/CHAI/issues/220
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2017
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.openmp_version 4.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fortran disabled for Umpire due to: https://github.com/LLNL/Umpire/issues/833
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBLT_CXX_STD="c++17" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_SHARED_LIBS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_BENCHMARKS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_CUDA=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_DOCS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_EXAMPLES=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_GMOCK=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_HIP=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_MPI=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_OPENMP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_RAJA_PLUGIN=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_REPRODUCERS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHAI_ENABLE_TESTS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_ASTYLE=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_CPPCHECK=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_CLANGTIDY=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_EXAMPLES=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_FORTRAN=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_FRUIT=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_FRUIT_MPI=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_GIT=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_MPI=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_OPENMP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SPHINX=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_TESTS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_UNCRUSTIFY=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_VALGRIND=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_YAPF=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DRAJA_DIR=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUMPIRE_ENABLE_C=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUMPIRE_ENABLE_FORTRAN=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;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We already have these with Raja.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${destroot}${prefix}/lib/cmake/camp
</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;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/chai/files/patch-avoid-dupe-camp.diff b/devel/chai/files/patch-avoid-dupe-camp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b6a18598ae3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/chai/files/patch-avoid-dupe-camp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,59 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/tpl/umpire/src/tpl/umpire/camp/CMakeLists.txt.orig 2023-07-15 22:18:33.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/tpl/umpire/src/tpl/umpire/camp/CMakeLists.txt 2023-07-15 23:04:59.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -158,35 +158,33 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ camp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EXPORT campTargets
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RUNTIME DESTINATION lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- LIBRARY DESTINATION lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ARCHIVE DESTINATION lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBRARY DESTINATION lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-include(CMakePackageConfigHelpers)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-configure_package_config_file(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "${PROJECT_SOURCE_DIR}/cmake/campConfig.cmake.in"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "${PROJECT_BINARY_DIR}/campConfig.cmake"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- INSTALL_DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- lib/cmake/camp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include(CMakePackageConfigHelpers)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#configure_package_config_file(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# "${PROJECT_SOURCE_DIR}/cmake/campConfig.cmake.in"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# "${PROJECT_BINARY_DIR}/campConfig.cmake"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# INSTALL_DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# lib/cmake/camp
</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(EXPORT campTargets
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DESTINATION lib/cmake/camp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(FILES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "${PROJECT_BINARY_DIR}/campConfigVersion.cmake"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "${PROJECT_BINARY_DIR}/campConfig.cmake"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- lib/cmake/camp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(DIRECTORY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${PROJECT_SOURCE_DIR}/include/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(FILES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "${PROJECT_BINARY_DIR}/include/camp/config.hpp"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- include/camp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#install(FILES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# "${PROJECT_BINARY_DIR}/campConfigVersion.cmake"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# "${PROJECT_BINARY_DIR}/campConfig.cmake"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# lib/cmake/camp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#install(DIRECTORY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# ${PROJECT_SOURCE_DIR}/include/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#install(FILES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# "${PROJECT_BINARY_DIR}/include/camp/config.hpp"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# DESTINATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include/camp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(CAMP_ENABLE_TESTS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ enable_testing()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_subdirectory(test)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span></pre><pre style='margin:0'>
</pre>