Ladies and gentlemen, Here is my first attempt on creating an eclass which would handle installation of Lua modules for multiple implementations. As some of you are aware of, the lack of such an eclass has been a major issue for our efforts on slotting dev-lang/lua.
With many, many thanks to mgorny and everyone else who has worked on python-r1.eclass, to whom lua.eclass bears, ahem, striking resemblance. At the moment this is only really useful for installing Lua modules but assuming it doesn't turn out to be a total failure, I'll work on single-target support as the next step. We should probably think about adding LuaJIT support at some point too. Comments are very much welcome!