<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/85f462be3d3fa2e5e7e8de3118cd1c8f93b4cc42">https://github.com/macports/macports-ports/commit/85f462be3d3fa2e5e7e8de3118cd1c8f93b4cc42</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 85f462be3d3fa2e5e7e8de3118cd1c8f93b4cc42
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Mon Jan 3 13:03:16 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> py-tensorflow-macos: fix parsing error
</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/64313
</span>---
python/py-tensorflow-macos/Portfile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-tensorflow-macos/Portfile b/python/py-tensorflow-macos/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 38615b9f617..5d9ad57dae9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-tensorflow-macos/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-tensorflow-macos/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -39,11 +39,14 @@ platform i386 {
</span> set minimum_supported_major_version 20
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.platform} eq {darwin} && ${os.major} < ${minimum_supported_major_version}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.arch} ni [list arm i386]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || ${os.platform} eq {darwin}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && ${os.major} < ${minimum_supported_major_version}} {
</span> known_fail yes
pre-fetch {
ui_error "TensorFlow with ML Compute acceleration is only available \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- on macOS [expr ${minimum_supported_major_version} - 9] and later."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ on macOS [expr ${minimum_supported_major_version} - 9] and later \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ with [join ${supported_archs} " or "] architectures."
</span> error {unsupported platform}
}
}
</pre><pre style='margin:0'>
</pre>