lua-iconv: new package
authorFrancois Perrad <fperrad@gmail.com>
Mon, 13 Jul 2015 18:11:00 +0000 (20:11 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 13 Jul 2015 18:42:35 +0000 (20:42 +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-iconv/Config.in [new file with mode: 0644]
package/lua-iconv/lua-iconv.mk [new file with mode: 0644]

index c5769d68bb3f1f728268fb140cb9343dbe6667c2..9dbb28477460d2e3e5b82460a49dc7a4c791f15c 100644 (file)
@@ -481,6 +481,7 @@ menu "Lua libraries/modules"
        source "package/lua-coatpersistent/Config.in"
        source "package/lua-csnappy/Config.in"
        source "package/lua-ev/Config.in"
+       source "package/lua-iconv/Config.in"
        source "package/lua-messagepack/Config.in"
        source "package/lua-msgpack-native/Config.in"
        source "package/lua-periphery/Config.in"
diff --git a/package/lua-iconv/Config.in b/package/lua-iconv/Config.in
new file mode 100644 (file)
index 0000000..e76019d
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LUA_ICONV
+       bool "lua-iconv"
+       select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+       help
+         Lua binding to the POSIX 'iconv' library
+
+         http://ittner.github.io/lua-iconv/
diff --git a/package/lua-iconv/lua-iconv.mk b/package/lua-iconv/lua-iconv.mk
new file mode 100644 (file)
index 0000000..f0afa2b
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# lua-iconv
+#
+################################################################################
+
+LUA_ICONV_VERSION_UPSTREAM = 7
+LUA_ICONV_VERSION = $(LUA_ICONV_VERSION_UPSTREAM)-1
+LUA_ICONV_SUBDIR  = lua-iconv-$(LUA_ICONV_VERSION_UPSTREAM)
+LUA_ICONV_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+LUA_ICONV_LICENSE = MIT
+LUA_ICONV_LICENSE_FILES = $(LUA_ICONV_SUBDIR)/COPYING
+
+$(eval $(luarocks-package))