aboutsummaryrefslogtreecommitdiff
path: root/lua-cjson-2.1.0.12-1.rockspec
diff options
context:
space:
mode:
Diffstat (limited to 'lua-cjson-2.1.0.12-1.rockspec')
-rw-r--r--lua-cjson-2.1.0.12-1.rockspec60
1 files changed, 60 insertions, 0 deletions
diff --git a/lua-cjson-2.1.0.12-1.rockspec b/lua-cjson-2.1.0.12-1.rockspec
new file mode 100644
index 0000000..9ed4272
--- /dev/null
+++ b/lua-cjson-2.1.0.12-1.rockspec
@@ -0,0 +1,60 @@
1package = "lua-cjson"
2version = "2.1.0.11-1"
3
4source = {
5 url = "git+https://github.com/openresty/lua-cjson",
6 tag = "2.1.0.11",
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 ["cjson.safe"] = {
39 sources = { "lua_cjson.c", "strbuf.c", "fpconv.c" }
40 }
41 },
42 install = {
43 lua = {
44 ["cjson.util"] = "lua/cjson/util.lua"
45 },
46 bin = {
47 json2lua = "lua/json2lua.lua",
48 lua2json = "lua/lua2json.lua"
49 }
50 },
51 -- Override default build options (per platform)
52 platforms = {
53 win32 = { modules = { cjson = { defines = {
54 "DISABLE_INVALID_NUMBERS", "USE_INTERNAL_ISINF"
55 } } } }
56 },
57 copy_directories = { "tests" }
58}
59
60-- vi:ai et sw=4 ts=4: