Hi list,

I'm trying to write rockspec files for some of my modules. This is my
first attempt at writing rockspecs and I have a few questions.

One of my modules has optional dependencies, that is, it can use some
other modules (struct and luabitop), but it works perfectly (with some
features unavailable) if those dependencies are missing. To detect
presence, I simply pcall require. How can I express that in a
rockspec?

Also the main module of one of my libraries is written in Lua, with a
helper module written in C, for performance improvement. However the C
module is not mandatory, pure Lua version of each function is provided
in the main module. How can I tell LuaRocks that if C module
compilation is available it should build it, and otherwise just ignore
the C module? It's like an optional dependencies, except I provide the
sources (and I really depend on the availability of a build
toolchain).

Doub.

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to