package/lua-inotify: new package

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Francois Perrad 2020-05-18 07:23:45 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent c17a9b2de8
commit e39379ff59
6 changed files with 50 additions and 0 deletions

View File

@ -983,6 +983,7 @@ F: package/libtommath/
F: package/libwpe/
F: package/linenoise/
F: package/ljlinenoise/
F: package/lua-inotify/
F: package/lpeg/
F: package/lpty/
F: package/lrandom/

View File

@ -685,6 +685,7 @@ menu "Lua libraries/modules"
source "package/lua-gd/Config.in"
source "package/lua-http/Config.in"
source "package/lua-iconv/Config.in"
source "package/lua-inotify/Config.in"
source "package/lua-livr/Config.in"
source "package/lua-livr-extra/Config.in"
source "package/lua-lpeg-patterns/Config.in"

View File

@ -0,0 +1,6 @@
config BR2_PACKAGE_LUA_INOTIFY
bool "lua-inotify"
help
Inotify bindings for Lua.
http://hoelz.ro/projects/linotify

View File

@ -0,0 +1,3 @@
# computed by luarocks/buildroot
sha256 9164b5777b132d7e1e073478d8837a526262991c57e32d75d517100f533eb436 inotify-0.5-1.src.rock
sha256 b02158adb3c7763e1183a9386672f4f037bfeaab0cb0c73d684f34f3ea1993d8 linotify-0.5/COPYRIGHT

View File

@ -0,0 +1,14 @@
################################################################################
#
# lua-inotify
#
################################################################################
LUA_INOTIFY_VERSION_UPSTREAM = 0.5
LUA_INOTIFY_VERSION = $(LUA_INOTIFY_VERSION_UPSTREAM)-1
LUA_INOTIFY_NAME_UPSTREAM = inotify
LUA_INOTIFY_SUBDIR = linotify-$(LUA_INOTIFY_VERSION_UPSTREAM)
LUA_INOTIFY_LICENSE = MIT
LUA_INOTIFY_LICENSE_FILES = $(LUA_INOTIFY_SUBDIR)/COPYRIGHT
$(eval $(luarocks-package))

View File

@ -0,0 +1,25 @@
from tests.package.test_lua import TestLuaBase
class TestLuaInotify(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUA=y
BR2_PACKAGE_LUA_INOTIFY=y
"""
def test_run(self):
self.login()
self.module_test("inotify")
class TestLuajitInotify(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUAJIT=y
BR2_PACKAGE_LUA_INOTIFY=y
"""
def test_run(self):
self.login()
self.module_test("inotify")