On Sat, May 21, 2011 at 5:14 PM, Peter Odding <[email protected]> wrote:
> Defining platform specific dependencies would be awesome but even just a
> 'failed' key would go a long way towards being more user friendly!
Hisham recently added a more elaborate message when the external
dependencies check fails. I also like the 'failed' key because it's a
way to deliver a _specific_ helpful message.
Related to the 'how far should we go' question: the way forward (I
think) is more plugin customization hooks. LR already has these: for
instance the build type ends up as a require('luarocks.build.'..type)
and so it's quite possible to deliver new build types as rocks. So
one way to extend the powers of external_dependencies is to open a new
namespace for plugins.
external_dependencies = {
FOO = {
package = {
apt = 'foo-1.2',
}
}
}
OK, so LR would then look for 'luarocks.external_deps.package'. This
can be delivered as a rock, and so can be delivered as a _dependency_
of a rock.
steve d.
_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers