<pre style='margin:0'>
Mark Moll (mamoll) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fb0c6b307699fa7c41f412937c4767b2a21445a0">https://github.com/macports/macports-ports/commit/fb0c6b307699fa7c41f412937c4767b2a21445a0</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 fb0c6b3 boost: add upstream patch needed to compile py-graph-tool port
</span>fb0c6b3 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fb0c6b307699fa7c41f412937c4767b2a21445a0
</span>Author: Mark Moll <mmoll@macports.org>
AuthorDate: Sun Jun 9 20:29:12 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> boost: add upstream patch needed to compile py-graph-tool port
</span>---
devel/boost/Portfile | 5 +-
.../files/patch-random-uniform_on_sphere.hpp.diff | 68 ++++++++++++++++++++++
2 files changed, 71 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/boost/Portfile b/devel/boost/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2dcb576..58576be 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/boost/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/boost/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,7 +49,8 @@ post-extract {
</span>
patchfiles patch-tools-build-src-engine-build.sh.diff \
patch-tools-build-src-engine-build.jam.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-apple-clang-no-libcxx.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-apple-clang-no-libcxx.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-random-uniform_on_sphere.hpp.diff
</span> # patch-apple-clang-no-libcxx.diff fixes a clang configuration
# error that occurs on OS X 10.7 and 10.8 due to the assumption
# that if clang is the compiler in use it must be using libc++.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -277,7 +278,7 @@ subport boost-numpy {
</span> }
if {$subport eq $name} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 4
</span> patchfiles-append patch-disable-numpy-extension.diff
variant regex_match_extra description \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/boost/files/patch-random-uniform_on_sphere.hpp.diff b/devel/boost/files/patch-random-uniform_on_sphere.hpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..2768be3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/boost/files/patch-random-uniform_on_sphere.hpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,68 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From e75d0b99b92ed674209a634991fbe1943dca01be Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Daniela Engert <dani@ngrt.de>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Sat, 13 May 2017 15:05:28 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Replace deprecated/removed C++98 std::bind2nd by a custom
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ function object, and ignore tests focussing on std::random_shuffle.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Signed-off-by: Daniela Engert <dani@ngrt.de>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include/boost/random/uniform_on_sphere.hpp | 8 ++++++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test/test_old_uniform_int_distribution.cpp | 2 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test/test_random_number_generator.cpp | 2 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 3 files changed, 10 insertions(+), 2 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/include/boost/random/uniform_on_sphere.hpp b/include/boost/random/uniform_on_sphere.hpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 72c25ef78..ce2e35237 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- boost/random/uniform_on_sphere.hpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ boost/random/uniform_on_sphere.hpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -225,8 +225,12 @@ class uniform_on_sphere
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } while(sqsum == 0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // for all i: result[i] /= sqrt(sqsum)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- std::transform(_container.begin(), _container.end(), _container.begin(),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- std::bind2nd(std::multiplies<RealType>(), 1/sqrt(sqsum)));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ RealType inverse_distance = 1 / sqrt(sqsum);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for(typename Cont::iterator it = _container.begin();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ it != _container.end();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ++it) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ *it *= inverse_distance;
</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;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return _container;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/test/test_old_uniform_int_distribution.cpp b/test/test_old_uniform_int_distribution.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f033ad0e1..bdae26461 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libs/random/test/test_old_uniform_int_distribution.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libs/random/test/test_old_uniform_int_distribution.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -48,6 +48,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Author: Jos Hickson
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOST_AUTO_TEST_CASE(test_random_shuffle)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef BOOST_NO_CXX98_RANDOM_SHUFFLE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef boost::uniform_int<> distribution_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef boost::variate_generator<boost::mt19937 &, distribution_type> generator_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -73,4 +74,5 @@ BOOST_AUTO_TEST_CASE(test_random_shuffle)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOST_CHECK_EQUAL_COLLECTIONS(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ testVec.begin(), testVec.end(),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ referenceVec.begin(), referenceVec.end());
</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;'>+diff --git a/test/test_random_number_generator.cpp b/test/test_random_number_generator.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 39c3e2401..14add59cf 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libs/random/test/test_random_number_generator.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libs/random/test/test_random_number_generator.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOST_AUTO_TEST_CASE(test_random_shuffle)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef BOOST_NO_CXX98_RANDOM_SHUFFLE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ boost::mt19937 engine(1234);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ boost::random::random_number_generator<boost::mt19937> generator(engine);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,4 +31,5 @@ BOOST_AUTO_TEST_CASE(test_random_shuffle)
</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;'>+ std::random_shuffle(testVec.begin(), testVec.end(), generator);
</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>