<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/3b313aa8727631273aa25dba0d359643b25ddfb0">https://github.com/macports/macports-ports/commit/3b313aa8727631273aa25dba0d359643b25ddfb0</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 3b313aa py-graph-tool: add upstream fix for using async keyword. Closes https://trac.macports.org/ticket/57762
</span>3b313aa is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3b313aa8727631273aa25dba0d359643b25ddfb0
</span>Author: Mark Moll <mmoll@macports.org>
AuthorDate: Tue Dec 11 13:57:41 2018 -0600
<span style='display:block; white-space:pre;color:#404040;'> py-graph-tool: add upstream fix for using async keyword. Closes https://trac.macports.org/ticket/57762
</span>---
python/py-graph-tool/Portfile | 4 ++--
python/py-graph-tool/files/patch-async.diff | 33 +++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-graph-tool/Portfile b/python/py-graph-tool/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f1077ea..1779345 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-graph-tool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-graph-tool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,7 +8,7 @@ PortGroup compiler_blacklist_versions 1.0
</span> set realname graph-tool
name py-${realname}
version 2.27
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> epoch 20171109
categories python science
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,7 +75,7 @@ if {${name} ne ${subport}} {
</span> port:py${python.version}-scipy \
port:py${python.version}-gobject3 \
port:py${python.version}-cairo
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles patch-cgal413.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-cgal413.diff patch-async.diff
</span> use_configure yes
# parallel build starts swapping with 8GB of RAM.
#use_parallel_build no
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-graph-tool/files/patch-async.diff b/python/py-graph-tool/files/patch-async.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e7c3be5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-graph-tool/files/patch-async.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,33 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/graph_tool/draw/gtk_draw.py b/src/graph_tool/draw/gtk_draw.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 9f60075d..cd3edf97 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/graph_tool/draw/gtk_draw.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/graph_tool/draw/gtk_draw.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1182,7 +1182,7 @@ _window_list = []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ eorder=None, nodesfirst=False, geometry=(500, 400),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- update_layout=True, async=False, no_main=False, **kwargs):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ update_layout=True, sync=True, no_main=False, **kwargs):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ r"""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Display an interactive GTK+ window containing the given graph.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1211,8 +1211,8 @@ def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Window geometry.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ update_layout : bool (optional, default: ``True``)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ If ``True``, the layout will be updated dynamically.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- async : bool (optional, default: ``False``)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- If ``True``, run asynchronously. (Requires :mod:`IPython`)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ sync : bool (optional, default: ``True``)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ If ``False``, run asynchronously. (Requires :mod:`IPython`)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ no_main : bool (optional, default: ``False``)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ If ``True``, the GTK+ main loop will not be called.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ **kwargs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1244,7 +1244,7 @@ def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ win.show_all()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _window_list.append(win)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if not no_main:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if async:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if not sync:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # just a placeholder for a proper main loop integration with gtk3 when
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ipython implements it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import IPython.lib.inputhook
</span></pre><pre style='margin:0'>
</pre>