diff options
Diffstat (limited to 'lua-cjson-1.0devel-1.rockspec')
| -rw-r--r-- | lua-cjson-1.0devel-1.rockspec | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/lua-cjson-1.0devel-1.rockspec b/lua-cjson-1.0devel-1.rockspec new file mode 100644 index 0000000..8df0658 --- /dev/null +++ b/lua-cjson-1.0devel-1.rockspec | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | package = "lua-cjson" | ||
| 2 | version = "1.0devel-1" | ||
| 3 | |||
| 4 | source = { | ||
| 5 | url = "http://www.kyne.com.au/~mark/software/lua-cjson-1.0devel.zip", | ||
| 6 | } | ||
| 7 | |||
| 8 | description = { | ||
| 9 | summary = "Fast JSON encoding/parsing support for Lua", | ||
| 10 | detailed = [[ | ||
| 11 | Lua CJSON provides fast UTF-8 JSON parsing/encoding support for Lua, | ||
| 12 | and has no external dependencies. | ||
| 13 | ]], | ||
| 14 | homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php", | ||
| 15 | license = "MIT" | ||
| 16 | } | ||
| 17 | |||
| 18 | dependencies = { | ||
| 19 | "lua >= 5.1" | ||
| 20 | } | ||
| 21 | |||
| 22 | build = { | ||
| 23 | type = "builtin", | ||
| 24 | modules = { | ||
| 25 | cjson = { | ||
| 26 | sources = { "lua_cjson.c", "strbuf.c" }, | ||
| 27 | -- Optional workarounds: | ||
| 28 | -- USE_POSIX_USELOCALE: Linux, OSX. Thread safe. Recommended. | ||
| 29 | -- USE_POSIX_SETLOCALE: Works on all ANSI C platforms. May be used when | ||
| 30 | -- thread-safety isn't required. | ||
| 31 | -- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required | ||
| 32 | -- on some Solaris platforms. | ||
| 33 | defines = { | ||
| 34 | "USE_POSIX_SETLOCALE", | ||
| 35 | -- LuaRocks does not support platform specific configuration for Solaris. | ||
| 36 | -- Uncomment the line below on Solaris platforms. | ||
| 37 | -- "USE_INTERNAL_ISINF" | ||
| 38 | } | ||
| 39 | } | ||
| 40 | }, | ||
| 41 | -- Override default build options (per platform) | ||
| 42 | platforms = { | ||
| 43 | linux = { modules = { cjson = { defines = { | ||
| 44 | [1] = "USE_POSIX_USELOCALE" | ||
| 45 | } } } }, | ||
| 46 | macosx = { modules = { cjson = { defines = { | ||
| 47 | [1] = "USE_POSIX_USELOCALE" | ||
| 48 | } } } } | ||
| 49 | }, | ||
| 50 | copy_directories = { "tests" } | ||
| 51 | } | ||
| 52 | |||
| 53 | -- vi:ai et sw=4 ts=4: | ||
