The emake command in src_compile() has the variable GYPFLAGS as an argument. The problem is that (on my box at least) the value passed as the argument is treated as the final value (it overwrites whatever the Makefile sets), which results in no shared library being built. If you set the variable before make is executed then it's okay. Reproducible: Always Shell is zsh-5.0.0, make is 3.82-r3.
You're right; GYPFLAGS is intended to be set in the environment, not as a command line argument. Since it was only present in the live ebuild, I just removed it entirely.
upstream told me to do it like that, but whatever
That's weird advice. I really don't see how that could have worked, unless the Makefile changed. Just let me know if you want to make another attempt at supporting prefix.
s/prefix/macosx without targetting an ancient ABI/. Sorry for breaking the builds here, I think I can live with it doing stupid things. I hope I can move rails away from using v8, since it's a can of worms that needs to be avoided like pest anyway.