Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: x11-wm/mutter/
Date: Fri, 28 Dec 2018 23:32:16
Message-Id: 1546039914.d2e56f28cce07cd305d923e7affa7645bf6fb05b.eva@gentoo
1 commit: d2e56f28cce07cd305d923e7affa7645bf6fb05b
2 Author: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 25 15:21:19 2018 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 28 23:31:54 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=d2e56f28
7
8 x11-wm/mutter: bumpt to 3.30.2
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Manifest-Sign-Key: 0x7DF238CF0AA182E1
12 Signed-off-by: Sobhan Mohammadpour <sobhan <AT> gentoo.org>
13 Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org>
14
15 x11-wm/mutter/metadata.xml | 11 +++
16 x11-wm/mutter/mutter-3.30.2.ebuild | 138 +++++++++++++++++++++++++++++++++++++
17 2 files changed, 149 insertions(+)
18
19 diff --git a/x11-wm/mutter/metadata.xml b/x11-wm/mutter/metadata.xml
20 new file mode 100644
21 index 00000000..73abedd9
22 --- /dev/null
23 +++ b/x11-wm/mutter/metadata.xml
24 @@ -0,0 +1,11 @@
25 +<?xml version="1.0" encoding="UTF-8"?>
26 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
27 +<pkgmetadata>
28 + <maintainer type="project">
29 + <email>gnome@g.o</email>
30 + <name>Gentoo GNOME Desktop</name>
31 + </maintainer>
32 + <use>
33 + <flag name="gles2">Enable OpenGL ES 2.0 support</flag>
34 + </use>
35 +</pkgmetadata>
36
37 diff --git a/x11-wm/mutter/mutter-3.30.2.ebuild b/x11-wm/mutter/mutter-3.30.2.ebuild
38 new file mode 100644
39 index 00000000..7641422c
40 --- /dev/null
41 +++ b/x11-wm/mutter/mutter-3.30.2.ebuild
42 @@ -0,0 +1,138 @@
43 +# Copyright 1999-2018 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=6
47 +GNOME2_EAUTORECONF="yes"
48 +inherit gnome2 virtualx
49 +
50 +DESCRIPTION="GNOME 3 compositing window manager based on Clutter"
51 +HOMEPAGE="https://gitlab.gnome.org/GNOME/mutter/"
52 +
53 +LICENSE="GPL-2+"
54 +SLOT="0/1" # 0/libmutter_api_version - ONLY gnome-shell (or anything using mutter-clutter-<api_version>.pc) should use the subslot
55 +
56 +IUSE="debug gles2 input_devices_wacom +introspection test udev wayland"
57 +
58 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
59 +
60 +# libXi-1.7.4 or newer needed per:
61 +# https://bugzilla.gnome.org/show_bug.cgi?id=738944
62 +RDEPEND="
63 + >=dev-libs/atk-2.5.3
64 + >=x11-libs/gdk-pixbuf-2:2
65 + >=dev-libs/json-glib-0.12.0
66 + >=x11-libs/pango-1.30[introspection?]
67 + >=x11-libs/cairo-1.14[X]
68 + >=x11-libs/gtk+-3.19.8:3[X,introspection?]
69 + >=dev-libs/glib-2.53.2:2
70 + >=media-libs/libcanberra-0.26[gtk3]
71 + >=x11-libs/startup-notification-0.7
72 + >=x11-libs/libXcomposite-0.2
73 + >=gnome-base/gsettings-desktop-schemas-3.21.4[introspection?]
74 + gnome-base/gnome-desktop:3=
75 + >sys-power/upower-0.99:=
76 +
77 + x11-libs/libICE
78 + x11-libs/libSM
79 + x11-libs/libX11
80 + >=x11-libs/libXcomposite-0.4
81 + x11-libs/libXcursor
82 + x11-libs/libXdamage
83 + x11-libs/libXext
84 + >=x11-libs/libXfixes-3
85 + >=x11-libs/libXi-1.7.4
86 + x11-libs/libXinerama
87 + >=x11-libs/libXrandr-1.5
88 + x11-libs/libXrender
89 + x11-libs/libxcb
90 + x11-libs/libxkbfile
91 + >=x11-libs/libxkbcommon-0.4.3[X]
92 + x11-misc/xkeyboard-config
93 +
94 + gnome-extra/zenity
95 + media-libs/mesa[egl]
96 +
97 + gles2? ( media-libs/mesa[gles2] )
98 + input_devices_wacom? ( >=dev-libs/libwacom-0.13 )
99 + introspection? ( >=dev-libs/gobject-introspection-1.42:= )
100 + udev? ( >=virtual/libgudev-232:= )
101 + wayland? (
102 + >=dev-libs/libinput-1.4
103 + >=dev-libs/wayland-1.13.0
104 + >=dev-libs/wayland-protocols-1.9
105 + >=media-libs/mesa-10.3[egl,gbm,wayland]
106 + sys-apps/systemd
107 + >=virtual/libgudev-232:=
108 + >=virtual/libudev-136:=
109 + x11-base/xorg-server[wayland]
110 + x11-libs/libdrm:=
111 + )
112 +"
113 +DEPEND="${RDEPEND}
114 + dev-util/glib-utils
115 + >=sys-devel/gettext-0.19.6
116 + virtual/pkgconfig
117 + x11-base/xorg-proto
118 + test? ( app-text/docbook-xml-dtd:4.5 )
119 + wayland? ( >=sys-kernel/linux-headers-4.4 )
120 +"
121 +
122 +src_prepare() {
123 + # Disable building of noinst_PROGRAM for tests
124 + if ! use test; then
125 + sed -e '/^noinst_PROGRAMS/d' \
126 + -i cogl/tests/conform/Makefile.{am,in} || die
127 + sed -e '/noinst_PROGRAMS += testboxes/d' \
128 + -i src/Makefile-tests.am || die
129 + sed -e '/noinst_PROGRAMS/ s/testboxes$(EXEEXT)//' \
130 + -i src/Makefile.in || die
131 + fi
132 +
133 + gnome2_src_prepare
134 +
135 + # Leave the damn CFLAGS alone
136 + sed -e 's/$CFLAGS -g/$CFLAGS /' \
137 + -i clutter/configure || die
138 + sed -e 's/$CFLAGS -g -O0/$CFLAGS /' \
139 + -i cogl/configure || die
140 + sed -e 's/$CFLAGS -g -O/$CFLAGS /' \
141 + -i configure || die
142 +}
143 +
144 +src_configure() {
145 + # Prefer gl driver by default
146 + # GLX is forced by mutter but optional in clutter
147 + # xlib-egl-platform required by mutter x11 backend
148 + # native backend without wayland is useless
149 + # TODO: nvidia EGLDevice support
150 + # TODO: pipewire remote desktop support;
151 + # FIXME: set "with-xwayland-grab-default-access-rules"
152 +
153 + gnome2_src_configure \
154 + --with-x \
155 + --disable-remote-deskop \
156 + --disable-static \
157 + --enable-compile-warnings=minimum \
158 + --enable-gl \
159 + --enable-glx \
160 + --enable-sm \
161 + --enable-startup-notification \
162 + --enable-verbose-mode \
163 + --enable-xlib-egl-platform \
164 + --with-default-driver=gl \
165 + --with-libcanberra \
166 + $(usex debug --enable-debug=yes "") \
167 + $(use_enable gles2) \
168 + $(use_enable gles2 cogl-gles2) \
169 + $(use_enable introspection) \
170 + $(use_enable wayland) \
171 + $(use_enable wayland kms-egl-platform) \
172 + $(use_enable wayland native-backend) \
173 + $(use_enable wayland wayland-egl-server) \
174 + $(use_with input_devices_wacom libwacom) \
175 + $(use_with udev gudev)
176 +}
177 +
178 +src_test() {
179 + virtx emake check
180 +}