<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/25991b831720bdd6af7ac72674c7566de44c256e">https://github.com/macports/macports-ports/commit/25991b831720bdd6af7ac72674c7566de44c256e</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 25991b83172 argtable3: fix build with old gcc, enable tests
</span>25991b83172 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 25991b831720bdd6af7ac72674c7566de44c256e
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Fri Jan 5 21:29:53 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    argtable3: fix build with old gcc, enable tests
</span>---
 devel/argtable3/Portfile               | 13 +++++++++++++
 devel/argtable3/files/patch-gcc-4.diff | 10 ++++++++++
 2 files changed, 23 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/argtable3/Portfile b/devel/argtable3/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 34cd46c2d5f..eac15840b22 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/argtable3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/argtable3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,5 +19,18 @@ checksums           sha256  f12badf34f6be07263af85955d1f4e4a6f9e0a6d7023ffaed2a2
</span>                     rmd160  ff3752c38cef00094e654f7f5e451f7942ab2bc4 \
                     size    510475
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/argtable/argtable3/issues/88
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc-4.* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    patch-gcc-4.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append \
                     -DBUILD_SHARED_LIBS=ON
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Needed to run tests:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run            yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/argtable3/files/patch-gcc-4.diff b/devel/argtable3/files/patch-gcc-4.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..54a8bfff4b8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/argtable3/files/patch-gcc-4.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/CMakeLists.txt     2022-10-23 10:20:16.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/CMakeLists.txt     2024-01-05 21:22:45.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -39,7 +39,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c89")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpedantic")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span></pre><pre style='margin:0'>

</pre>