<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/550675ed20316b9b450151359db42b77b38e56fa">https://github.com/macports/macports-ports/commit/550675ed20316b9b450151359db42b77b38e56fa</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 550675ed203 godot: simplify clang version checking
</span>550675ed203 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 550675ed20316b9b450151359db42b77b38e56fa
</span>Author: Jason Liu <jasonliu--@users.noreply.github.com>
AuthorDate: Wed Sep 8 11:45:08 2021 -0400
<span style='display:block; white-space:pre;color:#404040;'> godot: simplify clang version checking
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> As a result of rewriting the portfile in the previous commit, the
</span><span style='display:block; white-space:pre;color:#404040;'> block of code that does clang version checking can be simplified
</span><span style='display:block; white-space:pre;color:#404040;'> (this commit).
</span>---
games/godot/Portfile | 24 +++++-------------------
1 file changed, 5 insertions(+), 19 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/godot/Portfile b/games/godot/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 83cd5543c48..e3439a55e32 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/godot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/godot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -117,25 +117,11 @@ foreach v ${clang_versions} {
</span> # file that is part of the Godot source code
set sconstruct_default_mp_clang 5
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# error: invalid value 'gnu++14' in '-std=gnu++14'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# On older macOS versions use (latest) clang variant by default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {$subport eq ${name} && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${os.platform} eq "darwin" && ${os.major} <= 15 || \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $subport eq "${name}-3.2" && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${os.platform} eq "darwin" && ${os.major} <= 13} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-{
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set has_clang_variant no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach v ${clang_versions} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset clang[get_major ${v}]]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set has_clang_variant yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {!$has_clang_variant} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Use most recent clang by default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants-append +clang[get_major [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lindex $clang_versions end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# On older macOS versions, use clang variant by default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match macports-clang-* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ regexp {macports-clang-([0-9]+(?:\.[0-9]+)*)} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${configure.compiler} result clang_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +clang[get_major $clang_version]
</span> }
# Configure the variants
</pre><pre style='margin:0'>
</pre>