CMake based Lua distribution for Windows, OSX, Linux and Unix systems.
LuaDist is a package manager for the Lua language.
$ luadist install luaexpat
$ lua
> require "lxp"
It supports deployment into standalone directories.
$ luadist /home/my_lua install lua luasocket
$ ls /home/my_lua
bin lib include share
$ ls /home/my_lua/bin
lua luac
$ ls /home/my_lua/lib
liblua51.so
$ /home/my_lua/bin/lua
> require "socket"
Follow the installation instructions on Wiki.
Use LuaDist functionality from Lua.
$ lua
> local ld = require "dist"
> ld.install("luaexpat")
Install modules manually so you can integrate them into your build process.
$ git clone git://github.com/LuaDist/lua.git lua
$ cd lua
$ mkdir _build && cd _build
$ cmake .. # or use ccmake or cmake-gui
$ make install # or cmake --build . --target install
Most LuaDist modules are not that complex:
project ( lpeg C )
cmake_minimum_required ( VERSION 2.6 )
include ( dist.cmake )
install_lua_module ( lpeg lpeg.c )
install_lua_module ( re re.lua )
add_lua_test ( test.lua )
install_doc ( lpeg.html )
install_test ( test.lua )
LuaDist is fully capable package manager that can install LuaJIT, SciTE and other Lua related software.