graphviz-2.8-r1 has support for plenty of languages, but most of them are automatically detected by configure. The output of ./configure --help shows that it is possible to --disable guile, java, lua, ocaml, perl, php, python, ruby, sharp, io. I guess that all but the last two should be explicitly stated with an use flag.
Created attachment 97813 [details, diff] graphviz-useflags.patch I'm not sure what I'm doing, nor that this patch is working, but here it is anyway. Adds useflags for guile, java, lua, ocaml, perl, php, python and ruby. Disables io and sharp. On a further note, shouldn't the tcltk use flag be renamed to tcl. And shouldn't it be "use_enable tcl" instead of "use_with". ./configure --help does not mention "tk" at all.
This won't work, because there aren't the switch to enable those. I'll attach a patch that adds those, that actually works (used to use it in my overlay).
Argh sorry I confused myself with graphviz 2.6.. the ebuild patch should be enough now (2.6 needed the infamous patch).
Just one hint, IMO it is useful to split up the "tcltk" USE flag to "tcl" and "tk" USE flags. I think this change was done on (nearly) all other ebuilds as well.
*graphviz-2.8-r2 (24 Sep 2006) 24 Sep 2006; Luca Barbato <lu_zero@gentoo.org> +graphviz-2.8-r2.ebuild: fix libtool/autotools deps and language binding bug #142712 and bug #148733, thanks to the respective reporters Closing.