lua-cjson-2.1devel-1.rockspec 1.5 KB

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