aboutsummaryrefslogtreecommitdiff
path: root/lua-cjson-2.1.0.9-1.rockspec
diff options
context:
space:
mode:
Diffstat (limited to 'lua-cjson-2.1.0.9-1.rockspec')
-rw-r--r--lua-cjson-2.1.0.9-1.rockspec57
1 files changed, 57 insertions, 0 deletions
diff --git a/lua-cjson-2.1.0.9-1.rockspec b/lua-cjson-2.1.0.9-1.rockspec
new file mode 100644
index 0000000..32a230e
--- /dev/null
+++ b/lua-cjson-2.1.0.9-1.rockspec
@@ -0,0 +1,57 @@
1package = "lua-cjson"
2version = "2.1.0.9-1"
3
4source = {
5 url = "git+https://github.com/openresty/lua-cjson",
6 tag = "2.1.0.9",
7}
8
9description = {
10 summary = "A fast JSON encoding/parsing module",
11 detailed = [[
12 The Lua CJSON module provides JSON support for Lua. It features:
13 - Fast, standards compliant encoding/parsing routines
14 - Full support for JSON with UTF-8, including decoding surrogate pairs
15 - Optional run-time support for common exceptions to the JSON specification
16 (infinity, NaN,..)
17 - No dependencies on other libraries
18 ]],
19 homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php",
20 license = "MIT"
21}
22
23dependencies = {
24 "lua >= 5.1"
25}
26
27build = {
28 type = "builtin",
29 modules = {
30 cjson = {
31 sources = { "lua_cjson.c", "strbuf.c", "fpconv.c" },
32 defines = {
33-- LuaRocks does not support platform specific configuration for Solaris.
34-- Uncomment the line below on Solaris platforms if required.
35-- "USE_INTERNAL_ISINF"
36 }
37 }
38 },
39 install = {
40 lua = {
41 ["cjson.util"] = "lua/cjson/util.lua"
42 },
43 bin = {
44 json2lua = "lua/json2lua.lua",
45 lua2json = "lua/lua2json.lua"
46 }
47 },
48 -- Override default build options (per platform)
49 platforms = {
50 win32 = { modules = { cjson = { defines = {
51 "DISABLE_INVALID_NUMBERS", "USE_INTERNAL_ISINF"
52 } } } }
53 },
54 copy_directories = { "tests" }
55}
56
57-- vi:ai et sw=4 ts=4: