Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: x11-wm/mutter/
Date: Wed, 19 Sep 2018 10:14:10
Message-Id: 1537349874.b39c9c0293200ba288230078b5e8fb804c393ba3.leio@gentoo
1 commit: b39c9c0293200ba288230078b5e8fb804c393ba3
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 19 09:37:21 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 19 09:37:54 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=b39c9c02
7
8 x11-wm/mutter: bump to 3.26.2, fix subslot
9
10 * upstream bump from over 10 months ago
11 * mutter subslot should be the mutter-clutter API version - update
12 this properly.
13 * remove ancient expocity blocker
14 * add note about apparently missing nvidia EGLDevice support handling
15 * add glib-utils build dep
16
17 Package-Manager: Portage-2.3.49, Repoman-2.3.10
18
19 x11-wm/mutter/mutter-3.26.2.ebuild | 133 +++++++++++++++++++++++++++++++++++++
20 1 file changed, 133 insertions(+)
21
22 diff --git a/x11-wm/mutter/mutter-3.26.2.ebuild b/x11-wm/mutter/mutter-3.26.2.ebuild
23 new file mode 100644
24 index 00000000..935676e5
25 --- /dev/null
26 +++ b/x11-wm/mutter/mutter-3.26.2.ebuild
27 @@ -0,0 +1,133 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +inherit gnome2 virtualx
33 +
34 +DESCRIPTION="GNOME 3 compositing window manager based on Clutter"
35 +HOMEPAGE="https://git.gnome.org/browse/mutter/"
36 +
37 +LICENSE="GPL-2+"
38 +SLOT="0/1" # 0/libmutter_api_version - ONLY gnome-shell (or anything using mutter-clutter-<api_version>.pc) should use the subslot
39 +
40 +IUSE="debug gles2 input_devices_wacom +introspection test udev wayland"
41 +
42 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
43 +
44 +# libXi-1.7.4 or newer needed per:
45 +# https://bugzilla.gnome.org/show_bug.cgi?id=738944
46 +RDEPEND="
47 + >=dev-libs/atk-2.5.3
48 + >=x11-libs/gdk-pixbuf-2:2
49 + >=dev-libs/json-glib-0.12.0
50 + >=x11-libs/pango-1.30[introspection?]
51 + >=x11-libs/cairo-1.14[X]
52 + >=x11-libs/gtk+-3.19.8:3[X,introspection?]
53 + >=dev-libs/glib-2.53.2:2
54 + >=media-libs/libcanberra-0.26[gtk3]
55 + >=x11-libs/startup-notification-0.7
56 + >=x11-libs/libXcomposite-0.2
57 + >=gnome-base/gsettings-desktop-schemas-3.21.4[introspection?]
58 + gnome-base/gnome-desktop:3=
59 + >sys-power/upower-0.99:=
60 +
61 + x11-libs/libICE
62 + x11-libs/libSM
63 + x11-libs/libX11
64 + >=x11-libs/libXcomposite-0.4
65 + x11-libs/libXcursor
66 + x11-libs/libXdamage
67 + x11-libs/libXext
68 + >=x11-libs/libXfixes-3
69 + >=x11-libs/libXi-1.7.4
70 + x11-libs/libXinerama
71 + >=x11-libs/libXrandr-1.5
72 + x11-libs/libXrender
73 + x11-libs/libxcb
74 + x11-libs/libxkbfile
75 + >=x11-libs/libxkbcommon-0.4.3[X]
76 + x11-misc/xkeyboard-config
77 +
78 + gnome-extra/zenity
79 + media-libs/mesa[egl]
80 +
81 + gles2? ( media-libs/mesa[gles2] )
82 + input_devices_wacom? ( >=dev-libs/libwacom-0.13 )
83 + introspection? ( >=dev-libs/gobject-introspection-1.42:= )
84 + udev? ( >=virtual/libgudev-232:= )
85 + wayland? (
86 + >=dev-libs/libinput-1.4
87 + >=dev-libs/wayland-1.13.0
88 + >=dev-libs/wayland-protocols-1.9
89 + >=media-libs/mesa-10.3[egl,gbm,wayland]
90 + sys-apps/systemd
91 + >=virtual/libgudev-232:=
92 + >=virtual/libudev-136:=
93 + x11-base/xorg-server[wayland]
94 + x11-libs/libdrm:=
95 + )
96 +"
97 +DEPEND="${RDEPEND}
98 + dev-util/glib-utils
99 + >=sys-devel/gettext-0.19.6
100 + virtual/pkgconfig
101 + x11-base/xorg-proto
102 + test? ( app-text/docbook-xml-dtd:4.5 )
103 + wayland? ( >=sys-kernel/linux-headers-4.4 )
104 +"
105 +
106 +src_prepare() {
107 + # Disable building of noinst_PROGRAM for tests
108 + if ! use test; then
109 + sed -e '/^noinst_PROGRAMS/d' \
110 + -i cogl/tests/conform/Makefile.{am,in} || die
111 + sed -e '/noinst_PROGRAMS += testboxes/d' \
112 + -i src/Makefile-tests.am || die
113 + sed -e '/noinst_PROGRAMS/ s/testboxes$(EXEEXT)//' \
114 + -i src/Makefile.in || die
115 + fi
116 +
117 + gnome2_src_prepare
118 +
119 + # Leave the damn CFLAGS alone
120 + sed -e 's/$CFLAGS -g/$CFLAGS /' \
121 + -i clutter/configure || die
122 + sed -e 's/$CFLAGS -g -O0/$CFLAGS /' \
123 + -i cogl/configure || die
124 + sed -e 's/$CFLAGS -g -O/$CFLAGS /' \
125 + -i configure || die
126 +}
127 +
128 +src_configure() {
129 + # TODO: pipewire remote desktop support; --disable-remote-desktop actually enables it due to upstream autotools bug in 3.26.2 (omitted means disabled)
130 + # TODO: nvidia EGLDevice support
131 + # Prefer gl driver by default
132 + # GLX is forced by mutter but optional in clutter
133 + # xlib-egl-platform required by mutter x11 backend
134 + # native backend without wayland is useless
135 + gnome2_src_configure \
136 + --disable-static \
137 + --enable-compile-warnings=minimum \
138 + --enable-gl \
139 + --enable-glx \
140 + --enable-sm \
141 + --enable-startup-notification \
142 + --enable-verbose-mode \
143 + --enable-xlib-egl-platform \
144 + --with-default-driver=gl \
145 + --with-libcanberra \
146 + $(usex debug --enable-debug=yes "") \
147 + $(use_enable gles2) \
148 + $(use_enable gles2 cogl-gles2) \
149 + $(use_enable introspection) \
150 + $(use_enable wayland) \
151 + $(use_enable wayland kms-egl-platform) \
152 + $(use_enable wayland native-backend) \
153 + $(use_enable wayland wayland-egl-server) \
154 + $(use_with input_devices_wacom libwacom) \
155 + $(use_with udev gudev)
156 +}
157 +
158 +src_test() {
159 + virtx emake check
160 +}