aboutsummaryrefslogtreecommitdiff
path: root/binary/luaposix-34.0.4-1.rockspec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-07-01 15:21:16 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-07-01 22:54:07 -0300
commit98d1f1da856ab59cf8355c1e2e11e3c0eb954fb2 (patch)
treeaeb6d9e6f45423cf5698930aea2bc55a8d721fa9 /binary/luaposix-34.0.4-1.rockspec
parentcc4c9f6321ebaaf71f8c9c26bd30967e93bd2cbb (diff)
downloadluarocks-98d1f1da856ab59cf8355c1e2e11e3c0eb954fb2.tar.gz
luarocks-98d1f1da856ab59cf8355c1e2e11e3c0eb954fb2.tar.bz2
luarocks-98d1f1da856ab59cf8355c1e2e11e3c0eb954fb2.zip
Unix: new build system
* Reworked configure script * Now passes shellcheck * New Makefile for Unix * Simplified `make` and `make install` targets * Simplified `make bootstrap` target * New targets `make binary` and `make install-binary` build and install an all-in-one binary of LuaRocks
Diffstat (limited to 'binary/luaposix-34.0.4-1.rockspec')
-rw-r--r--binary/luaposix-34.0.4-1.rockspec55
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 @@
1local _MODREV, _SPECREV = '34.0.4', '-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 'bit32',
18 'lua >= 5.1, < 5.4',
19 'std.normalize',
20}
21
22source = {
23 url = 'http://github.com/luaposix/luaposix/archive/v' .. _MODREV .. '.zip',
24 dir = 'luaposix-' .. _MODREV,
25}
26
27build = {
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
49if _MODREV == 'git' then
50 dependencies[#dependencies + 1] = 'ldoc'
51
52 source = {
53 url = 'git://github.com/luaposix/luaposix.git',
54 }
55end