Please verify your dodoc statements, and make sure they are not being executed on directories. See the blocked bug for more details.
Fixed by moving to EAPI=4 in ruby-opengl-0.60.1-r2. Also fixed LDFLAGS being ignored.