<pre style='margin:0'>
Vadym-Valdis Yudaiev (judaew) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a6c78dfd315b19b4740164dd95120c479ffaba1f">https://github.com/macports/macports-ports/commit/a6c78dfd315b19b4740164dd95120c479ffaba1f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a6c78dfd315b19b4740164dd95120c479ffaba1f
</span>Author: Vadym-Valdis Yudaiev <judaew@outlook.de>
AuthorDate: Sun Jun 25 02:00:09 2023 +0300
<span style='display:block; white-space:pre;color:#404040;'> lua-lpeg: Add patch to build dylib
</span>---
lua/lua-lpeg/Portfile | 16 +++++++++++++---
lua/lua-lpeg/files/patch-makefile-add-dylib.diff | 22 ++++++++++++++++++++++
2 files changed, 35 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-lpeg/Portfile b/lua/lua-lpeg/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5d3d735980a..898ef8c4c6a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lua/lua-lpeg/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-lpeg/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,11 +5,11 @@ PortGroup luarocks_org 1.0
</span>
name lua-lpeg
version 1.0.2
<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 1
luarocks.rock lpeg-${version}-1.src.rock
license MIT
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers gmail.com:andremm openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {judaew @judaew} gmail.com:andremm openmaintainer
</span>
description Parsing Expression Grammars For Lua
long_description {*}${description}.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,5 +19,15 @@ checksums rmd160 459e9e52c88de576b8ef4c44dafc582d3d53814e \
</span> size 72725
luarocks.worksrcdir lpeg-${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> luarocks.uploader gvvaughan
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-makefile-add-dylib.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "make PREFIX=${prefix} LUADIR=${prefix}/include/lua${lua.version} lpeg.dylib"
</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;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${worksrcpath}/lpeg.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/lib/lua/${lua.version}/lpeg.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-lpeg/files/patch-makefile-add-dylib.diff b/lua/lua-lpeg/files/patch-makefile-add-dylib.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3a560d53740
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-lpeg/files/patch-makefile-add-dylib.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- makefile.orig 2019-03-11 16:08:29.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ makefile 2023-06-25 01:12:10.669704347 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,5 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBNAME = lpeg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LUADIR = ../lua/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+++PREFIX =
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -O2 -DNDEBUG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # COPT = -g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -36,7 +37,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lpeg.so: $(FILES)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ env $(CC) -bundle -undefined dynamic_lookup $(FILES) -o lpeg.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++lpeg.dylib: $(FILES)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ env $(CC) -dynamiclib -Wl,-undefined,dynamic_lookup,-install_name,$(PREFIX)/lib/lua/5.1/lpeg.dylib $(FILES) -o lpeg.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(FILES): makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>