1 |
commit: 4888703c90cb3a9b545a8f2df8b08a98f1bbe618 |
2 |
Author: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 29 22:34:00 2018 +0000 |
4 |
Commit: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 29 22:34:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=4888703c |
7 |
|
8 |
x11-wm/mutter: x11-base/xorg-proto and sync live ebuild |
9 |
|
10 |
x11-proto/* dependencies should be updated to x11-base/xorg-proto |
11 |
|
12 |
Bug:https://bugs.gentoo.org/656306 |
13 |
|
14 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
15 |
Manifest-Sign-Key: 0x7DF238CF0AA182E1 |
16 |
|
17 |
x11-wm/mutter/metadata.xml | 2 +- |
18 |
...utter-3.26.1.ebuild => mutter-3.26.1-r1.ebuild} | 4 +- |
19 |
x11-wm/mutter/mutter-9999.ebuild | 119 ++++++++++++++------- |
20 |
3 files changed, 81 insertions(+), 44 deletions(-) |
21 |
|
22 |
diff --git a/x11-wm/mutter/metadata.xml b/x11-wm/mutter/metadata.xml |
23 |
index 59b7f540..73abedd9 100644 |
24 |
--- a/x11-wm/mutter/metadata.xml |
25 |
+++ b/x11-wm/mutter/metadata.xml |
26 |
@@ -6,6 +6,6 @@ |
27 |
<name>Gentoo GNOME Desktop</name> |
28 |
</maintainer> |
29 |
<use> |
30 |
- <flag name="kms">Enable KMS support.</flag> |
31 |
+ <flag name="gles2">Enable OpenGL ES 2.0 support</flag> |
32 |
</use> |
33 |
</pkgmetadata> |
34 |
|
35 |
diff --git a/x11-wm/mutter/mutter-3.26.1.ebuild b/x11-wm/mutter/mutter-3.26.1-r1.ebuild |
36 |
similarity index 98% |
37 |
rename from x11-wm/mutter/mutter-3.26.1.ebuild |
38 |
rename to x11-wm/mutter/mutter-3.26.1-r1.ebuild |
39 |
index 7d5a008b..ab9e1ae9 100644 |
40 |
--- a/x11-wm/mutter/mutter-3.26.1.ebuild |
41 |
+++ b/x11-wm/mutter/mutter-3.26.1-r1.ebuild |
42 |
@@ -70,9 +70,7 @@ COMMON_DEPEND=" |
43 |
DEPEND="${COMMON_DEPEND} |
44 |
>=sys-devel/gettext-0.19.6 |
45 |
virtual/pkgconfig |
46 |
- x11-proto/xextproto |
47 |
- x11-proto/xineramaproto |
48 |
- x11-proto/xproto |
49 |
+ x11-base/xorg-proto |
50 |
test? ( app-text/docbook-xml-dtd:4.5 ) |
51 |
wayland? ( >=sys-kernel/linux-headers-4.4 ) |
52 |
" |
53 |
|
54 |
diff --git a/x11-wm/mutter/mutter-9999.ebuild b/x11-wm/mutter/mutter-9999.ebuild |
55 |
index ea948333..156bf46c 100644 |
56 |
--- a/x11-wm/mutter/mutter-9999.ebuild |
57 |
+++ b/x11-wm/mutter/mutter-9999.ebuild |
58 |
@@ -1,11 +1,8 @@ |
59 |
-# Copyright 1999-2016 Gentoo Foundation |
60 |
+# Copyright 1999-2018 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
-# $Id$ |
63 |
|
64 |
-EAPI="5" |
65 |
-GCONF_DEBUG="yes" |
66 |
- |
67 |
-inherit eutils gnome2 |
68 |
+EAPI=6 |
69 |
+inherit gnome2 virtualx |
70 |
if [[ ${PV} = 9999 ]]; then |
71 |
inherit gnome2-live |
72 |
fi |
73 |
@@ -14,41 +11,40 @@ DESCRIPTION="GNOME 3 compositing window manager based on Clutter" |
74 |
HOMEPAGE="https://git.gnome.org/browse/mutter/" |
75 |
|
76 |
LICENSE="GPL-2+" |
77 |
-SLOT="0" |
78 |
-IUSE="+introspection +kms test wayland" |
79 |
-if [[ ${PV} = 9999 ]]; then |
80 |
- KEYWORDS="" |
81 |
-else |
82 |
- KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
83 |
-fi |
84 |
+SLOT="0/0" |
85 |
+#FIXME add remote desktop support |
86 |
+IUSE="debug gles2 input_devices_wacom +introspection test udev wayland" |
87 |
+ |
88 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
89 |
|
90 |
# libXi-1.7.4 or newer needed per: |
91 |
# https://bugzilla.gnome.org/show_bug.cgi?id=738944 |
92 |
COMMON_DEPEND=" |
93 |
- >=x11-libs/pango-1.2[X,introspection?] |
94 |
- >=x11-libs/cairo-1.10[X] |
95 |
+ >=dev-libs/atk-2.5.3 |
96 |
+ >=x11-libs/gdk-pixbuf-2:2 |
97 |
+ >=dev-libs/json-glib-0.12.0 |
98 |
+ >=x11-libs/pango-1.30[introspection?] |
99 |
+ >=x11-libs/cairo-1.14[X] |
100 |
>=x11-libs/gtk+-3.19.8:3[X,introspection?] |
101 |
- >=dev-libs/glib-2.36.0:2[dbus] |
102 |
- >=media-libs/clutter-1.25.6:1.0[X,introspection?] |
103 |
- >=media-libs/cogl-1.17.1:1.0=[introspection?] |
104 |
+ >=dev-libs/glib-2.53.2:2[dbus] |
105 |
>=media-libs/libcanberra-0.26[gtk3] |
106 |
>=x11-libs/startup-notification-0.7 |
107 |
>=x11-libs/libXcomposite-0.2 |
108 |
- >=gnome-base/gsettings-desktop-schemas-3.19.3[introspection?] |
109 |
+ >=gnome-base/gsettings-desktop-schemas-3.21.4[introspection?] |
110 |
gnome-base/gnome-desktop:3= |
111 |
>sys-power/upower-0.99:= |
112 |
|
113 |
x11-libs/libICE |
114 |
x11-libs/libSM |
115 |
x11-libs/libX11 |
116 |
- >=x11-libs/libXcomposite-0.2 |
117 |
+ >=x11-libs/libXcomposite-0.4 |
118 |
x11-libs/libXcursor |
119 |
x11-libs/libXdamage |
120 |
x11-libs/libXext |
121 |
- x11-libs/libXfixes |
122 |
+ >=x11-libs/libXfixes-3 |
123 |
>=x11-libs/libXi-1.7.4 |
124 |
x11-libs/libXinerama |
125 |
- >=x11-libs/libXrandr-1.5.0 |
126 |
+ >=x11-libs/libXrandr-1.5 |
127 |
x11-libs/libXrender |
128 |
x11-libs/libxcb |
129 |
x11-libs/libxkbfile |
130 |
@@ -56,42 +52,85 @@ COMMON_DEPEND=" |
131 |
x11-misc/xkeyboard-config |
132 |
|
133 |
gnome-extra/zenity |
134 |
+ media-libs/mesa[egl] |
135 |
|
136 |
+ gles2? ( media-libs/mesa[gles2] ) |
137 |
+ input_devices_wacom? ( >=dev-libs/libwacom-0.13 ) |
138 |
introspection? ( >=dev-libs/gobject-introspection-1.42:= ) |
139 |
- kms? ( |
140 |
- dev-libs/libinput |
141 |
- >=media-libs/clutter-1.20[egl] |
142 |
- media-libs/cogl:1.0=[kms] |
143 |
- >=media-libs/mesa-10.3[gbm] |
144 |
- sys-apps/systemd |
145 |
- virtual/libgudev |
146 |
- x11-libs/libdrm:= ) |
147 |
+ udev? ( >=virtual/libgudev-232:= ) |
148 |
wayland? ( |
149 |
- >=dev-libs/wayland-1.6.90 |
150 |
- >=media-libs/clutter-1.20[wayland] |
151 |
- x11-base/xorg-server[wayland] ) |
152 |
+ >=dev-libs/libinput-1.4 |
153 |
+ >=dev-libs/wayland-1.13 |
154 |
+ >=dev-libs/wayland-protocols-1.9 |
155 |
+ >=media-libs/mesa-10.3[egl,gbm,wayland] |
156 |
+ sys-apps/systemd |
157 |
+ >=virtual/libgudev-232:= |
158 |
+ >=virtual/libudev-136:= |
159 |
+ x11-base/xorg-server[wayland] |
160 |
+ x11-libs/libdrm:= |
161 |
+ ) |
162 |
" |
163 |
DEPEND="${COMMON_DEPEND} |
164 |
- >=dev-util/intltool-0.41 |
165 |
- sys-devel/gettext |
166 |
+ >=sys-devel/gettext-0.19.6 |
167 |
virtual/pkgconfig |
168 |
- x11-proto/xextproto |
169 |
- x11-proto/xineramaproto |
170 |
- x11-proto/xproto |
171 |
+ x11-base/xorg-proto |
172 |
test? ( app-text/docbook-xml-dtd:4.5 ) |
173 |
+ wayland? ( >=sys-kernel/linux-headers-4.4 ) |
174 |
" |
175 |
RDEPEND="${COMMON_DEPEND} |
176 |
!x11-misc/expocity |
177 |
" |
178 |
|
179 |
+src_prepare() { |
180 |
+ # Disable building of noinst_PROGRAM for tests |
181 |
+ if ! use test; then |
182 |
+ sed -e '/^noinst_PROGRAMS/d' \ |
183 |
+ -i cogl/tests/conform/Makefile.{am,in} || die |
184 |
+ sed -e '/noinst_PROGRAMS += testboxes/d' \ |
185 |
+ -i src/Makefile-tests.am || die |
186 |
+ sed -e '/noinst_PROGRAMS/ s/testboxes$(EXEEXT)//' \ |
187 |
+ -i src/Makefile.in || die |
188 |
+ fi |
189 |
+ |
190 |
+ gnome2_src_prepare |
191 |
+ |
192 |
+ # Leave the damn CFLAGS alone |
193 |
+ sed -e 's/$CFLAGS -g/$CFLAGS /' \ |
194 |
+ -i clutter/configure || die |
195 |
+ sed -e 's/$CFLAGS -g -O0/$CFLAGS /' \ |
196 |
+ -i cogl/configure || die |
197 |
+ sed -e 's/$CFLAGS -g -O/$CFLAGS /' \ |
198 |
+ -i configure || die |
199 |
+} |
200 |
+ |
201 |
src_configure() { |
202 |
+ # Prefer gl driver by default |
203 |
+ # GLX is forced by mutter but optional in clutter |
204 |
+ # xlib-egl-platform required by mutter x11 backend |
205 |
+ # native backend without wayland is useless |
206 |
gnome2_src_configure \ |
207 |
--disable-static \ |
208 |
+ --enable-compile-warnings=minimum \ |
209 |
+ --enable-gl \ |
210 |
+ --enable-glx \ |
211 |
--enable-sm \ |
212 |
--enable-startup-notification \ |
213 |
--enable-verbose-mode \ |
214 |
+ --enable-xlib-egl-platform \ |
215 |
+ --with-default-driver=gl \ |
216 |
--with-libcanberra \ |
217 |
+ $(usex debug --enable-debug=yes "") \ |
218 |
+ $(use_enable gles2) \ |
219 |
+ $(use_enable gles2 cogl-gles2) \ |
220 |
$(use_enable introspection) \ |
221 |
- $(use_enable kms native-backend) \ |
222 |
- $(use_enable wayland) |
223 |
+ $(use_enable wayland) \ |
224 |
+ $(use_enable wayland kms-egl-platform) \ |
225 |
+ $(use_enable wayland native-backend) \ |
226 |
+ $(use_enable wayland wayland-egl-server) \ |
227 |
+ $(use_with input_devices_wacom libwacom) \ |
228 |
+ $(use_with udev gudev) |
229 |
+} |
230 |
+ |
231 |
+src_test() { |
232 |
+ virtx emake check |
233 |
} |