1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
local _MODREV, _SPECREV = '34.0.4', '-1'
package = 'luaposix'
version = _MODREV .. _SPECREV
description = {
summary = 'Lua bindings for POSIX',
detailed = [[
A library binding various POSIX APIs. POSIX is the IEEE Portable
Operating System Interface standard. luaposix is based on lposix.
]],
homepage = 'http://github.com/luaposix/luaposix/',
license = 'MIT/X11',
}
dependencies = {
'bit32',
'lua >= 5.1, < 5.4',
'std.normalize',
}
source = {
url = 'http://github.com/luaposix/luaposix/archive/v' .. _MODREV .. '.zip',
dir = 'luaposix-' .. _MODREV,
}
build = {
type = 'command',
build_command = '$(LUA) build-aux/luke'
.. ' package="' .. package .. '"'
.. ' version="' .. _MODREV .. '"'
.. ' PREFIX="$(PREFIX)"'
.. ' LUA="$(LUA)"'
.. ' LUA_INCDIR="$(LUA_INCDIR)"'
.. ' CFLAGS="$(CFLAGS)"'
.. ' LIBFLAG="$(LIBFLAG)"'
.. ' LIB_EXTENSION="$(LIB_EXTENSION)"'
.. ' OBJ_EXTENSION="$(OBJ_EXTENSION)"'
.. ' INST_LIBDIR="$(LIBDIR)"'
.. ' INST_LUADIR="$(LUADIR)"'
,
install_command = '$(LUA) build-aux/luke install --quiet'
.. ' INST_LIBDIR="$(LIBDIR)"'
.. ' LIB_EXTENSION="$(LIB_EXTENSION)"'
.. ' INST_LUADIR="$(LUADIR)"'
,
}
if _MODREV == 'git' then
dependencies[#dependencies + 1] = 'ldoc'
source = {
url = 'git://github.com/luaposix/luaposix.git',
}
end
|