On Saturday 09 July 2011 11:28:19 William Hubbs did opine thusly: > Hi Alan and all, > > On Fri, Jul 08, 2011 at 05:19:46PM +0200, Alan McKinnon wrote: > > easy. > > > > Two USE flags: gtk2 and gtk3 > > > > in ebuild: > > > > DEPEND=" > > > > gtk2? (x11-libs/gtk+:2) > > gtk3? (x11-libs/gtk+:3) > > > > " > > This doesn't account for all possible use flag settings. If I had > neither flag set, neither version of gtk would be installed, or if I > had both set, both versions would be installed. You can't just > choose a default in src_configure; you have to worry about it in > the dependencies as well. If you don't, you can force installation > of a package the user doesn't need or not install something they > do need.
Of course my example wasn't complete and needs fleshing out. It wasn't an ebuild-writing tutorial, it was an example of how easy it really is to continue supporting both toolkits in the ebuild. -- alan dot mckinnon at gmail dot com

