Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is Gentoo wiping out Gtk 2 support from packages that support it?
Date: Sat, 09 Jul 2011 21:06:23
Message-Id: 1625850.jY4sZ28ECG@nazgul
In Reply to: Re: [gentoo-user] Is Gentoo wiping out Gtk 2 support from packages that support it? by William Hubbs
1 On Saturday 09 July 2011 11:28:19 William Hubbs did opine thusly:
2 > Hi Alan and all,
3 >
4 > On Fri, Jul 08, 2011 at 05:19:46PM +0200, Alan McKinnon wrote:
5 > > easy.
6 > >
7 > > Two USE flags: gtk2 and gtk3
8 > >
9 > > in ebuild:
10 > >
11 > > DEPEND="
12 > >
13 > > gtk2? (x11-libs/gtk+:2)
14 > > gtk3? (x11-libs/gtk+:3)
15 > >
16 > > "
17 >
18 > This doesn't account for all possible use flag settings. If I had
19 > neither flag set, neither version of gtk would be installed, or if I
20 > had both set, both versions would be installed. You can't just
21 > choose a default in src_configure; you have to worry about it in
22 > the dependencies as well. If you don't, you can force installation
23 > of a package the user doesn't need or not install something they
24 > do need.
25
26 Of course my example wasn't complete and needs fleshing out.
27
28 It wasn't an ebuild-writing tutorial, it was an example of how easy it
29 really is to continue supporting both toolkits in the ebuild.
30
31
32 --
33 alan dot mckinnon at gmail dot com