<div dir="ltr"><div dir="ltr"><br></div><div>ping<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 18 sept. 2019 à 20:20, Francois Perrad <<a href="mailto:fperrad@gmail.com">fperrad@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Signed-off-by: Francois Perrad <<a href="mailto:francois.perrad@gadz.org" target="_blank">francois.perrad@gadz.org</a>><br>
---<br>
 .gitlab-ci.yml                                |  2 ++<br>
 package/Config.in                             |  1 +<br>
 package/lua-lyaml/Config.in                   |  9 +++++<br>
 package/lua-lyaml/lua-lyaml.hash              |  3 ++<br>
 package/lua-lyaml/<a href="http://lua-lyaml.mk" rel="noreferrer" target="_blank">lua-lyaml.mk</a>                | 33 +++++++++++++++++++<br>
 .../testing/tests/package/test_lua_lyaml.py   | 27 +++++++++++++++<br>
 6 files changed, 75 insertions(+)<br>
 create mode 100644 package/lua-lyaml/Config.in<br>
 create mode 100644 package/lua-lyaml/lua-lyaml.hash<br>
 create mode 100644 package/lua-lyaml/<a href="http://lua-lyaml.mk" rel="noreferrer" target="_blank">lua-lyaml.mk</a><br>
 create mode 100644 support/testing/tests/package/test_lua_lyaml.py<br>
<br>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml<br>
index 5d42d2a60..2abb1a3b9 100644<br>
--- a/.gitlab-ci.yml<br>
+++ b/.gitlab-ci.yml<br>
@@ -381,6 +381,8 @@ tests.package.test_lua_curl.TestLuaLuacURL: { extends: .runtime_test }<br>
 tests.package.test_lua_curl.TestLuajitLuacURL: { extends: .runtime_test }<br>
 tests.package.test_lua_http.TestLuaHttp: { extends: .runtime_test }<br>
 tests.package.test_lua_http.TestLuajitHttp: { extends: .runtime_test }<br>
+tests.package.test_lua_lyaml.TestLuaLuaLyaml: { extends: .runtime_test }<br>
+tests.package.test_lua_lyaml.TestLuajitLuaLyaml: { extends: .runtime_test }<br>
 tests.package.test_lua_utf8.TestLuaUtf8: { extends: .runtime_test }<br>
 tests.package.test_lua_utf8.TestLuajitUtf8: { extends: .runtime_test }<br>
 tests.package.test_luaexpat.TestLuaLuaExpat: { extends: .runtime_test }<br>
diff --git a/package/Config.in b/package/Config.in<br>
index 710ed12be..d9ed0b601 100644<br>
--- a/package/Config.in<br>
+++ b/package/Config.in<br>
@@ -630,6 +630,7 @@ menu "Lua libraries/modules"<br>
        source "package/lua-iconv/Config.in"<br>
        source "package/lua-lpeg-patterns/Config.in"<br>
        source "package/lua-lunitx/Config.in"<br>
+       source "package/lua-lyaml/Config.in"<br>
        source "package/lua-markdown/Config.in"<br>
        source "package/lua-messagepack/Config.in"<br>
        source "package/lua-msgpack-native/Config.in"<br>
diff --git a/package/lua-lyaml/Config.in b/package/lua-lyaml/Config.in<br>
new file mode 100644<br>
index 000000000..ef2d3823d<br>
--- /dev/null<br>
+++ b/package/lua-lyaml/Config.in<br>
@@ -0,0 +1,9 @@<br>
+config BR2_PACKAGE_LUA_LYAML<br>
+       bool "lua-lyaml"<br>
+       select BR2_PACKAGE_LIBYAML<br>
+       help<br>
+         This is a Lua binding for the fast libYAML C library for<br>
+         converting between `%YAML 1.1` and Lua tables, with a<br>
+         flexible Lua language API to load and save YAML documents.<br>
+<br>
+         <a href="http://github.com/gvvaughan/lyaml" rel="noreferrer" target="_blank">http://github.com/gvvaughan/lyaml</a><br>
diff --git a/package/lua-lyaml/lua-lyaml.hash b/package/lua-lyaml/lua-lyaml.hash<br>
new file mode 100644<br>
index 000000000..dd1978385<br>
--- /dev/null<br>
+++ b/package/lua-lyaml/lua-lyaml.hash<br>
@@ -0,0 +1,3 @@<br>
+# locally computed<br>
+sha256 f4015ba47a389fc4fe0656cbcb8a216239275ec53309a0df79b0733c843e7bba  lua-lyaml-6.2.4.tar.gz<br>
+sha256 c7ec2f52d258088437cddeeee38cfc97d60d464c8801aa77decefb993400ec6e  LICENSE<br>
diff --git a/package/lua-lyaml/<a href="http://lua-lyaml.mk" rel="noreferrer" target="_blank">lua-lyaml.mk</a> b/package/lua-lyaml/<a href="http://lua-lyaml.mk" rel="noreferrer" target="_blank">lua-lyaml.mk</a><br>
new file mode 100644<br>
index 000000000..c88a438d5<br>
--- /dev/null<br>
+++ b/package/lua-lyaml/<a href="http://lua-lyaml.mk" rel="noreferrer" target="_blank">lua-lyaml.mk</a><br>
@@ -0,0 +1,33 @@<br>
+################################################################################<br>
+#<br>
+# lua-lyaml<br>
+#<br>
+################################################################################<br>
+<br>
+LUA_LYAML_VERSION = 6.2.4<br>
+LUA_LYAML_NAME_UPSTREAM = lyaml<br>
+LUA_LYAML_SITE = $(call github,gvvaughan,$(LUA_LYAML_NAME_UPSTREAM),v$(LUA_LYAML_VERSION))<br>
+LUA_LYAML_LICENSE = MIT<br>
+LUA_LYAML_LICENSE_FILES = LICENSE<br>
+LUA_LYAML_DEPENDENCIES = libyaml luainterpreter host-lua<br>
+<br>
+define LUA_LYAML_BUILD_CMDS<br>
+       (cd $(@D); \<br>
+               $(LUA_RUN) build-aux/luke \<br>
+               version="'$(LUA_LYAML_VERSION)'" \<br>
+               CC="$(TARGET_CC)" \<br>
+               CFLAGS="$(TARGET_CFLAGS)" \<br>
+               LUA_INCDIR=$(STAGING_DIR)/usr/include \<br>
+               YAML_DIR=$(STAGING_DIR)/usr \<br>
+       )<br>
+endef<br>
+<br>
+define LUA_LYAML_INSTALL_TARGET_CMDS<br>
+       (cd $(@D); \<br>
+               $(LUA_RUN) build-aux/luke install \<br>
+               INST_LIBDIR="$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \<br>
+               INST_LUADIR="$(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)" \<br>
+       )<br>
+endef<br>
+<br>
+$(eval $(generic-package))<br>
diff --git a/support/testing/tests/package/test_lua_lyaml.py b/support/testing/tests/package/test_lua_lyaml.py<br>
new file mode 100644<br>
index 000000000..ece3c675a<br>
--- /dev/null<br>
+++ b/support/testing/tests/package/test_lua_lyaml.py<br>
@@ -0,0 +1,27 @@<br>
+from tests.package.test_lua import TestLuaBase<br>
+<br>
+<br>
+class TestLuaLuaLyaml(TestLuaBase):<br>
+    config = TestLuaBase.config + \<br>
+        """<br>
+        BR2_PACKAGE_LUA=y<br>
+        BR2_PACKAGE_LUA_LYAML=y<br>
+        """<br>
+<br>
+    def test_run(self):<br>
+        self.login()<br>
+        self.module_test("yaml")<br>
+        self.module_test("lyaml")<br>
+<br>
+<br>
+class TestLuajitLuaLyaml(TestLuaBase):<br>
+    config = TestLuaBase.config + \<br>
+        """<br>
+        BR2_PACKAGE_LUAJIT=y<br>
+        BR2_PACKAGE_LUA_LYAML=y<br>
+        """<br>
+<br>
+    def test_run(self):<br>
+        self.login()<br>
+        self.module_test("yaml")<br>
+        self.module_test("lyaml")<br>
-- <br>
2.20.1<br>
<br>
</blockquote></div></div>