On Fri, Sep 16, 2011 at 2:44 PM, Reuben Thomas <r...@sc3d.org> wrote:
> On Sep 16, 2011 4:52 PM, "Hisham" <hisham...@gmail.com> wrote:
>>
>
>> LUADIR, like PREFIX, is generated based on the rockspec you are
>> building. But do you really need to customize it? During the
>> deployment phase, all files installed in LUADIR are moved to the
>> proper $PREFIX/share/lua/5.1 (relative to the prefix of the tree
>> LuaRocks is working with).
>
> Really I need to have an EXEC-PREFIX, as I am using a multiarch tree. Hence,
> LIBDIR and LUADIR have different prefixes: the former is
> /home/rrt/local/ARCH/lib and the latter is /home/rrt/local/share, in each
> case with appropriate /lua/5.1 suffix.

You should be able to configure your luarocks/config.lua file with
something like:

rocks_trees = {
   {
      root = home.."/local",
      bin_dir = home.."/local/arch/bin",
      lib_dir = home.."/local/arch/lib",
      lua_dir = home.."/local/share",
   }
}

Unfortunately, LuaRocks does not export its arch variable to
config.lua. In any case, I don't know if its own syntax for arch (e.g.
"linux-x86") would be the same as the one you're using. A workaround
would be to use separate config files (luarocks looks up the
$LUAROCKS_CONFIG environment variable; you could set that up
appropriately in your shell profile).

-- 
-- Hisham
http://hisham.hm/ - http://colorbleed.com.br/

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to