diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-12-15 19:04:55 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-12-15 19:04:55 +1030 |
commit | 1d8eba4368aa53ad5e534b68873d24b3ee69cc51 (patch) | |
tree | b89337163d96a0f48e0eda487ef36aa48e1cc1cd /lua-cjson-1.0devel-1.rockspec | |
parent | 353784724505b23539aa693bd2aed3932493ed62 (diff) | |
download | lua-cjson-1d8eba4368aa53ad5e534b68873d24b3ee69cc51.tar.gz lua-cjson-1d8eba4368aa53ad5e534b68873d24b3ee69cc51.tar.bz2 lua-cjson-1d8eba4368aa53ad5e534b68873d24b3ee69cc51.zip |
Automate package releases with build-packages.sh
build-packages.sh has several advantages:
- Automatically bumps version numbers
- Builds HTML documentation on the fly
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: | ||