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