New port: devel/lua-cqueues

cqueues is a type of event loop for Lua, except it's not a classic
event loop. It doesn't use callbacks, neither as part of the API nor
internally, but instead you communicate with an event controller by
the yielding and resumption of Lua coroutines using objects that
adhere to a simple interface.

WWW: http://25thandclement.com/~william/projects/cqueues.html

PR:		247739
Submitted by:	Leo Vandewoestijne <freebsd@dns.company>
This commit is contained in:
Kurt Jaeger 2020-07-03 19:46:02 +00:00
parent 99e5648d20
commit 4895a0418f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=541131
5 changed files with 61 additions and 0 deletions

View File

@ -1433,6 +1433,7 @@
SUBDIR += lua-bitlib
SUBDIR += lua-bitop
SUBDIR += lua-cjson
SUBDIR += lua-cqueues
SUBDIR += lua-gettext
SUBDIR += lua-lgi
SUBDIR += lua-libevent

View File

@ -0,0 +1,30 @@
# Created by: Leo Vandewoestijne <freebsd@dns.company>
# $FreeBSD$
PORTNAME= cqueues
DISTVERSIONPREFIX= rel-
DISTVERSION= 20200603
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= freebsd@dns.company
COMMENT= Constant queues lib
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake lua:51+,module ssl
USE_LDCONFIG= {LUA_MODLIBDIR}
LDFLAGS+= -Wl,-soname,liblua-${PORTNAME}.so.${LUA_VER_STR}
USE_GITHUB= yes
GH_ACCOUNT= wahern
SONAME= ${STAGEDIR}${PREFIX}/lib/liblua-${PORTNAME}.so
post-install:
${MV} ${STAGEDIR}${LUA_MODLIBDIR}/_${PORTNAME}.so ${SONAME}.${LUA_VER_STR}
${STRIP_CMD} ${SONAME}.${LUA_VER_STR}
${RLN} ${SONAME}.${LUA_VER_STR} ${SONAME}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1593703274
SHA256 (wahern-cqueues-rel-20200603_GH0.tar.gz) = 45b4a0105c096eee5840b69e8e0078eb7b5d61a23aeca30db710f1caac3ec399
SIZE (wahern-cqueues-rel-20200603_GH0.tar.gz) = 509190

View File

@ -0,0 +1,7 @@
cqueues is a type of event loop for Lua, except it's not a classic
event loop. It doesn't use callbacks, neither as part of the API nor
internally, but instead you communicate with an event controller by
the yielding and resumption of Lua coroutines using objects that
adhere to a simple interface.
WWW: http://25thandclement.com/~william/projects/cqueues.html

View File

@ -0,0 +1,20 @@
lib/liblua-cqueues.so.%%LUA_VER_STR%%
lib/liblua-cqueues.so
%%LUA_MODSHAREDIR%%/cqueues.lua
%%LUA_MODSHAREDIR%%/cqueues/auxlib.lua
%%LUA_MODSHAREDIR%%/cqueues/condition.lua
%%LUA_MODSHAREDIR%%/cqueues/dns.lua
%%LUA_MODSHAREDIR%%/cqueues/dns/config.lua
%%LUA_MODSHAREDIR%%/cqueues/dns/hints.lua
%%LUA_MODSHAREDIR%%/cqueues/dns/hosts.lua
%%LUA_MODSHAREDIR%%/cqueues/dns/packet.lua
%%LUA_MODSHAREDIR%%/cqueues/dns/record.lua
%%LUA_MODSHAREDIR%%/cqueues/dns/resolver.lua
%%LUA_MODSHAREDIR%%/cqueues/dns/resolvers.lua
%%LUA_MODSHAREDIR%%/cqueues/errno.lua
%%LUA_MODSHAREDIR%%/cqueues/notify.lua
%%LUA_MODSHAREDIR%%/cqueues/promise.lua
%%LUA_MODSHAREDIR%%/cqueues/signal.lua
%%LUA_MODSHAREDIR%%/cqueues/socket.lua
%%LUA_MODSHAREDIR%%/cqueues/thread.lua
@dir %%LUA_MODLIBDIR%%