summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile3
-rw-r--r--devel/lua-mediator/DESCR4
-rw-r--r--devel/lua-mediator/Makefile25
-rw-r--r--devel/lua-mediator/PLIST2
-rw-r--r--devel/lua-mediator/distinfo6
5 files changed, 39 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 8e8c0b5ec10..6ff269cc3c3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3158 2020/07/08 12:15:08 nia Exp $
+# $NetBSD: Makefile,v 1.3159 2020/07/08 12:52:07 nia Exp $
#
COMMENT= Development utilities
@@ -865,6 +865,7 @@ SUBDIR+= lua-lrexlib-onig
SUBDIR+= lua-lrexlib-pcre
SUBDIR+= lua-lrexlib-posix
SUBDIR+= lua-luv
+SUBDIR+= lua-mediator
SUBDIR+= lua-mode
SUBDIR+= lua-penlight
SUBDIR+= lua-posix
diff --git a/devel/lua-mediator/DESCR b/devel/lua-mediator/DESCR
new file mode 100644
index 00000000000..9971378a01b
--- /dev/null
+++ b/devel/lua-mediator/DESCR
@@ -0,0 +1,4 @@
+mediator_lua is a simple class that allows you to listen to events by
+subscribing to and sending data to channels. Its purpose is to help you
+decouple code where you might otherwise have functions calling functions
+calling functions.
diff --git a/devel/lua-mediator/Makefile b/devel/lua-mediator/Makefile
new file mode 100644
index 00000000000..c6fe2e11a9f
--- /dev/null
+++ b/devel/lua-mediator/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 12:52:07 nia Exp $
+
+DISTNAME= mediator_lua-1.1.2
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/_lua//1}
+CATEGORIES= devel lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Olivine-Labs/}
+GITHUB_PROJECT= mediator_lua
+GITHUB_TAG= v${PKGVERSION_NOREV}-0
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://olivinelabs.com/mediator_lua/
+COMMENT= Mediator pattern implementation for pub-sub management
+LICENSE= mit
+
+NO_BUILD= yes
+USE_LANGUAGES= # none
+
+INSTALLATION_DIRS+= ${LUA_LDIR}
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/src/mediator.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/mediator.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/lua-mediator/PLIST b/devel/lua-mediator/PLIST
new file mode 100644
index 00000000000..6e61d3aff4c
--- /dev/null
+++ b/devel/lua-mediator/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 12:52:07 nia Exp $
+${LUA_LDIR}/mediator.lua
diff --git a/devel/lua-mediator/distinfo b/devel/lua-mediator/distinfo
new file mode 100644
index 00000000000..5c454a5782d
--- /dev/null
+++ b/devel/lua-mediator/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 12:52:07 nia Exp $
+
+SHA1 (mediator_lua-1.1.2.tar.gz) = 81f905f939d8682be392a6b39ebf107513a5585a
+RMD160 (mediator_lua-1.1.2.tar.gz) = fac098d33519b30b89da373d8f80a658078e71c9
+SHA512 (mediator_lua-1.1.2.tar.gz) = 116d08a96fa0bd540ac4d3cac61a529a634cba3621c6f2e917b405462bbc0e2ab5b170dc6819e470105cdedf958a382945819eaff4affa63bc057824c163c8a0
+Size (mediator_lua-1.1.2.tar.gz) = 5809 bytes