pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/lua-cqueues Initial import of devel/lua-cqueues ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd3158e057b1
branches:  trunk
changeset: 328672:dd3158e057b1
user:      alnsn <alnsn%pkgsrc.org@localhost>
date:      Sat Jan 26 00:57:56 2019 +0000

description:
Initial import of devel/lua-cqueues version 20171014.

Stackable Continuation Queues.

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.

diffstat:

 devel/lua-cqueues/DESCR                          |   5 +++++
 devel/lua-cqueues/Makefile                       |  23 +++++++++++++++++++++++
 devel/lua-cqueues/PLIST                          |  19 +++++++++++++++++++
 devel/lua-cqueues/distinfo                       |   7 +++++++
 devel/lua-cqueues/patches/patch-src_lib_notify.c |  14 ++++++++++++++
 5 files changed, 68 insertions(+), 0 deletions(-)

diffs (88 lines):

diff -r a7409b3807d5 -r dd3158e057b1 devel/lua-cqueues/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cqueues/DESCR   Sat Jan 26 00:57:56 2019 +0000
@@ -0,0 +1,5 @@
+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.
diff -r a7409b3807d5 -r dd3158e057b1 devel/lua-cqueues/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cqueues/Makefile        Sat Jan 26 00:57:56 2019 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2019/01/26 00:57:56 alnsn Exp $
+
+DISTNAME=      cqueues-20171014
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel
+MASTER_SITES=  http://25thandclement.com/~william/projects/releases/
+EXTRACT_SUFX=  .tgz
+
+MAINTAINER=    alnsn%NetBSD.org@localhost
+HOMEPAGE=      http://25thandclement.com/~william/projects/releases/
+COMMENT=       Stackable Continuation Queues for Lua
+LICENSE=       mit
+
+USE_LANGUAGES= c
+USE_TOOLS+=    gmake
+
+MAKE_ENV+=     prefix=${PREFIX}
+
+BUILD_TARGET=  all${_LUA_DOT_VERSION}
+INSTALL_TARGET=        install${_LUA_DOT_VERSION}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a7409b3807d5 -r dd3158e057b1 devel/lua-cqueues/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cqueues/PLIST   Sat Jan 26 00:57:56 2019 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2019/01/26 00:57:56 alnsn Exp $
+${LUA_CDIR}/_cqueues.so
+${LUA_LDIR}/cqueues.lua
+${LUA_LDIR}/cqueues/auxlib.lua
+${LUA_LDIR}/cqueues/condition.lua
+${LUA_LDIR}/cqueues/dns.lua
+${LUA_LDIR}/cqueues/dns/config.lua
+${LUA_LDIR}/cqueues/dns/hints.lua
+${LUA_LDIR}/cqueues/dns/hosts.lua
+${LUA_LDIR}/cqueues/dns/packet.lua
+${LUA_LDIR}/cqueues/dns/record.lua
+${LUA_LDIR}/cqueues/dns/resolver.lua
+${LUA_LDIR}/cqueues/dns/resolvers.lua
+${LUA_LDIR}/cqueues/errno.lua
+${LUA_LDIR}/cqueues/notify.lua
+${LUA_LDIR}/cqueues/promise.lua
+${LUA_LDIR}/cqueues/signal.lua
+${LUA_LDIR}/cqueues/socket.lua
+${LUA_LDIR}/cqueues/thread.lua
diff -r a7409b3807d5 -r dd3158e057b1 devel/lua-cqueues/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cqueues/distinfo        Sat Jan 26 00:57:56 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2019/01/26 00:57:56 alnsn Exp $
+
+SHA1 (cqueues-20171014.tgz) = 304b8b59ddc7a7cebb3d788c75016c5bb0ead879
+RMD160 (cqueues-20171014.tgz) = abd36e199a79eb6d05d4d2dff5668e7ed59dc310
+SHA512 (cqueues-20171014.tgz) = f53c498ff6bc6833a52a21b300117ae6b97ce9cec0b986937ba87928be6e1ed0bdb41d8740883d1b4a9f71ca09cfe2d2de859dd9582bd1fcc068ceaf03d7215b
+Size (cqueues-20171014.tgz) = 640870 bytes
+SHA1 (patch-src_lib_notify.c) = 63dcb558dbd1d53e668ee766b9cd506e36c1efb2
diff -r a7409b3807d5 -r dd3158e057b1 devel/lua-cqueues/patches/patch-src_lib_notify.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cqueues/patches/patch-src_lib_notify.c  Sat Jan 26 00:57:56 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_lib_notify.c,v 1.1.1.1 2019/01/26 00:57:56 alnsn Exp $
+
+Add include for struct timespec.
+
+--- src/lib/notify.c.orig      2017-10-13 23:52:42.000000000 +0000
++++ src/lib/notify.c
+@@ -34,6 +34,7 @@
+ #include <errno.h>    /* ENAMETOOLONG EINTR EAGAIN EMFILE EISDIR ENOTDIR */
+ 
+ #include <sys/queue.h>        /* LIST_* */
++#include <sys/time.h>
+ #include <unistd.h>   /* close(2) */
+ #include <fcntl.h>    /* O_CLOEXEC O_DIRECTORY ... open(2) openat(2) fcntl(2) */
+ #include <dirent.h>   /* DIR fdopendir(3) opendir(3) readdir_r(3) closedir(3) */



Home | Main Index | Thread Index | Old Index