aboutsummaryrefslogtreecommitdiffstats
path: root/community/luarocks/config.lua
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-01-01 18:01:21 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-01-01 18:03:27 +0100
commit78738e70d186a73de523a72de316d7acd30a65b2 (patch)
tree87013c267fe13b0a7b7cf05174996e326536fd86 /community/luarocks/config.lua
parent40f16916072f70bb59b15390136f6a2f781e1348 (diff)
downloadaports-78738e70d186a73de523a72de316d7acd30a65b2.tar.gz
aports-78738e70d186a73de523a72de316d7acd30a65b2.tar.bz2
aports-78738e70d186a73de523a72de316d7acd30a65b2.tar.xz
community/luarocks: add support for /usr/share/lua/common
Diffstat (limited to 'community/luarocks/config.lua')
-rw-r--r--community/luarocks/config.lua17
1 files changed, 14 insertions, 3 deletions
diff --git a/community/luarocks/config.lua b/community/luarocks/config.lua
index 2b6c029f94..25e6d11717 100644
--- a/community/luarocks/config.lua
+++ b/community/luarocks/config.lua
@@ -1,6 +1,17 @@
rocks_trees = {
- { name = 'user', root = home..'/.luarocks' },
- { name = 'distro-modules', root = '/usr' },
- { name = 'system', root = '/usr/local' },
+ -- User-local Lua and Lua/C modules.
+ { name = 'user',
+ root = home..'/.luarocks' },
+ -- System-wide Lua and Lua/C modules for specific Lua version installed by apk.
+ { name = 'distro-modules',
+ root = '/usr' },
+ -- System-wide Lua modules compatible with Lua 5.1-5.3 installed by apk.
+ { name = 'distro-modules-common',
+ root = '/usr',
+ lua_dir = '/usr/share/lua/common',
+ rocks_dir = '/usr/lib/luarocks/rocks-common' },
+ -- System-wide Lua and Lua/C modules installed by user.
+ { name = 'system',
+ root = '/usr/local' },
}
deps_mode = 'all'