Attached is the modified ebuild required to build new dev-ml/ocamlnet. It needed a minor tweak (another variable needed overloading during install). I also changed keywords and dependencies to reflect my testing setting.
Created attachment 32368 [details] ocamlnet-0.97.1.ebuild
I know, i actually have a lot of updated ebuilds that are waiting for bug #39246's solution to be implemented (including ocamlnet-0.97.1 and pxp-1.1.94.1), if you have got some time, please test & report.
Great to see that there is someone still alive in Gentoo's Ocaml land ;-) After looking at ebuild updates I though that nobody maintains anything ocaml anymore (not that I gave it much research, though ;). Actually the very reason I played in upgrading libraries was that bug... recent ocaml update caused mysterious errors in my compiles. Thanks for pointing me to that bug. This is an interesting problem and I hope it would be resolved gracefully. As to testing your ebuilds and your proposed solution, I don't have much time ATM, but I'll try to take a closer (testing) look when I manage to have a moment.
The ebuild works fine for me on x86. (Well, my own does, and it's exactly the same modulo whitespace).