package/lua-lightningmdb: new package

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Francois Perrad 2024-04-04 18:29:38 +02:00 committed by Thomas Petazzoni
parent eb60c4054c
commit 9f84196986
5 changed files with 44 additions and 0 deletions

View File

@ -747,6 +747,7 @@ menu "Lua libraries/modules"
source "package/lua-iconv/Config.in"
source "package/lua-inotify/Config.in"
source "package/lua-lgdbm/Config.in"
source "package/lua-lightningmdb/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,13 @@
config BR2_PACKAGE_LUA_LIGHTNINGMDB
bool "lua-lightningmdb"
depends on !BR2_PACKAGE_LUAJIT
depends on BR2_TOOLCHAIN_HAS_THREADS # lmdb
select BR2_PACKAGE_LMDB
help
A thin wrapper around OpenLDAP Lightning Memory-Mapped
Database (LMDB).
https://github.com/shmul/lightningmdb
comment "lua-lightningmdb needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS

View File

@ -0,0 +1,3 @@
# computed by luarocks/buildroot
sha256 d836709e8a1374eb8913f0e9787bb3f0fc4d49b29e01112691b619f7d1355f8c lightningmdb-0.9.22.1-1.src.rock
sha256 3d0562e11bc52bf45a735e1d60c6f8522886927a8bcfbe7dee219a61ec30b07a lightningmdb-0.9.22.1-1/LICENSE

View File

@ -0,0 +1,14 @@
################################################################################
#
# lua-lightningmdb
#
################################################################################
LUA_LIGHTNINGMDB_VERSION = 0.9.22.1-1
LUA_LIGHTNINGMDB_NAME_UPSTREAM = Lightningmdb
LUA_LIGHTNINGMDB_SUBDIR = lightningmdb-$(LUA_LIGHTNINGMDB_VERSION)
LUA_LIGHTNINGMDB_LICENSE = MIT
LUA_LIGHTNINGMDB_LICENSE_FILES = $(LUA_LIGHTNINGMDB_SUBDIR)/LICENSE
LUA_LIGHTNINGMDB_DEPENDENCIES = lmdb
$(eval $(luarocks-package))

View File

@ -0,0 +1,13 @@
from tests.package.test_lua import TestLuaBase
class TestLuaLightningmdb(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUA=y
BR2_PACKAGE_LUA_LIGHTNINGMDB=y
"""
def test_run(self):
self.login()
self.module_test("lightningmdb")