diff options
Diffstat (limited to 'binary/luaposix-34.0.4-1.rockspec')
-rw-r--r-- | binary/luaposix-34.0.4-1.rockspec | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/binary/luaposix-34.0.4-1.rockspec b/binary/luaposix-34.0.4-1.rockspec new file mode 100644 index 00000000..490715d5 --- /dev/null +++ b/binary/luaposix-34.0.4-1.rockspec | |||
@@ -0,0 +1,55 @@ | |||
1 | local _MODREV, _SPECREV = '34.0.4', '-1' | ||
2 | |||
3 | package = 'luaposix' | ||
4 | version = _MODREV .. _SPECREV | ||
5 | |||
6 | description = { | ||
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 | |||
16 | dependencies = { | ||
17 | 'bit32', | ||
18 | 'lua >= 5.1, < 5.4', | ||
19 | 'std.normalize', | ||
20 | } | ||
21 | |||
22 | source = { | ||
23 | url = 'http://github.com/luaposix/luaposix/archive/v' .. _MODREV .. '.zip', | ||
24 | dir = 'luaposix-' .. _MODREV, | ||
25 | } | ||
26 | |||
27 | build = { | ||
28 | type = 'command', | ||
29 | build_command = '$(LUA) build-aux/luke' | ||
30 | .. ' package="' .. package .. '"' | ||
31 | .. ' version="' .. _MODREV .. '"' | ||
32 | .. ' PREFIX="$(PREFIX)"' | ||
33 | .. ' LUA="$(LUA)"' | ||
34 | .. ' LUA_INCDIR="$(LUA_INCDIR)"' | ||
35 | .. ' CFLAGS="$(CFLAGS)"' | ||
36 | .. ' LIBFLAG="$(LIBFLAG)"' | ||
37 | .. ' LIB_EXTENSION="$(LIB_EXTENSION)"' | ||
38 | .. ' OBJ_EXTENSION="$(OBJ_EXTENSION)"' | ||
39 | .. ' INST_LIBDIR="$(LIBDIR)"' | ||
40 | .. ' INST_LUADIR="$(LUADIR)"' | ||
41 | , | ||
42 | install_command = '$(LUA) build-aux/luke install --quiet' | ||
43 | .. ' INST_LIBDIR="$(LIBDIR)"' | ||
44 | .. ' LIB_EXTENSION="$(LIB_EXTENSION)"' | ||
45 | .. ' INST_LUADIR="$(LUADIR)"' | ||
46 | , | ||
47 | } | ||
48 | |||
49 | if _MODREV == 'git' then | ||
50 | dependencies[#dependencies + 1] = 'ldoc' | ||
51 | |||
52 | source = { | ||
53 | url = 'git://github.com/luaposix/luaposix.git', | ||
54 | } | ||
55 | end | ||