From 1d8eba4368aa53ad5e534b68873d24b3ee69cc51 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Thu, 15 Dec 2011 19:04:55 +1030 Subject: Automate package releases with build-packages.sh build-packages.sh has several advantages: - Automatically bumps version numbers - Builds HTML documentation on the fly --- lua-cjson-1.0devel-1.rockspec | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 lua-cjson-1.0devel-1.rockspec (limited to 'lua-cjson-1.0devel-1.rockspec') 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 @@ +package = "lua-cjson" +version = "1.0devel-1" + +source = { + url = "http://www.kyne.com.au/~mark/software/lua-cjson-1.0devel.zip", +} + +description = { + summary = "Fast JSON encoding/parsing support for Lua", + detailed = [[ + Lua CJSON provides fast UTF-8 JSON parsing/encoding support for Lua, + and has no external dependencies. + ]], + homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php", + license = "MIT" +} + +dependencies = { + "lua >= 5.1" +} + +build = { + type = "builtin", + modules = { + cjson = { + sources = { "lua_cjson.c", "strbuf.c" }, +-- Optional workarounds: +-- USE_POSIX_USELOCALE: Linux, OSX. Thread safe. Recommended. +-- USE_POSIX_SETLOCALE: Works on all ANSI C platforms. May be used when +-- thread-safety isn't required. +-- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required +-- on some Solaris platforms. + defines = { + "USE_POSIX_SETLOCALE", +-- LuaRocks does not support platform specific configuration for Solaris. +-- Uncomment the line below on Solaris platforms. +-- "USE_INTERNAL_ISINF" + } + } + }, + -- Override default build options (per platform) + platforms = { + linux = { modules = { cjson = { defines = { + [1] = "USE_POSIX_USELOCALE" + } } } }, + macosx = { modules = { cjson = { defines = { + [1] = "USE_POSIX_USELOCALE" + } } } } + }, + copy_directories = { "tests" } +} + +-- vi:ai et sw=4 ts=4: -- cgit v1.2.3-55-g6feb