<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0b9b0c65550862c6c919a6681179b0ae3b513488">https://github.com/macports/macports-ports/commit/0b9b0c65550862c6c919a6681179b0ae3b513488</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0b9b0c65550862c6c919a6681179b0ae3b513488
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Thu Mar 16 04:17:14 2023 -0700
<span style='display:block; white-space:pre;color:#404040;'> lua-copas: update to 4.7.0 & use luarocks_org PG
</span>---
lua/lua-copas/Portfile | 63 ++++++++++++++++-----------------
lua/lua-copas/files/patch-Makefile.diff | 19 ----------
2 files changed, 30 insertions(+), 52 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-copas/Portfile b/lua/lua-copas/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8aadec9bbf3..a916f97f12c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lua/lua-copas/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-copas/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,36 +1,33 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-name lua-copas
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 1.1.6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-categories lua devel
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license MIT
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms any
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs noarch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description Coroutine Oriented Portable Asynchronous Services for Lua
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description Copas is a dispatcher based on coroutines that can be used by TCP/IP \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- servers. It uses LuaSocket as the interface with the TCP/IP stack.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://www.keplerproject.org/copas
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites https://github.com/downloads/keplerproject/copas
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 104b4325a6187eeb4b139181b6477558 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 14fd64df94099af1f29d30f09777562803778da7 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 f1cdddfc588c1b5f4aa5a8b8796a8351aad6b8bf
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname copas-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:lua \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:lua-coxpcall \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:lua-luasocket
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup luarocks_org 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name lua-copas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 4.7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+luarocks.rock copas-${version}-1.src.rock
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 {*}[glob ${worksrcpath}/doc/us/*] ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 {*}[glob ${worksrcpath}/tests/*] ${destroot}${prefix}/share/examples/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Coroutine Oriented Portable Asynchronous Services \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Copas is a dispatcher based on coroutines that can be used by \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TCP/IP servers. It uses LuaSocket as the interface with the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TCP/IP stack. A server registered with Copas should provide a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ handler for requests and use Copas socket functions to send \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the response. Copas loops through requests and invokes the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ corresponding handlers. For a full implementation of a Copas \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HTTP server you can refer to Xavante as an example.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 27896ec6aa89adfbbf907cd89b4afeb0e05bdabb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 57166eb7a8806c34183c854253c042eccf864d4b2962dd821eaf222cbd17df49 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 142469
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+luarocks.pure_lua yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+luarocks.dependencies luasocket \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ coxpcall \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ binaryheap \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timerwheel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+luarocks.uploader tieske
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-copas/files/patch-Makefile.diff b/lua/lua-copas/files/patch-Makefile.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 38ca2c743ab..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lua/lua-copas/files/patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,19 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Makefile.orig 2009-09-16 11:13:39.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Makefile 2009-09-16 11:14:19.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1,13 +1,13 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # $Id: Makefile,v 1.3 2007/10/29 22:50:16 carregal Exp $
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Default prefix
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--PREFIX = /usr/local
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+PREFIX = %%PREFIX%%
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # System's lua directory (where Lua libraries are installed)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LUA_DIR= $(PREFIX)/share/lua/5.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- install:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- mkdir -p $(LUA_DIR)/copas
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- cp src/copas/copas.lua $(LUA_DIR)/copas.lua
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ mkdir -p $(DESTDIR)/$(LUA_DIR)/copas
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ cp src/copas/copas.lua $(DESTDIR)$(LUA_DIR)/copas.lua
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- clean:
</span></pre><pre style='margin:0'>
</pre>