Skip to content

Commit

Permalink
feat(core): Make it easier to add project-specific LuaRocks trees as …
Browse files Browse the repository at this point in the history
…dependencies
  • Loading branch information
alerque committed Oct 2, 2023
1 parent 83f93ce commit 796b344
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/pathsetup.lua.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ local function extendPaths (path, ours)
prependCPath(path .. "/justenough/.libs")
end
prependPath(path .. "/lua-libraries")
if "@SYSTEM_LUAROCKS_FALSE@" == "" then -- see ./configure --with[out]-system-luarocks
prependCPath(path .. "/lua_modules/lib/lua/" .. luaversion)
prependPath(path .. "/lua_modules/share/lua/" .. luaversion)
end
prependCPath(path .. "/lib/lua/" .. luaversion)
prependPath(path .. "/share/lua/" .. luaversion)
else
prependCPath(path .. "/sile")
prependPath(path .. "/sile")
Expand All @@ -58,6 +56,9 @@ package.path = table.concat(luapath, ";")

extendPaths("@SILE_PATH@", true)
extendPaths("@SILE_LIB_PATH@", true)
if "@SYSTEM_LUAROCKS_FALSE@" == "" then -- see ./configure --with[out]-system-luarocks
extendPaths("@SILE_PATH@/lua_modules")
end

package.path = table.concat(extpath, ";") .. ";" .. package.path

Expand Down

0 comments on commit 796b344

Please sign in to comment.