Gentoo Archives: gentoo-dev

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] gtk2/gtk3 use flags
Date: Sat, 17 Aug 2013 12:36:24
Message-Id: 520F6D92.3050409@gentoo.org
In Reply to: [gentoo-dev] gtk2/gtk3 use flags by Michael Weber
1 On 16/08/13 20:12, Michael Weber wrote:
2 > Hello,
3 >
4 > gtk is a global use flag [1], gtk2 and gtk3 are used in metadata.xml [2].
5 >
6 > Is there a consensus how to use these flags if an app provides gtk2
7 > and gtk3 gui in parallel or exclusive?
8
9 'gtk' uses best possible version as defined by the package maintainer
10
11 'gtk3' is a special flag that is used when package supports both gtk and
12 gtk3 at the same time, and matches the criteria of sanity which is a)
13 it's an library that is used by multiple programs b) is not easy to
14 split, which would otherwise be preferred over using the USE flag
15
16 'gtk2' is never required, those matching it down from the list have weak
17 design which goes against every other ebuild in tree, but is still
18 package maintainers decision
19
20 special flags like 'IUSE="+deprecated"' can be used if there is a need
21 to enable the old GTK+ implementation by default, but still provide the
22 new one, in programs. like if enabling GTK+3 instead of GTK+2 would
23 disable you from using flash plug-in in a browser, would qualify in.
24
25 imho :)
26
27 - Samuli
28
29 >
30 > Michael
31 >
32 > [1] /usr/portage/profiles/use.desc
33 > gtk - Add support for x11-libs/gtk+ (The GIMP Toolkit)
34 >
35 >
36 > [2] egrep "gtk(2|3)" /usr/portage/profiles/use.local.desc
37 > app-admin/gtkdiskfree:gtk3 - Use GTK+3 instead of 2
38 > app-editors/emacs:gtk3 - Link against version 3 of the GIMP Toolkit
39 > instead of version 2 (x11-libs/gtk+)
40 > app-editors/emacs-vcs:gtk3 - Link against version 3 of the GIMP
41 > Toolkit instead of version 2 (x11-libs/gtk+)
42 > app-i18n/fcitx:gtk3 - Install GTK3 IM module
43 > app-i18n/fcitx-configtool:gtk3 - Use GTK+3 instead of 2
44 > app-i18n/ibus:gtk3 - Enable support for gtk+3
45 > app-i18n/ibus-anthy:deprecated - Install deprecated pygtk2 library
46 > app-i18n/ibus-unikey:gtk3 - Enable support for gtk+3
47 > app-i18n/imsettings:gtk3 - Enable support for x11-libs/gtk+:3
48 > app-i18n/scim:gtk3 - Enable support for x11-libs/gtk+:3
49 > app-i18n/uim:gtk3 - Enable support for x11-libs/gtk+:3
50 > app-office/libreoffice:gtk3 - Enable highly experimental gtk3 frontend
51 > dev-java/icedtea-web:gtk2 - Use x11-libs/gtk+:2 instead of x11-libs/gtk+:3
52 > dev-java/icedtea-web:gtk3 - Use x11-libs/gtk+:3 (default)
53 > dev-python/matplotlib:gtk3 - Use x11-libs/gtk+:3 instead of
54 > x11-libs/gtk+:2
55 > lxde-base/lxdm:gtk3 - Use GTK+3 instead of 2
56 > mail-client/claws-mail:gtk3 - Build support for GTK+3
57 > media-libs/libcanberra:gtk3 - Enables building of gtk+3 helper
58 > library, gtk+3 runtime sound effects and the canberra-gtk-play
59 > utility. To enable the gtk+3 sound effects add canberra-gtk-module to
60 > the colon separated list of modules in the GTK_MODULES environment
61 > variable.
62 > media-plugins/audacious-plugins:gtk3 - Link against version 3 of the
63 > GIMP Toolkit instead of version 2 (x11-libs/gtk+)
64 > media-sound/audacious:gtk3 - Link against version 3 of the GIMP
65 > Toolkit instead of version 2 (x11-libs/gtk+)
66 > media-sound/jalv:gtk2 - Adds support for GTK+2 in addition to GTK+3
67 > controlled by the gtk useflag.
68 > media-sound/mp3splt-gtk:gtk3 - Link against x11-libs/gtk+:3 instead of
69 > x11-libs/gtk+:2
70 > net-analyzer/wireshark:gtk2 - Build the wireshark executable with a
71 > GTK+ UI version 2.
72 > net-analyzer/wireshark:gtk3 - Build the wireshark executable with a
73 > GTK+ UI version 3.
74 > net-dns/avahi:gtk3 - Build the avahi-ui-gtk3 library, and use gtk3 for
75 > the avahi utilities under USE=utils
76 > net-libs/gtk-vnc:gtk3 - Build the gtk3 gtk-vnc library and other gtk3
77 > assets
78 > net-misc/spice-gtk:gtk3 - Link against x11-libs/gtk+:3 instead of
79 > x11-libs/gtk+:2
80 > net-p2p/eiskaltdcpp:gtk3 - Use x11-libs/gtk+:3 instead of x11-libs/gtk+:2
81 > www-client/dwb:gtk3 - Link against x11-libs/gtk+:3 instead of
82 > x11-libs/gtk+:2
83 > www-client/uget:gtk3 - Use x11-libs/gtk+:3 instead of x11-libs/gtk+:2
84 > www-client/uzbl:gtk3 - Use x11-libs/gtk+:3 instead of x11-libs/gtk+:2
85 > x11-themes/light-themes:gtk3 - Support GTK 3.x, too
86 > x11-wm/fvwm:gtk2-perl - Enable GTK2 Perl bindings
87 >

Replies

Subject Author
Re: [gentoo-dev] gtk2/gtk3 use flags Gilles Dartiguelongue <eva@g.o>