mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 06:36:34 +00:00
package/lua-lyaml: 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:
parent
a30e00da89
commit
6500cb3cc6
@ -400,6 +400,8 @@ tests.package.test_lua_gd.TestLuaLuaGD: { extends: .runtime_test }
|
|||||||
tests.package.test_lua_gd.TestLuajitLuaGD: { extends: .runtime_test }
|
tests.package.test_lua_gd.TestLuajitLuaGD: { extends: .runtime_test }
|
||||||
tests.package.test_lua_http.TestLuaHttp: { extends: .runtime_test }
|
tests.package.test_lua_http.TestLuaHttp: { extends: .runtime_test }
|
||||||
tests.package.test_lua_http.TestLuajitHttp: { extends: .runtime_test }
|
tests.package.test_lua_http.TestLuajitHttp: { extends: .runtime_test }
|
||||||
|
tests.package.test_lua_lyaml.TestLuaLuaLyaml: { extends: .runtime_test }
|
||||||
|
tests.package.test_lua_lyaml.TestLuajitLuaLyaml: { extends: .runtime_test }
|
||||||
tests.package.test_lua_sdl2.TestLuaLuaSDL2: { extends: .runtime_test }
|
tests.package.test_lua_sdl2.TestLuaLuaSDL2: { extends: .runtime_test }
|
||||||
tests.package.test_lua_sdl2.TestLuajitLuaSDL2: { extends: .runtime_test }
|
tests.package.test_lua_sdl2.TestLuajitLuaSDL2: { extends: .runtime_test }
|
||||||
tests.package.test_lua_utf8.TestLuaUtf8: { extends: .runtime_test }
|
tests.package.test_lua_utf8.TestLuaUtf8: { extends: .runtime_test }
|
||||||
|
@ -654,6 +654,7 @@ menu "Lua libraries/modules"
|
|||||||
source "package/lua-livr-extra/Config.in"
|
source "package/lua-livr-extra/Config.in"
|
||||||
source "package/lua-lpeg-patterns/Config.in"
|
source "package/lua-lpeg-patterns/Config.in"
|
||||||
source "package/lua-lunitx/Config.in"
|
source "package/lua-lunitx/Config.in"
|
||||||
|
source "package/lua-lyaml/Config.in"
|
||||||
source "package/lua-markdown/Config.in"
|
source "package/lua-markdown/Config.in"
|
||||||
source "package/lua-messagepack/Config.in"
|
source "package/lua-messagepack/Config.in"
|
||||||
source "package/lua-msgpack-native/Config.in"
|
source "package/lua-msgpack-native/Config.in"
|
||||||
|
9
package/lua-lyaml/Config.in
Normal file
9
package/lua-lyaml/Config.in
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
config BR2_PACKAGE_LUA_LYAML
|
||||||
|
bool "lua-lyaml"
|
||||||
|
select BR2_PACKAGE_LIBYAML
|
||||||
|
help
|
||||||
|
This is a Lua binding for the fast libYAML C library for
|
||||||
|
converting between `%YAML 1.1` and Lua tables, with a
|
||||||
|
flexible Lua language API to load and save YAML documents.
|
||||||
|
|
||||||
|
http://github.com/gvvaughan/lyaml
|
3
package/lua-lyaml/lua-lyaml.hash
Normal file
3
package/lua-lyaml/lua-lyaml.hash
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# locally computed
|
||||||
|
sha256 f4015ba47a389fc4fe0656cbcb8a216239275ec53309a0df79b0733c843e7bba lua-lyaml-6.2.4.tar.gz
|
||||||
|
sha256 c7ec2f52d258088437cddeeee38cfc97d60d464c8801aa77decefb993400ec6e LICENSE
|
33
package/lua-lyaml/lua-lyaml.mk
Normal file
33
package/lua-lyaml/lua-lyaml.mk
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# lua-lyaml
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
LUA_LYAML_VERSION = 6.2.4
|
||||||
|
LUA_LYAML_NAME_UPSTREAM = lyaml
|
||||||
|
LUA_LYAML_SITE = $(call github,gvvaughan,$(LUA_LYAML_NAME_UPSTREAM),v$(LUA_LYAML_VERSION))
|
||||||
|
LUA_LYAML_LICENSE = MIT
|
||||||
|
LUA_LYAML_LICENSE_FILES = LICENSE
|
||||||
|
LUA_LYAML_DEPENDENCIES = libyaml luainterpreter host-lua
|
||||||
|
|
||||||
|
define LUA_LYAML_BUILD_CMDS
|
||||||
|
(cd $(@D); \
|
||||||
|
$(LUA_RUN) build-aux/luke \
|
||||||
|
version="'$(LUA_LYAML_VERSION)'" \
|
||||||
|
CC="$(TARGET_CC)" \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
LUA_INCDIR=$(STAGING_DIR)/usr/include \
|
||||||
|
YAML_DIR=$(STAGING_DIR)/usr \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define LUA_LYAML_INSTALL_TARGET_CMDS
|
||||||
|
(cd $(@D); \
|
||||||
|
$(LUA_RUN) build-aux/luke install \
|
||||||
|
INST_LIBDIR="$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
|
||||||
|
INST_LUADIR="$(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)" \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(generic-package))
|
27
support/testing/tests/package/test_lua_lyaml.py
Normal file
27
support/testing/tests/package/test_lua_lyaml.py
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
from tests.package.test_lua import TestLuaBase
|
||||||
|
|
||||||
|
|
||||||
|
class TestLuaLuaLyaml(TestLuaBase):
|
||||||
|
config = TestLuaBase.config + \
|
||||||
|
"""
|
||||||
|
BR2_PACKAGE_LUA=y
|
||||||
|
BR2_PACKAGE_LUA_LYAML=y
|
||||||
|
"""
|
||||||
|
|
||||||
|
def test_run(self):
|
||||||
|
self.login()
|
||||||
|
self.module_test("yaml")
|
||||||
|
self.module_test("lyaml")
|
||||||
|
|
||||||
|
|
||||||
|
class TestLuajitLuaLyaml(TestLuaBase):
|
||||||
|
config = TestLuaBase.config + \
|
||||||
|
"""
|
||||||
|
BR2_PACKAGE_LUAJIT=y
|
||||||
|
BR2_PACKAGE_LUA_LYAML=y
|
||||||
|
"""
|
||||||
|
|
||||||
|
def test_run(self):
|
||||||
|
self.login()
|
||||||
|
self.module_test("yaml")
|
||||||
|
self.module_test("lyaml")
|
Loading…
x
Reference in New Issue
Block a user