<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/42a3da63f84d9e122045b0c30ab89a74927866a1">https://github.com/macports/macports-ports/commit/42a3da63f84d9e122045b0c30ab89a74927866a1</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 42a3da6 uhd release & devel: add temporary patch to fix CMake "Clang" matching
</span>42a3da6 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 42a3da63f84d9e122045b0c30ab89a74927866a1
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Tue Sep 4 16:21:55 2018 -0400
<span style='display:block; white-space:pre;color:#404040;'> uhd release & devel: add temporary patch to fix CMake "Clang" matching
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> + won't change build results, so no need for a rev-bump;
</span><span style='display:block; white-space:pre;color:#404040;'> + use "MATCHES" for "Clang" instead of "STREQUAL", since Clang can be "Clang" or "AppleClang".
</span>---
science/uhd/Portfile | 10 +++++++
science/uhd/files/patch-fix-clang-match.devel.diff | 31 ++++++++++++++++++++++
.../uhd/files/patch-fix-clang-match.release.diff | 31 ++++++++++++++++++++++
3 files changed, 72 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/uhd/Portfile b/science/uhd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ab9b775..d3aa4c8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/uhd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/uhd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -39,6 +39,11 @@ Provides the release version, which is typically updated every month or so.
</span> patchfiles-append patch-host_CMakeLists.txt.release.diff
patch.pre_args -p1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # temporary patch to use "MATCHES" for "Clang" instead of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # "STREQUAL", since Clang can be "Clang" or "AppleClang".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-fix-clang-match.release.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> }
subport uhd-39lts {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,6 +92,11 @@ Provides the UHD GIT maint or master branch, depending on which is more advanced
</span> patchfiles-append patch-host_CMakeLists.txt.devel.diff
patch.pre_args -p1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # temporary patch to use "MATCHES" for "Clang" instead of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # "STREQUAL", since Clang can be "Clang" or "AppleClang".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-fix-clang-match.devel.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # set the variable UHD_VERSION_DEVEL to TRUE, no matter its current setting
post-patch {
reinplace "s@^SET\(UHD_VERSION_DEVEL\[^\)\]*@SET(UHD_VERSION_DEVEL TRUE@1" \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/uhd/files/patch-fix-clang-match.devel.diff b/science/uhd/files/patch-fix-clang-match.devel.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..bd6bdde
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/uhd/files/patch-fix-clang-match.devel.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 91679a3..4ea597f 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/host/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/host/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -47,7 +47,7 @@ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MESSAGE(WARNING "\nCannot determine the version of the compiler selected to build UHD (GCC : ${CMAKE_CXX_COMPILER}). This build may or not work. We highly recommend using GCC version ${GCC_MIN_VERSION} or more recent.")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ELSEIF(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EXECUTE_PROCESS(COMMAND
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CMAKE_CXX_COMPILER} -v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RESULT_VARIABLE res ERROR_VARIABLE err
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -83,7 +83,7 @@ ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(CMAKE_VERSION VERSION_LESS "3.1")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ELSEIF(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF("${IS_APPLE}" STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ELSE()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -231,7 +231,7 @@ SET(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(UHD_RELEASE_MODE "${UHD_RELEASE_MODE}" CACHE STRING "UHD Release Mode")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(STRIP_BINARIES)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s")
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/uhd/files/patch-fix-clang-match.release.diff b/science/uhd/files/patch-fix-clang-match.release.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..bd6bdde
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/uhd/files/patch-fix-clang-match.release.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 91679a3..4ea597f 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/host/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/host/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -47,7 +47,7 @@ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MESSAGE(WARNING "\nCannot determine the version of the compiler selected to build UHD (GCC : ${CMAKE_CXX_COMPILER}). This build may or not work. We highly recommend using GCC version ${GCC_MIN_VERSION} or more recent.")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ELSEIF(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EXECUTE_PROCESS(COMMAND
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CMAKE_CXX_COMPILER} -v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RESULT_VARIABLE res ERROR_VARIABLE err
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -83,7 +83,7 @@ ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(CMAKE_VERSION VERSION_LESS "3.1")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ELSEIF(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF("${IS_APPLE}" STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ELSE()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -231,7 +231,7 @@ SET(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(UHD_RELEASE_MODE "${UHD_RELEASE_MODE}" CACHE STRING "UHD Release Mode")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(STRIP_BINARIES)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s")
</span></pre><pre style='margin:0'>
</pre>