diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-06-10 22:39:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 09:39:55 +0800 |
| commit | c92ecda53337490633c95e6ae00e322dc9ad1fb8 (patch) | |
| tree | 47185f92938547b2c70fcf00b02c9acef772ac9c /lua-cjson-2.1.0.14-1.rockspec | |
| parent | d20576d5cef3d7aa3b6d62db7aee9d9d5f03cc70 (diff) | |
| download | lua-cjson-c92ecda53337490633c95e6ae00e322dc9ad1fb8.tar.gz lua-cjson-c92ecda53337490633c95e6ae00e322dc9ad1fb8.tar.bz2 lua-cjson-c92ecda53337490633c95e6ae00e322dc9ad1fb8.zip | |
feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed.
Co-Authored-By: Hisham Muhammad <hisham@gobolinux.org>
Co-authored-by: Mark Pulford <mark@kyne.com.au>
Co-authored-by: ichenq <ichenq@gmail.com>
Co-authored-by: Cloud Wu <cloudwu@gmail.com>
Co-authored-by: caijietao <t0350.prog@gmail.com>
Co-authored-by: actboy168 <actboy168@gmail.com>
Co-authored-by: wudeng <wudeng256@gmail.com>
Co-authored-by: caiyiheng <rangercyh@qq.com>
Diffstat (limited to 'lua-cjson-2.1.0.14-1.rockspec')
| -rw-r--r-- | lua-cjson-2.1.0.14-1.rockspec | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/lua-cjson-2.1.0.14-1.rockspec b/lua-cjson-2.1.0.14-1.rockspec new file mode 100644 index 0000000..4376a08 --- /dev/null +++ b/lua-cjson-2.1.0.14-1.rockspec | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | package = "lua-cjson" | ||
| 2 | version = "2.1.0.14-1" | ||
| 3 | |||
| 4 | source = { | ||
| 5 | url = "git+https://github.com/openresty/lua-cjson", | ||
| 6 | tag = "2.1.0.14", | ||
| 7 | } | ||
| 8 | |||
| 9 | description = { | ||
| 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 | |||
| 23 | dependencies = { | ||
| 24 | "lua >= 5.1" | ||
| 25 | } | ||
| 26 | |||
| 27 | build = { | ||
| 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: | ||
