On 11 August 2013 21:55, Pierre Chapuis <catw...@archlinux.us> wrote: > Hello list, > > I was wondering if LuaRocks has a way to represent alternative > dependencies. For instance, I have a library where I need something to > compute a MD5 sum, but I support different libraries for that (md5, > crypto, digest). Same thing for JSON parser: I may want luajson *or* > cjson. > > How do you represent this kind of requirement in a rockspec? > > -- > Pierre Chapuis > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Luarocks-developers mailing list > Luarocks-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/luarocks-developers
I asked a similar question a while back: http://sourceforge.net/mailarchive/message.php?msg_id=30554922 Basically, the only way to support alternative dependencies is to create a rockspec for each set of dependencies like lrexlib does for its various backends. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers