diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 15:21:16 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 22:54:07 -0300 |
| commit | 98d1f1da856ab59cf8355c1e2e11e3c0eb954fb2 (patch) | |
| tree | aeb6d9e6f45423cf5698930aea2bc55a8d721fa9 /binary/luaposix-34.0.4-1.rockspec | |
| parent | cc4c9f6321ebaaf71f8c9c26bd30967e93bd2cbb (diff) | |
| download | luarocks-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.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 | ||
