On Tue, Jul 30, 2013 at 8:20 AM, steve donovan <[email protected]>wrote:

> On Mon, Jul 29, 2013 at 8:20 PM, Hisham <[email protected]> wrote:
>
>> complex = "complex.$(LIB_EXTENSION)"
>>
>
Unfortunately, this did not work with this LR installation (2.0.12).

lhf's tarballs tend to pack docs and tests in a LR-unfriendly way (I asked
him once about this, and he said (very politely) that this was an issue for
the packager.)

But, the lakefile can handle this by making the target also copy the other
files to an appropriate subdirectory:

build = {
  type = "command",
  build_command = 'lake',
  extra_files = { lakefile = [[
    default {
        file.group{src='test.lua',odir='test'},
        file.group{src='README',odir='doc'},
        c99.shared{'complex',src='lcomplex',needs='lua'},
    }
  ]]},
  copy_directories = {'test','doc'},
  install = { lib = {
        complex = "complex.so"
  }}
}

Here (just as we were discussing with custom builders) lake becomes a
dependency;  when we're thinking of rockspec vs 2 we might consider
'build_dependencies' to avoid lake being pulled in for binary downloads.

steve d.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to