| 1 |
package = "lua-cjson" |
| 2 |
version = "2.1.0-1" |
| 3 |
|
| 4 |
source = { |
| 5 |
url = "http://www.kyne.com.au/~mark/software/download/lua-cjson-2.1.0.zip", |
| 6 |
} |
| 7 |
|
| 8 |
description = { |
| 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 |
|
| 22 |
dependencies = { |
| 23 |
"lua >= 5.1" |
| 24 |
} |
| 25 |
|
| 26 |
build = { |
| 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: |