<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b9c70e39ec46cd68d9b8fd429513358b04774762">https://github.com/macports/macports-ports/commit/b9c70e39ec46cd68d9b8fd429513358b04774762</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b9c70e39ec46cd68d9b8fd429513358b04774762
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Sat Jun 22 04:40:56 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> luametatex: fix build on older systems with gcc
</span>---
tex/luametatex/Portfile | 5 +++++
tex/luametatex/files/patch-fix-gcc-build.diff | 9 +++++++++
2 files changed, 14 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/luametatex/Portfile b/tex/luametatex/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1bd6f966699..0bfacc33f89 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/tex/luametatex/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/luametatex/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,3 +31,8 @@ platforms darwin
</span> checksums rmd160 3de7ea7dc7ac7ce29f1d578b248d696268c8400e \
sha256 39812d149d06a4a33eec8bb8ffeb0ce844ef8d43e8c9dfa560417a845f330643 \
size 3194333
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/contextgarden/luametatex/issues/14
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-gcc-build.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 2011
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/luametatex/files/patch-fix-gcc-build.diff b/tex/luametatex/files/patch-fix-gcc-build.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..57798e820b3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/luametatex/files/patch-fix-gcc-build.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/luametatex.cmake 2024-03-11 16:34:51.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/luametatex.cmake 2024-06-22 04:18:37.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -86,5 +86,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # -g -S -d : remove all debugging symbols & sections
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # -x : remove all non-global symbols
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # -X : remove any compiler-generated symbols
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_custom_command(TARGET luametatex POST_BUILD COMMAND ${CMAKE_STRIP} -g -S -d -x luametatex${CMAKE_EXECUTABLE_SUFFIX})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # add_custom_command(TARGET luametatex POST_BUILD COMMAND ${CMAKE_STRIP} -g -S -d -x luametatex${CMAKE_EXECUTABLE_SUFFIX})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span></pre><pre style='margin:0'>
</pre>