aboutsummaryrefslogtreecommitdiff
path: root/luasystem-0.1.1-0.rockspec
diff options
context:
space:
mode:
Diffstat (limited to 'luasystem-0.1.1-0.rockspec')
-rw-r--r--luasystem-0.1.1-0.rockspec47
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 @@
1package = 'luasystem'
2version = '0.1.1-0'
3source = {
4 url = "https://github.com/o-lim/luasystem/archive/v0.1.1.tar.gz",
5 dir = "luasystem-0.1.1"
6}
7description = {
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}
15dependencies = {
16 'lua >= 5.1',
17}
18
19local 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 }
34end
35
36build = {
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}