<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a2be90d9ce5932c0a6c3bab9071c67cf58566c16">https://github.com/macports/macports-ports/commit/a2be90d9ce5932c0a6c3bab9071c67cf58566c16</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 a2be90d9ce5 libgit2-devel: patch to compile with c 99
</span>a2be90d9ce5 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit a2be90d9ce5932c0a6c3bab9071c67cf58566c16
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sun Sep 10 19:36:00 2023 -0400

<span style='display:block; white-space:pre;color:#404040;'>    libgit2-devel: patch to compile with c 99
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    See: https://trac.macports.org/ticket/68148
</span>---
 devel/libgit2-devel/Portfile | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libgit2-devel/Portfile b/devel/libgit2-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7325d919d7c..142f0c4b550 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libgit2-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libgit2-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,7 +13,7 @@ set my_name         libgit2
</span> # don't forget to update py-pygit2 and libgit2-glib as well
 github.setup        libgit2 libgit2 1.7.1 v
 github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> epoch               0
 
 categories          devel
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,6 +49,21 @@ depends_lib-append \
</span> # See: https://trac.macports.org/ticket/65585
 patchfiles-append   patch-tests-no-error.diff
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Upstream compiles with C standard set to 90, which isn't sufficient for
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # legacy-support. So patch all CMake files, and raise that to C 99.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # See: https://trac.macports.org/ticket/68148
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fs-traverse f ${worksrcpath} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set fname [file tail ${f}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {[string match CMakeLists.txt ${fname}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ui_info "Patching c_standard for cmake file: ${f}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            reinplace -q "s|PROPERTIES C_STANDARD 90|PROPERTIES C_STANDARD 99|g" ${f}
</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;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard  1999
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Clear optflags; controlled by project, via cmake build type
 configure.optflags
 
</pre><pre style='margin:0'>

</pre>