dev-java/commons-discovery does not build with jdk 1.5 due to an 'enum' issue. I created a small patch and an overleay ebuild to work around this problem. It's attached to this bug report.
Created attachment 80088 [details, diff] the patch which goes into the files directory
Created attachment 80089 [details] the modified ebuild to include the patch
*** This bug has been marked as a duplicate of 119661 ***