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:
parent
99e5648d20
commit
4895a0418f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=541131
@ -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
|
||||
|
30
devel/lua-cqueues/Makefile
Normal file
30
devel/lua-cqueues/Makefile
Normal 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>
|
3
devel/lua-cqueues/distinfo
Normal file
3
devel/lua-cqueues/distinfo
Normal 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
|
7
devel/lua-cqueues/pkg-descr
Normal file
7
devel/lua-cqueues/pkg-descr
Normal 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
|
20
devel/lua-cqueues/pkg-plist
Normal file
20
devel/lua-cqueues/pkg-plist
Normal 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%%
|
Loading…
Reference in New Issue
Block a user