<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cea3b80f13c846cb9b0d3722aa2af7a248898c88">https://github.com/macports/macports-ports/commit/cea3b80f13c846cb9b0d3722aa2af7a248898c88</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit cea3b80f13c846cb9b0d3722aa2af7a248898c88
</span>Author: Kurt Hindenburg <khindenburg@macports.org>
AuthorDate: Wed Nov 14 09:41:16 2018 -0500

<span style='display:block; white-space:pre;color:#404040;'>    py-distorm: update to 3.3.8; add python 3.5, 3.6, 3.7; enable tests
</span>---
 python/py-distorm/Portfile                   | 18 ++++++++++++++----
 python/py-distorm/files/patch-test-yasm.diff | 11 +++++++++++
 2 files changed, 25 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-distorm/Portfile b/python/py-distorm/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c4a84c5..d95fe7f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-distorm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-distorm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem          1.0
</span> PortGroup           github 1.0
 PortGroup           python 1.0
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup        gdabah distorm 3.3.4 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        gdabah distorm 3.3.8 v
</span> set realname        distorm
 name                py-${realname}
 categories-append   devel
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,13 +21,23 @@ long_description \
</span> 
 supported_archs     noarch
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums           rmd160  19587bc3370400be35db2c84cf20db73cdfd5535 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  3f43a65cbfed489387c8feee00db2c9dbad5e96ce2b0be9d7f8df21a85f531cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  81762ec7553690d712aa54c8bef762e4928eb9bc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  96917500071f1ec75ed4fba115b58fde10bff2d6f82533f77800f89eccb03b8c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    219928
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions     27 35 36 37
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions     27
</span> 
 if {${name} ne ${subport}} {
     depends_build-append    port:py${python.version}-setuptools
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_test-append port:yasm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles          patch-test-yasm.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    test.run            yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    test.env            PYTHONPATH=${worksrcpath}/build/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    test.cmd            ${python.bin} examples/tests/test_distorm3.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    test.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     livecheck.type  none
 }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-distorm/files/patch-test-yasm.diff b/python/py-distorm/files/patch-test-yasm.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7a150bb
</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-distorm/files/patch-test-yasm.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- examples/tests/test_distorm3.py        2018-11-11 05:05:30.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ examples/tests/test_distorm3.py        2018-11-14 09:34:02.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -43,7 +43,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           mode = "amd64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           mode = "x86"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-  os.system("c:\\yasm -m%s 1.asm" % mode)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  os.system("yasm -m%s 1.asm" % mode)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   s = open("1", "rb").read()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   #if (not isinstance(s, str)):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   return s
</span></pre><pre style='margin:0'>

</pre>