<pre style='margin:0'>
petrrr pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/03b02e54f1332dff07e88d8e9be5b806b3d47958">https://github.com/macports/macports-ports/commit/03b02e54f1332dff07e88d8e9be5b806b3d47958</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 03b02e54f1332dff07e88d8e9be5b806b3d47958
</span>Author: Peter Danecek <petr@macports.org>
AuthorDate: Mon Mar 20 21:19:43 2017 +0100
<span style='display:block; white-space:pre;color:#404040;'> py-flake8: add dependencies for Python 2.7
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The two dependencies are required only for the py27 subport and
</span><span style='display:block; white-space:pre;color:#404040;'> available in the standard library otherwise.
</span><span style='display:block; white-space:pre;color:#404040;'> * configparser renamed in Python 3
</span><span style='display:block; white-space:pre;color:#404040;'> * enum since Python 3.4
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/52994
</span>---
python/py-flake8/Portfile | 7 +++++++
1 file changed, 7 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-flake8/Portfile b/python/py-flake8/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1b9ee62..115d66c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-flake8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-flake8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,6 +9,7 @@ set _n [string index ${_name} 0]
</span>
name py-${_name}
version 3.3.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories-append devel
platforms darwin
supported_archs noarch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,6 +43,12 @@ if {${name} ne ${subport}} {
</span> port:py${python.version}-codestyle \
port:py${python.version}-flake8-mccabe
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Additional dependencies for Python 2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${python.version} < 30 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:py${python.version}-configparser \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-enum34
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_run-append port:${_name}_select
select.group ${_name}
</pre><pre style='margin:0'>
</pre>