The current lua ebuild actually downloads 4.0.1 and installs it fine, but I think it makes more sense to track the actual version numbers of Lua correctly. So here is a build for lua 4.0.1.
Created attachment 7506 [details] lua-4.0.1.ebuild
SRC_URI should be changed accordingly and the tarball moved to ibiblio, too.
committed