<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/e50de14a8031b86e01b9e1b50afb646b645557b0">https://github.com/macports/macports-ports/commit/e50de14a8031b86e01b9e1b50afb646b645557b0</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 e50de14 uhd: add temporary patch to fix building on Python 3.5; works with older Python too; addresses ticket https://trac.macports.org/ticket/53069 .
</span>e50de14 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e50de14a8031b86e01b9e1b50afb646b645557b0
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Fri Dec 16 12:05:50 2016 -0500
<span style='display:block; white-space:pre;color:#404040;'> uhd: add temporary patch to fix building on Python 3.5; works with older Python too; addresses ticket https://trac.macports.org/ticket/53069 .
</span>---
science/uhd/Portfile | 5 +++++
...ost_lib_rfnoc_nocscript_gen_basic_funcs.py.diff | 26 ++++++++++++++++++++++
2 files changed, 31 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 de95037..c1f6e4e 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;'>@@ -73,6 +73,11 @@ depends_lib-append port:boost port:ncurses
</span>
depends_build-append port:pkgconfig
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# temporary patch to fix building on Python 3.5;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# works with older Python too
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-host_lib_rfnoc_nocscript_gen_basic_funcs.py.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # do VPATH (out of source tree) build
cmake.out_of_source yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/uhd/files/patch-host_lib_rfnoc_nocscript_gen_basic_funcs.py.diff b/science/uhd/files/patch-host_lib_rfnoc_nocscript_gen_basic_funcs.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..964e62e
</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-host_lib_rfnoc_nocscript_gen_basic_funcs.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- host/lib/rfnoc/nocscript/gen_basic_funcs.py.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ host/lib/rfnoc/nocscript/gen_basic_funcs.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -331,9 +331,9 @@
</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;'>+ DOXY_TEMPLATE = """/*! \page page_nocscript_funcs NocScript Function Reference
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-% for cat, func_by_name in func_list_tree.iteritems():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++% for cat, func_by_name in func_list_tree.items():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - ${cat}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-% for func_name, func_info_list in func_by_name.iteritems():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++% for func_name, func_info_list in func_by_name.items():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - ${func_name}: ${func_info_list[0]['docstring']}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ % for func_info in func_info_list:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - ${func_info['arglist']} -> ${func_info['retval']}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -452,9 +452,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ func_list = prep_function_list()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ func_list_tree = {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for func in func_list:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if not func_list_tree.has_key(func['category']):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if func['category'] not in func_list_tree:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ func_list_tree[func['category']] = {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if not func_list_tree[func['category']].has_key(func['name']):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if func['name'] not in func_list_tree[func['category']]:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ func_list_tree[func['category']][func['name']] = []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ func_list_tree[func['category']][func['name']].append(func)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ open(output_filename, 'w').write(parse_tmpl(DOXY_TEMPLATE, func_list_tree=func_list_tree))
</span></pre><pre style='margin:0'>
</pre>