package/lua-lgdbm: new package

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[yann.morin.1998@free.fr: propagate gdbm deps, fix check-package]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Francois Perrad 2024-04-03 10:54:24 +02:00 committed by Yann E. MORIN
parent 338acb27ff
commit b31443e09c
5 changed files with 44 additions and 0 deletions
package
support/testing/tests/package

View File

@ -747,6 +747,7 @@ menu "Lua libraries/modules"
source "package/lua-http/Config.in"
source "package/lua-iconv/Config.in"
source "package/lua-inotify/Config.in"
source "package/lua-lgdbm/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,15 @@
config BR2_PACKAGE_LUA_LGDBM
bool "lua-lgdbm"
depends on BR2_USE_MMU # gdbm
depends on BR2_USE_WCHAR #gdbm
depends on BR2_PACKAGE_LUA_5_3 || BR2_PACKAGE_LUA_5_4
select BR2_PACKAGE_GDBM
help
A database library for Lua using GDBM.
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm
comment "lua-lgdbm needs needs a toolchain with wchar, Lua >= 5.3"
depends on !BR2_USE_MMU
depends on !(BR2_PACKAGE_LUA_5_3 || BR2_PACKAGE_LUA_5_4) \
|| !BR2_USE_WCHAR

View File

@ -0,0 +1,2 @@
# computed by luarocks/buildroot
sha256 8cb7e25254b1c9889894654f6cf26d09f2c2ee10fe966f45152eb5deb0a24f9b lgdbm-20211118.52-0.src.rock

View File

@ -0,0 +1,13 @@
################################################################################
#
# lua-lgdbm
#
################################################################################
LUA_LGDBM_VERSION = 20211118.52-0
LUA_LGDBM_NAME_UPSTREAM = lgdbm
LUA_LGDBM_SUBDIR = gdbm
LUA_LGDBM_LICENSE = Public Domain
LUA_LGDBM_DEPENDENCIES = gdbm
$(eval $(luarocks-package))

View File

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