aboutsummaryrefslogtreecommitdiff
path: root/package/luajson
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2014-02-24 08:34:48 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-01 16:05:29 +0100
commitd8ac059cb32d30f75ae3ad631b9d66303d7ec031 (patch)
tree3416da6ddad5afe1f82a02677e2df68f4326c7ae /package/luajson
parent08f2dd2bf6d6bac5fa1dca0617733180454451fd (diff)
downloadbuildroot-d8ac059cb32d30f75ae3ad631b9d66303d7ec031.tar.gz
buildroot-d8ac059cb32d30f75ae3ad631b9d66303d7ec031.tar.bz2
luajson: new package
[Thomas: explicitly mention that lpeg is a run-time dependency, and simplify the version specification. Both comments were made by Arnout.] Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/luajson')
-rw-r--r--package/luajson/Config.in9
-rw-r--r--package/luajson/luajson.mk12
2 files changed, 21 insertions, 0 deletions
diff --git a/package/luajson/Config.in b/package/luajson/Config.in
new file mode 100644
index 0000000000..c04aa7f008
--- /dev/null
+++ b/package/luajson/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LUAJSON
+ bool "luajson"
+ # run-time dependency
+ select BR2_PACKAGE_LPEG
+ help
+ LuaJSON is a customizable JSON decoder/encoder
+ using LPEG for parsing.
+
+ http://github.com/harningt/luajson
diff --git a/package/luajson/luajson.mk b/package/luajson/luajson.mk
new file mode 100644
index 0000000000..3a4f81d12b
--- /dev/null
+++ b/package/luajson/luajson.mk
@@ -0,0 +1,12 @@
+################################################################################
+#
+# luajson
+#
+################################################################################
+
+LUAJSON_VERSION = 1.3.2-1
+LUAJSON_SUBDIR = luajson
+LUAJSON_LICENSE = MIT
+LUAJSON_LICENSE_FILES = $(LUAJSON_SUBDIR)/LICENSE
+
+$(eval $(luarocks-package))