Since first 10.5x alpha builds Opera needs neither Qt nor GTK+ toolkit to run, just mimics one of them, but ebuilds define strict dependency on =x11-libs/gtk+-2*. I think we could request a list of required dependecies from Opera devs.
It's not quite redundant - the default file dialogs are horrible. What I will do is introduce the gtk and kde USE flags and make the RDEPEND entries depend on those USE flags.
When the opera 10.50 builds started coming, only the gtk backend was finished as </usr/[LIBDIR]/opera/liboperagtk.so>. There was no choice of a proper backend so I chose to RDEPEND on the output of both that file and the opera binary itself. Since a couple of versions there is a liboperakde4.so in the same directory that handles KDE related stuff. Opera should itself be able to determine whether you run a GNOME or KDE desktop (or perhaps something completely different) or which toolkit you really prefer. Theoretically... It's all still a work in progress so I might as well break stuff now while it's still alpha, and masked - =www-client/opera-10.54_pre6336-r1 now has IUSE+="gtk kde" and gtk really means GNOME here, because liboperagtk.so loads a lot more than just GTK+ libraries. USE=gtk means you get enough for some rather nice GNOME based file dialogs and USE=kde means you get a rather nice KDE type file dialog (including Qt, just so you know ;-) .
I changed my mind and changed the ebuild again to use USE=gnome instead of USE=gtk. That's CVS revision 1.4.
Yes, USE flags would be the solution, thank you.
Well, what do you know. All of a sudden I found myself without plugin support. So I changed it around again: for plugins (say, Flash) you _need_ the GTK+ libraries so USE=gtk is now enabled by default. And I also changed the name back from USE=gnome, because of the confusion that might cause in light of it being enabled by default. Also, I described both USE flags better in metadata.xml. I am sure this is going to cause a desktop flamewar so I thought I'd rather document it here.
> Well, what do you know. All of a sudden I found myself without plugin support. > for plugins (say, Flash) you _need_ the GTK+ libraries so USE=gtk is now enabled by default. I'm not sure I've grasped you. www-plugins/adobe-flash depends on GTK+ itself, what do Opera's USE flags got to do with Flash?