tests.package.test_lua_gd.TestLuajitLuaGD: { 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_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.TestLuajitLuaSDL2: { extends: .runtime_test }
tests.package.test_lua_utf8.TestLuaUtf8: { extends: .runtime_test }
source "package/lua-livr-extra/Config.in"
source "package/lua-lpeg-patterns/Config.in"
source "package/lua-lunitx/Config.in"
+ source "package/lua-lyaml/Config.in"
source "package/lua-markdown/Config.in"
source "package/lua-messagepack/Config.in"
source "package/lua-msgpack-native/Config.in"
--- /dev/null
+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
--- /dev/null
+# locally computed
+sha256 f4015ba47a389fc4fe0656cbcb8a216239275ec53309a0df79b0733c843e7bba lua-lyaml-6.2.4.tar.gz
+sha256 c7ec2f52d258088437cddeeee38cfc97d60d464c8801aa77decefb993400ec6e LICENSE
--- /dev/null
+################################################################################
+#
+# 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))
--- /dev/null
+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")