lua-compat53: new package
authorFrancois Perrad <fperrad@gmail.com>
Sun, 24 Sep 2017 16:18:57 +0000 (18:18 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 3 Oct 2017 20:14:31 +0000 (22:14 +0200)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/lua-compat53/Config.in [new file with mode: 0644]
package/lua-compat53/lua-compat53.hash [new file with mode: 0644]
package/lua-compat53/lua-compat53.mk [new file with mode: 0644]

index 560d29651fcbc598dbcdd1a25264bf46291ff7f3..44a73d1176d07684f591a9d324607a652c4079d2 100644 (file)
@@ -579,6 +579,7 @@ menu "Lua libraries/modules"
        source "package/lua-cjson/Config.in"
        source "package/lua-coat/Config.in"
        source "package/lua-coatpersistent/Config.in"
+       source "package/lua-compat53/Config.in"
        source "package/lua-cqueues/Config.in"
        source "package/lua-csnappy/Config.in"
        source "package/lua-curl/Config.in"
diff --git a/package/lua-compat53/Config.in b/package/lua-compat53/Config.in
new file mode 100644 (file)
index 0000000..7ab3d74
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LUA_COMPAT53
+       bool "lua-compat53"
+       depends on !BR2_PACKAGE_LUA_5_3
+       help
+         Compatibility module providing Lua-5.3-style APIs for Lua 5.2
+         and 5.1
+
+         https://github.com/keplerproject/lua-compat-5.3
diff --git a/package/lua-compat53/lua-compat53.hash b/package/lua-compat53/lua-compat53.hash
new file mode 100644 (file)
index 0000000..7f1e1bb
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 fd0117156f59d1cb3824d5cca63be84c72cb5519b714377545433be3bb31afdf  compat53-0.5-1.src.rock
diff --git a/package/lua-compat53/lua-compat53.mk b/package/lua-compat53/lua-compat53.mk
new file mode 100644 (file)
index 0000000..969f816
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# lua-compat53
+#
+################################################################################
+
+LUA_COMPAT53_VERSION_UPSTREAM = 0.5
+LUA_COMPAT53_VERSION = $(LUA_COMPAT53_VERSION_UPSTREAM)-1
+LUA_COMPAT53_NAME_UPSTREAM = compat53
+LUA_COMPAT53_SUBDIR = lua-compat-5.3-$(LUA_COMPAT53_VERSION_UPSTREAM)
+LUA_COMPAT53_LICENSE = MIT
+LUA_COMPAT53_LICENSE_FILES = $(LUA_COMPAT53_SUBDIR)/LICENSE
+
+$(eval $(luarocks-package))