aboutsummaryrefslogtreecommitdiff
path: root/binary/luaposix-35.1-1.rockspec
diff options
context:
space:
mode:
Diffstat (limited to 'binary/luaposix-35.1-1.rockspec')
-rw-r--r--binary/luaposix-35.1-1.rockspec61
1 files changed, 61 insertions, 0 deletions
diff --git a/binary/luaposix-35.1-1.rockspec b/binary/luaposix-35.1-1.rockspec
new file mode 100644
index 00000000..1940c755
--- /dev/null
+++ b/binary/luaposix-35.1-1.rockspec
@@ -0,0 +1,61 @@
1local _MODREV, _SPECREV = '35.1', '-1'
2
3package = 'luaposix'
4version = _MODREV .. _SPECREV
5
6description = {
7 summary = 'Lua bindings for POSIX',
8 detailed = [[
9 A library binding various POSIX APIs. POSIX is the IEEE Portable
10 Operating System Interface standard. luaposix is based on lposix.
11 ]],
12 homepage = 'http://github.com/luaposix/luaposix/',
13 license = 'MIT/X11',
14}
15
16dependencies = {
17 'lua >= 5.1, < 5.5',
18}
19
20do
21 -- We only want to install a bit32 module for Lua 5.1.
22 local _ENV={package=nil, dependencies=dependencies}
23 if package then
24 dependencies[#dependencies + 1] = 'bit32'
25 end
26end
27
28source = {
29 url = 'http://github.com/luaposix/luaposix/archive/v' .. _MODREV .. '.zip',
30 dir = 'luaposix-' .. _MODREV,
31}
32
33build = {
34 type = 'command',
35 build_command = '$(LUA) build-aux/luke'
36 .. ' package="' .. package .. '"'
37 .. ' version="' .. _MODREV .. '"'
38 .. ' PREFIX="$(PREFIX)"'
39 .. ' LUA="$(LUA)"'
40 .. ' LUA_INCDIR="$(LUA_INCDIR)"'
41 .. ' CFLAGS="$(CFLAGS)"'
42 .. ' LIBFLAG="$(LIBFLAG)"'
43 .. ' LIB_EXTENSION="$(LIB_EXTENSION)"'
44 .. ' OBJ_EXTENSION="$(OBJ_EXTENSION)"'
45 .. ' INST_LIBDIR="$(LIBDIR)"'
46 .. ' INST_LUADIR="$(LUADIR)"'
47 ,
48 install_command = '$(LUA) build-aux/luke install --quiet'
49 .. ' INST_LIBDIR="$(LIBDIR)"'
50 .. ' LIB_EXTENSION="$(LIB_EXTENSION)"'
51 .. ' INST_LUADIR="$(LUADIR)"'
52 ,
53}
54
55if _MODREV == 'git' then
56 dependencies[#dependencies + 1] = 'ldoc'
57
58 source = {
59 url = 'git://github.com/luaposix/luaposix.git',
60 }
61end