On 5 March 2013 06:27, Ildar Mulyukov <il...@users.sourceforge.net> wrote: > On 04.03.2013 11:20:43, Choonster TheMage wrote: >> Hello, >> >> I'm in the process of developing a library that has some slightly >> complex dependencies. I want it to depend on Penlight (but ideally not >> LuaFileSystem) and one of several compression libraries to be chosen >> by the developer using the library (but ideally not all of them). >> >> Is there any way to represent these dependencies in a Rockspec, or is >> it too complex for the system to handle? I'd like to have the library >> available through LuaRocks when it's done, but it looks like I may >> have to have users manually manage the dependencies. > > A typical program may have several build-time options (switches) for > features and backends/etc. A specfile (e.g. RPM or DEB) defines the set > of options that is used to build the program. So this set is > (explicitly) fixed in a specfile. > > Sometimes a package builder may provide a mechanism to change this set > without changing the spec, e.g.: > $ rpmbuild -bb --enable sqlite --disable mysql aProgram.spec > > Thinking of LR as a package manager/builder you have exactly the > situation described. Though Hisham still didn't agree with this point > of view. ))
Ah, I don't think we're in disagreement... what part exactly are you referring to? LR does not have features like --enable or "use flags" to customize builds (yet? it's tricky to get it right as it makes testing all combinations harder), but I understand that they're useful and I certainly see LR as a package manager. And I think you're right in that a certain default configuration is fixed by a (rock)spec file. So, it looks like we agree more than we disagree (that is, if we disagree in something at all! :) ). -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers