wip/lua-mediator: import lua52-mediator-1.1.2

mediator_lua allows you to subscribe and publish to a central object so
 you can decouple function calls in your application. It's as simple as
 mediator:subscribe("channel", function). Supports namespacing, predicates,
 and more.
This commit is contained in:
Jonathan Buschmann 2020-01-04 00:02:48 +08:00
parent feae6cbc3b
commit 11b4ae2007
4 changed files with 36 additions and 0 deletions

4
lua-mediator/DESCR Normal file
View File

@ -0,0 +1,4 @@
mediator_lua allows you to subscribe and publish to a central object so
you can decouple function calls in your application. It's as simple as
mediator:subscribe("channel", function). Supports namespacing, predicates,
and more.

24
lua-mediator/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $NetBSD$
DISTNAME= lua-mediator-1.1.2
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=Olivine-Labs/}
GITHUB_PROJECT= mediator_lua
GITHUB_TAG= v${PKGVERSION_NOREV}-0
HOMEPAGE= https://github.com/Olivine-Labs/mediator_lua
COMMENT= Mediator pattern implementation for pub-sub management
LICENSE= mit
NO_BUILD= yes
INSTALLATION_DIRS+= ${LUA_LDIR}
do-install:
${INSTALL_DATA} ${WRKSRC}/src/mediator.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

2
lua-mediator/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $NetBSD$
${LUA_LDIR}/mediator.lua

6
lua-mediator/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
SHA1 (lua-mediator-1.1.2.tar.gz) = 81f905f939d8682be392a6b39ebf107513a5585a
RMD160 (lua-mediator-1.1.2.tar.gz) = fac098d33519b30b89da373d8f80a658078e71c9
SHA512 (lua-mediator-1.1.2.tar.gz) = 116d08a96fa0bd540ac4d3cac61a529a634cba3621c6f2e917b405462bbc0e2ab5b170dc6819e470105cdedf958a382945819eaff4affa63bc057824c163c8a0
Size (lua-mediator-1.1.2.tar.gz) = 5809 bytes