<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/01519b43f967033039e35ff3d8256b4392b04353">https://github.com/macports/macports-ports/commit/01519b43f967033039e35ff3d8256b4392b04353</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 01519b43f967033039e35ff3d8256b4392b04353
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Sun Jun 14 10:57:15 2020 -0400

<span style='display:block; white-space:pre;color:#404040;'>    qhull: require c++11
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Build fails with errors like:
</span><span style='display:block; white-space:pre;color:#404040;'>    qhull-2020.1/src/libqhullcpp/QhullUser.h:39:41: error: a space is required between consecutive right angle brackets (use '> >')
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Patching that allows the build to continue, but then it fails with:
</span><span style='display:block; white-space:pre;color:#404040;'>    user_eg3_r.cpp:350:28: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    adding -std=c++11 and requesting in c++11 compatible compiler resolves it
</span>---
 math/qhull/Portfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/qhull/Portfile b/math/qhull/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b4994d8383f..dc90030db15 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/qhull/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/qhull/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,8 +35,7 @@ variant perf {
</span>     configure.optflags  -O3 -pipe -march=native
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# See https://trac.macports.org/ticket/51486
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.blacklist  *gcc-4.2 {*gcc-4.[0-6]} {clang < 137}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard   2011
</span> 
 configure.args-append   -DBIN_INSTALL_DIR=${prefix}/bin \
                         -DLIB_INSTALL_DIR=${prefix}/lib \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,6 +43,9 @@ configure.args-append   -DBIN_INSTALL_DIR=${prefix}/bin \
</span>                         -DDOC_INSTALL_DIR=${prefix}/share/doc/qhull \
                         -DMAN_INSTALL_DIR=${prefix}/share/man/man1
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        -std=c++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
     ln -s ${prefix}/include/libqhull ${destroot}${prefix}/include/qhull
     ln -s ${prefix}/include/libqhull/libqhull.h ${destroot}${prefix}/include/libqhull/qhull.h
</pre><pre style='margin:0'>

</pre>