After quite some fiddling I managed to hack the ebuild far enough to get it compiling. After initially getting only gtk and not motif/mozilla/kdebindings working I have it now all working ;-)
Created attachment 41396 [details, diff] A diff to the pre1 version of the ebuild Quite some hacks getting eclipse to work ;-)
Great! I'll have a look tomorrow. Thanks a lot!
Created attachment 41428 [details, diff] New version of the patch The old patch is broken. In someway the omission of an include path for jni.h caused no problem on home system. Trying to compile on my office computer showed that this omission caused a problem. The new patch fixes this.
Even better:) I have rewritten 3.0.1-r1 today, so that the ebuild in general is a lot cleaner. I will try to merge your stuff with the rewrite. If, however, you decide to make another update to your patch, please consider basing it on 3.0.1-r1 instead.
I agree with you that the ebuild is quite ugly. I'll probably not make a new version (as I have it installed now), but I could attach a diff to the 3.0.1 version. I don't think however that it would help you much ;-)
Merged and committed. Try the _pre2.