diff options
Diffstat (limited to 'luasystem-0.1.1-0.rockspec')
-rw-r--r-- | luasystem-0.1.1-0.rockspec | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/luasystem-0.1.1-0.rockspec b/luasystem-0.1.1-0.rockspec new file mode 100644 index 0000000..40c8b74 --- /dev/null +++ b/luasystem-0.1.1-0.rockspec | |||
@@ -0,0 +1,47 @@ | |||
1 | package = 'luasystem' | ||
2 | version = '0.1.1-0' | ||
3 | source = { | ||
4 | url = "https://github.com/o-lim/luasystem/archive/v0.1.1.tar.gz", | ||
5 | dir = "luasystem-0.1.1" | ||
6 | } | ||
7 | description = { | ||
8 | summary = 'Platform independent system calls for Lua.', | ||
9 | detailed = [[ | ||
10 | Adds a Lua API for making platform independent system calls. | ||
11 | ]], | ||
12 | homepage = 'http://olivinelabs.com/luasystem/', | ||
13 | license = 'MIT <http://opensource.org/licenses/MIT>' | ||
14 | } | ||
15 | dependencies = { | ||
16 | 'lua >= 5.1', | ||
17 | } | ||
18 | |||
19 | local function make_platform(plat) | ||
20 | local defines = { | ||
21 | unix = { }, | ||
22 | macosx = { }, | ||
23 | win32 = { }, | ||
24 | mingw32 = { "WINVER=0x0501" }, | ||
25 | } | ||
26 | return { | ||
27 | modules = { | ||
28 | ['system.core'] = { | ||
29 | sources = { 'src/core.c', 'src/compat.c', 'src/time.c', }, | ||
30 | defines = defines[plat], | ||
31 | }, | ||
32 | }, | ||
33 | } | ||
34 | end | ||
35 | |||
36 | build = { | ||
37 | type = 'builtin', | ||
38 | platforms = { | ||
39 | unix = make_platform('unix'), | ||
40 | macosx = make_platform('macosx'), | ||
41 | win32 = make_platform('win32'), | ||
42 | mingw32 = make_platform('mingw32'), | ||
43 | }, | ||
44 | modules = { | ||
45 | ['system.init'] = 'system/init.lua', | ||
46 | }, | ||
47 | } | ||