Created attachment 315979 [details, diff] patch to add a configure check for mozjs187 spidermonkey-1.8.7 changed the base lib name again, and so gxine's configure (specifically, m4/_js.m4) needs to be patched so that it finds the lib again. Reportedly, although there were API changes, many other packages seem to work with 1.8.7 without issue as long as they were compatible with 1.8.5 -- dev-libs/gjs, media-gfx/freewrl, sys-auth/polkit are a few examples. I would have done runtime-tests of gxine but I do not have a use case that would test its javascript functionality. The attached patch fixes the build issue. Please apply so that spidermonkey-1.8.7 can be unmasked in the neat future. (PS, since this is a build-system only patch, I assume it can be applied in place without revbump)
Seems to work here. http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/gxine/gxine-0.5.907.ebuild?r1=1.6&r2=1.7