<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bad72661a7dbda9119b14d12e85d7c118ff2746a">https://github.com/macports/macports-ports/commit/bad72661a7dbda9119b14d12e85d7c118ff2746a</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 bad7266 devel/boost: add python37 variant, small patch update for python37
</span>bad7266 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bad72661a7dbda9119b14d12e85d7c118ff2746a
</span>Author: Mark Moll <mmoll@macports.org>
AuthorDate: Fri Aug 3 09:21:51 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> devel/boost: add python37 variant, small patch update for python37
</span>---
devel/boost/Portfile | 2 +-
devel/boost/files/patch-boost-python3.diff | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
<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 e542a25..2dcb576 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;'>@@ -182,7 +182,7 @@ post-destroot {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set pythons_suffixes {26 27 33 34 35 36}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pythons_suffixes {26 27 33 34 35 36 37}
</span>
set pythons_ports {}
foreach s ${pythons_suffixes} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/boost/files/patch-boost-python3.diff b/devel/boost/files/patch-boost-python3.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index f90e84b..c226b2f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/boost/files/patch-boost-python3.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/boost/files/patch-boost-python3.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,3 +19,24 @@
</span> else:
- import mpi
+ from . import mpi
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libs/python/src/converter/builtin_converters.cpp.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libs/python/src/converter/builtin_converters.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,11 +45,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return PyString_Check(obj) ? PyString_AsString(obj) : 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif PY_VERSION_HEX < 0x03070000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void* convert_to_cstring(PyObject* obj)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ void* convert_to_cstring(PyObject* obj)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return PyUnicode_Check(obj) ? const_cast<void*>(reinterpret_cast<const void*>(_PyUnicode_AsString(obj))) : 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</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;'>+ // Given a target type and a SlotPolicy describing how to perform a
</span></pre><pre style='margin:0'>
</pre>