Hi, here is an ebuild for luasocket 2.0.2. The original makefile is very bad, so some sed is needed on it, and it requires the deprecated USEflag on lua to link fine.
Created attachment 167171 [details] luasocket-2.0.2.ebuild
Are you sure the app has no runtime dependency on lua?
Hm... you need lua for using it, but the .so files seems not to be linked to lua. (strange that it's complaining on missing lua functions when compiling if it's not linked to, btw...). So I'm not sure about runtime dependency...
But if you see the luafilesystem ebuild for example, it doesn't have any runtime dependency.
If you need lua for using it, it is a runtime dependency. If you dont place it in RDEPEND, the package manager would be allowed to remove it after compilation and you would not be able to use it. ;-) So in this case, you can just remove the RDEPEND line. If there is no RDEPEND, the package manager assumes that RDEPEND="${DEPEND}"
Ha ok, I thought that RDEPEND would be empty if not present. /me should re-read ebuild(5)...
I've imported this into portage because I needed it as dependency of another package, thanks!