1 |
commit: 4098bc1270e15bcd4556069c77978d9913718100 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 23 08:57:27 2014 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 23 10:35:12 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=dev/leio.git;a=commit;h=4098bc12 |
7 |
|
8 |
gtk+: Add a USE=gtk3-only for building without gtk2 dependency |
9 |
|
10 |
Useful for gtk3 only wayland only systems like aiming with my RPi work. |
11 |
At some point main gentoo tree could swap around which SLOT provides |
12 |
gtk-update-icon-cache dependency and allow a gtk3 only system (and |
13 |
disallow a gtk2 only system), or split gtk-update-icon-cache build |
14 |
out into a separate package, in which the gtk version dep can be |
15 |
chosen, if it deps on gtk really at all. |
16 |
|
17 |
It should really be a hard blocker on gtk2 (!!x11-libs/gtk+:2), but a |
18 |
soft blocker allows for easier migration to gtk3-only for me, where |
19 |
the gtk2 linking remaining libs/apps keep the libs around as a |
20 |
preserved-lib, needing rebuild against gtk3 or unmerge of the gtk2 |
21 |
using stuff. |
22 |
|
23 |
--- |
24 |
x11-libs/gtk+/gtk+-3.12.2.ebuild | 9 +++++---- |
25 |
x11-libs/gtk+/metadata.xml | 2 ++ |
26 |
2 files changed, 7 insertions(+), 4 deletions(-) |
27 |
|
28 |
diff --git a/x11-libs/gtk+/gtk+-3.12.2.ebuild b/x11-libs/gtk+/gtk+-3.12.2.ebuild |
29 |
index 210357d..e571a3a 100644 |
30 |
--- a/x11-libs/gtk+/gtk+-3.12.2.ebuild |
31 |
+++ b/x11-libs/gtk+/gtk+-3.12.2.ebuild |
32 |
@@ -18,7 +18,7 @@ SLOT="3" |
33 |
# * http://mail.gnome.org/archives/gtk-devel-list/2010-November/msg00099.html |
34 |
# I tried this and got it all compiling, but the end result is unusable as it |
35 |
# horribly mixes up the backends -- grobian |
36 |
-IUSE="aqua cloudprint colord cups debug examples +introspection test vim-syntax wayland X xinerama" |
37 |
+IUSE="aqua cloudprint colord cups debug examples +introspection gtk3-only test vim-syntax wayland X xinerama" |
38 |
REQUIRED_USE=" |
39 |
|| ( aqua wayland X ) |
40 |
xinerama? ( X ) |
41 |
@@ -28,14 +28,15 @@ KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd |
42 |
|
43 |
# FIXME: introspection data is built against system installation of gtk+:3 |
44 |
# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf) |
45 |
-# Use gtk+:2 for gtk-update-icon-cache |
46 |
+# Use gtk+:2 for gtk-update-icon-cache unless USE=gtk3-only |
47 |
COMMON_DEPEND=" |
48 |
>=dev-libs/atk-2.7.5[introspection?] |
49 |
>=dev-libs/glib-2.39.5:2 |
50 |
media-libs/fontconfig |
51 |
>=x11-libs/cairo-1.12[aqua?,glib,svg,X?] |
52 |
>=x11-libs/gdk-pixbuf-2.27.1:2[introspection?,X?] |
53 |
- >=x11-libs/gtk+-2.24:2 |
54 |
+ gtk3-only? ( !x11-libs/gtk+:2 ) |
55 |
+ !gtk3-only? ( >=x11-libs/gtk+-2.24:2 ) |
56 |
>=x11-libs/pango-1.32.4[introspection?] |
57 |
x11-misc/shared-mime-info |
58 |
|
59 |
@@ -148,7 +149,7 @@ src_configure() { |
60 |
$(use_enable xinerama) \ |
61 |
--disable-papi \ |
62 |
--enable-man \ |
63 |
- --enable-gtk2-dependency \ |
64 |
+ $(use_enable !gtk3-only gtk2-dependency) \ |
65 |
--with-xml-catalog="${EPREFIX}"/etc/xml/catalog \ |
66 |
--libdir="${EPREFIX}"/usr/$(get_libdir) |
67 |
} |
68 |
|
69 |
diff --git a/x11-libs/gtk+/metadata.xml b/x11-libs/gtk+/metadata.xml |
70 |
index f29cdbe..854fe0b 100644 |
71 |
--- a/x11-libs/gtk+/metadata.xml |
72 |
+++ b/x11-libs/gtk+/metadata.xml |
73 |
@@ -12,6 +12,8 @@ |
74 |
<flag name="cloudprint">Enable printing via Google Cloud Print.</flag> |
75 |
<flag name="colord">Use <pkg>x11-misc/colord</pkg> for color management |
76 |
in printing</flag> |
77 |
+ <flag name="gtk3-only">Use only a gtk3 system without gtk2 via building |
78 |
+ gtk-update-icon-cache from gtk3 SLOT</flag> |
79 |
<flag name="packagekit">Enable support for the distro-neutral package |
80 |
manager GUI <pkg>app-admin/packagekit</pkg> in application chooser</flag> |
81 |
</use> |