libquvi tries to call lua_open, which was deprecated in lua 5.1 and removed in lua 5.2. The lua code tries to use table.getn and string.gfind, which were replaced. https://sourceforge.net/apps/trac/quvi/ticket/89 has patches fixing both (yet to be reviewed by upstream, though). They should be safe on lua 5.1 too, but I've yet to test that to make sure.
*** Bug 407131 has been marked as a duplicate of this bug. ***
*** Bug 407133 has been marked as a duplicate of this bug. ***
Should be fixed in libquvi-scripts-0.4.4 and libquvi-0.4.1.
Doesn't this fix mean that these versions could be used with dev-land/lua-5.1[-deprecated]? I can compile them successfully.
That seems plausible, but I cannot guarantee it. Do note I only fixed obvious breakage (compile-time failure and a very easy to hit run-time failure): there may be more subtle issues I overlooked.