Created attachment 323276 [details, diff] libreoffice-3.6.9999.ebuild.diff ebuild needs to add virtual/glu to {R}DEPEND to not fail in configure stage with >=mesa-9.0, submitting patch for 3.6.9999
Fixed in cvs, I adapted your patch to be bit cleaner wrt whitespace.