1 |
commit: df5a2d2f2df9dc919f65a50564567d04a709bd41 |
2 |
Author: Denis Lisov <dennis.lissov <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu May 9 17:01:21 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 9 21:42:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df5a2d2f |
7 |
|
8 |
x11-apps/igt-gpu-tools: update USE flags for meson |
9 |
|
10 |
Initially the igt-gpu-tools meson build system had no optional |
11 |
dependencies so all USE flags were forced on. |
12 |
|
13 |
This commit restores the ability to disable optional dependencies and |
14 |
restructures the USE flags from dependency-based (alsa, gsl, xrandr) to |
15 |
feature-based (sound, overlay). |
16 |
|
17 |
Closes: https://bugs.gentoo.org/670282 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/11946 |
19 |
Signed-off-by: Denis Lisov <dennis.lissov <AT> gmail.com> |
20 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
21 |
|
22 |
profiles/arch/amd64/package.use.mask | 4 + |
23 |
profiles/arch/base/package.use.mask | 4 + |
24 |
profiles/arch/x86/package.use.mask | 4 + |
25 |
profiles/base/package.use.force | 6 -- |
26 |
.../igt-gpu-tools/igt-gpu-tools-1.23-r1.ebuild | 104 +++++++++++++++++++++ |
27 |
x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild | 95 ++++++++++++++----- |
28 |
x11-apps/igt-gpu-tools/metadata.xml | 5 + |
29 |
7 files changed, 193 insertions(+), 29 deletions(-) |
30 |
|
31 |
diff --git a/profiles/arch/amd64/package.use.mask b/profiles/arch/amd64/package.use.mask |
32 |
index 16f29053d76..7f5f7208596 100644 |
33 |
--- a/profiles/arch/amd64/package.use.mask |
34 |
+++ b/profiles/arch/amd64/package.use.mask |
35 |
@@ -17,6 +17,10 @@ |
36 |
|
37 |
#--- END OF EXAMPLES --- |
38 |
|
39 |
+# Denis Lisov <dennis.lissov@×××××.com> (09 May 2019) |
40 |
+# Overlay can only be built on amd64 and x86 |
41 |
+x11-apps/igt-gpu-tools -overlay |
42 |
+ |
43 |
# Sergei Trofimovich <slyfox@g.o> (16 Mar 2019) |
44 |
# sys-block/megactl works on x86 and amd64 |
45 |
www-apps/phpsysinfo -megactl |
46 |
|
47 |
diff --git a/profiles/arch/base/package.use.mask b/profiles/arch/base/package.use.mask |
48 |
index c80bc9f0d7f..614b36ab758 100644 |
49 |
--- a/profiles/arch/base/package.use.mask |
50 |
+++ b/profiles/arch/base/package.use.mask |
51 |
@@ -1,6 +1,10 @@ |
52 |
# Copyright 1999-2019 Gentoo Authors |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
|
55 |
+# Denis Lisov <dennis.lissov@×××××.com> (09 May 2019) |
56 |
+# Overlay can only be built on amd64 and x86 |
57 |
+x11-apps/igt-gpu-tools overlay |
58 |
+ |
59 |
# Sergei Trofimovich <slyfox@g.o> (16 Mar 2019) |
60 |
# sys-block/megactl works only on amd64 and x86 so far, bug #670564 |
61 |
www-apps/phpsysinfo megactl |
62 |
|
63 |
diff --git a/profiles/arch/x86/package.use.mask b/profiles/arch/x86/package.use.mask |
64 |
index 6aa126754ab..9fb753ae9e5 100644 |
65 |
--- a/profiles/arch/x86/package.use.mask |
66 |
+++ b/profiles/arch/x86/package.use.mask |
67 |
@@ -3,6 +3,10 @@ |
68 |
|
69 |
# This file requires >=portage-2.1.1 |
70 |
|
71 |
+# Denis Lisov <dennis.lissov@×××××.com> (09 May 2019) |
72 |
+# Overlay can only be built on amd64 and x86 |
73 |
+x11-apps/igt-gpu-tools -overlay |
74 |
+ |
75 |
# Sergei Trofimovich <slyfox@g.o> (16 Mar 2019) |
76 |
# sys-block/megactl works on x86 and amd64 |
77 |
www-apps/phpsysinfo -megactl |
78 |
|
79 |
diff --git a/profiles/base/package.use.force b/profiles/base/package.use.force |
80 |
index e18ccc6024f..04fc8f63c52 100644 |
81 |
--- a/profiles/base/package.use.force |
82 |
+++ b/profiles/base/package.use.force |
83 |
@@ -24,12 +24,6 @@ net-misc/netkit-bootparamd libtirpc |
84 |
sci-astronomy/esomidas libtirpc |
85 |
sys-cluster/glusterfs libtirpc |
86 |
|
87 |
-# Matt Turner <mattst88@g.o> (13 Jun 2018) |
88 |
-# Upstream is transitioning to Meson, but does not yet have any configuration |
89 |
-# options. Until those configuration options are provided, force USE flags on |
90 |
-# to avoid automagic deps. |
91 |
->=x11-apps/igt-gpu-tools-1.23 alsa chamelium doc glib gsl sound valgrind video_cards_amdgpu video_cards_intel video_cards_nouveau X xrandr xv |
92 |
- |
93 |
# NP-Hardass <NP-Hardass@g.o> (10 Apr 2017) |
94 |
# Always force patch on appropriate variant to ensure |
95 |
# similar experience when using app-emulation/wine-any |
96 |
|
97 |
diff --git a/x11-apps/igt-gpu-tools/igt-gpu-tools-1.23-r1.ebuild b/x11-apps/igt-gpu-tools/igt-gpu-tools-1.23-r1.ebuild |
98 |
new file mode 100644 |
99 |
index 00000000000..8318e1ca9cc |
100 |
--- /dev/null |
101 |
+++ b/x11-apps/igt-gpu-tools/igt-gpu-tools-1.23-r1.ebuild |
102 |
@@ -0,0 +1,104 @@ |
103 |
+# Copyright 1999-2019 Gentoo Authors |
104 |
+# Distributed under the terms of the GNU General Public License v2 |
105 |
+ |
106 |
+EAPI=6 |
107 |
+EGIT_REPO_URI="https://gitlab.freedesktop.org/drm/${PN}.git" |
108 |
+if [[ ${PV} = *9999* ]]; then |
109 |
+ GIT_ECLASS="git-r3" |
110 |
+fi |
111 |
+ |
112 |
+inherit ${GIT_ECLASS} meson |
113 |
+ |
114 |
+DESCRIPTION="Intel GPU userland tools" |
115 |
+ |
116 |
+HOMEPAGE="https://01.org/linuxgraphics https://gitlab.freedesktop.org/drm/igt-gpu-tools" |
117 |
+if [[ ${PV} = *9999* ]]; then |
118 |
+ SRC_URI="" |
119 |
+else |
120 |
+ KEYWORDS="~amd64 ~x86" |
121 |
+ SRC_URI="https://www.x.org/releases/individual/app/${P}.tar.xz" |
122 |
+fi |
123 |
+LICENSE="MIT" |
124 |
+SLOT="0" |
125 |
+IUSE="chamelium doc man overlay sound valgrind video_cards_amdgpu video_cards_intel video_cards_nouveau X xv" |
126 |
+REQUIRED_USE=" |
127 |
+ || ( video_cards_amdgpu video_cards_intel video_cards_nouveau ) |
128 |
+ overlay? ( |
129 |
+ video_cards_intel |
130 |
+ || ( X xv ) |
131 |
+ ) |
132 |
+" |
133 |
+RESTRICT="test" |
134 |
+ |
135 |
+RDEPEND=" |
136 |
+ dev-libs/glib:2 |
137 |
+ dev-libs/openssl:= |
138 |
+ sys-apps/kmod:= |
139 |
+ sys-libs/libunwind:= |
140 |
+ sys-libs/zlib:= |
141 |
+ sys-process/procps:= |
142 |
+ virtual/libudev:= |
143 |
+ >=x11-libs/cairo-1.12.0[X?] |
144 |
+ >=x11-libs/libdrm-2.4.82[video_cards_amdgpu?,video_cards_intel?,video_cards_nouveau?] |
145 |
+ >=x11-libs/libpciaccess-0.10 |
146 |
+ chamelium? ( |
147 |
+ dev-libs/xmlrpc-c |
148 |
+ sci-libs/gsl |
149 |
+ x11-libs/pixman |
150 |
+ ) |
151 |
+ overlay? ( |
152 |
+ >=x11-libs/libXrandr-1.3 |
153 |
+ xv? ( |
154 |
+ x11-libs/libX11 |
155 |
+ x11-libs/libXext |
156 |
+ x11-libs/libXv |
157 |
+ ) |
158 |
+ ) |
159 |
+ sound? ( |
160 |
+ sci-libs/gsl |
161 |
+ media-libs/alsa-lib:= |
162 |
+ ) |
163 |
+ valgrind? ( dev-util/valgrind ) |
164 |
+ " |
165 |
+DEPEND="${RDEPEND} |
166 |
+ doc? ( >=dev-util/gtk-doc-1.25-r1 ) |
167 |
+ man? ( dev-python/docutils ) |
168 |
+ overlay? ( |
169 |
+ >=dev-util/peg-0.1.18 |
170 |
+ x11-base/xorg-proto |
171 |
+ ) |
172 |
+ video_cards_intel? ( |
173 |
+ sys-devel/bison |
174 |
+ sys-devel/flex |
175 |
+ ) |
176 |
+" |
177 |
+ |
178 |
+src_prepare() { |
179 |
+ sed -e "s/rst2man/rst2man.py/" -i man/rst2man.sh |
180 |
+ sed -e "s/find_program('rst2man'/find_program('rst2man.py'/" -i man/meson.build |
181 |
+ default_src_prepare |
182 |
+} |
183 |
+ |
184 |
+src_configure() { |
185 |
+ local gpus="" |
186 |
+ use video_cards_amdgpu && gpus+="amdgpu," |
187 |
+ use video_cards_intel && gpus+="intel," |
188 |
+ use video_cards_nouveau && gpus+="nouveau," |
189 |
+ |
190 |
+ local overlay_backends="" |
191 |
+ use overlay && use xv && overlay_backends+="xv," |
192 |
+ use overlay && use X && overlay_backends+="x," |
193 |
+ |
194 |
+ local emesonargs=( |
195 |
+ -Dbuild_audio=$(usex sound true false) |
196 |
+ -Dbuild_chamelium=$(usex chamelium true false) |
197 |
+ -Dbuild_docs=$(usex doc true false) |
198 |
+ -Dbuild_man=$(usex man true false) |
199 |
+ -Dbuild_overlay=$(usex overlay true false) |
200 |
+ -Dbuild_tests=$(usex doc true false) # Test build is required for docs |
201 |
+ -Doverlay_backends=${overlay_backends%?} |
202 |
+ -Dwith_libdrm=${gpus%?} |
203 |
+ -Dwith_valgrind=$(usex valgrind true false) |
204 |
+ ) |
205 |
+ meson_src_configure |
206 |
+} |
207 |
|
208 |
diff --git a/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild b/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild |
209 |
index 65bdd0b6068..81fff23b3e7 100644 |
210 |
--- a/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild |
211 |
+++ b/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild |
212 |
@@ -1,4 +1,4 @@ |
213 |
-# Copyright 1999-2018 Gentoo Authors |
214 |
+# Copyright 1999-2019 Gentoo Authors |
215 |
# Distributed under the terms of the GNU General Public License v2 |
216 |
|
217 |
EAPI=6 |
218 |
@@ -20,35 +20,84 @@ else |
219 |
fi |
220 |
LICENSE="MIT" |
221 |
SLOT="0" |
222 |
-IUSE="alsa chamelium doc glib gsl sound valgrind video_cards_amdgpu video_cards_intel video_cards_nouveau X xrandr xv" |
223 |
-REQUIRED_USE="chamelium? ( glib gsl )" |
224 |
+IUSE="chamelium doc man overlay runner unwind valgrind video_cards_amdgpu video_cards_intel video_cards_nouveau X xv" |
225 |
+REQUIRED_USE=" |
226 |
+ || ( video_cards_amdgpu video_cards_intel video_cards_nouveau ) |
227 |
+ overlay? ( |
228 |
+ video_cards_intel |
229 |
+ || ( X xv ) |
230 |
+ ) |
231 |
+" |
232 |
RESTRICT="test" |
233 |
|
234 |
-X86_RDEPEND=" |
235 |
- xv? ( |
236 |
- x11-libs/libX11 |
237 |
- x11-libs/libXext |
238 |
- x11-libs/libXv |
239 |
- )" |
240 |
-X86_DEPEND="x11-base/xorg-proto |
241 |
- >=dev-util/peg-0.1.18" |
242 |
-RDEPEND="sys-apps/kmod:= |
243 |
+RDEPEND=" |
244 |
+ dev-libs/elfutils |
245 |
+ dev-libs/glib:2 |
246 |
+ sys-apps/kmod:= |
247 |
sys-libs/libunwind:= |
248 |
+ sys-libs/zlib:= |
249 |
sys-process/procps:= |
250 |
virtual/libudev:= |
251 |
>=x11-libs/cairo-1.12.0[X?] |
252 |
>=x11-libs/libdrm-2.4.82[video_cards_amdgpu?,video_cards_intel?,video_cards_nouveau?] |
253 |
>=x11-libs/libpciaccess-0.10 |
254 |
- alsa? ( media-libs/alsa-lib:= ) |
255 |
- chamelium? ( dev-libs/xmlrpc-c ) |
256 |
- glib? ( dev-libs/glib:2 ) |
257 |
- gsl? ( sci-libs/gsl ) |
258 |
+ x11-libs/pixman |
259 |
+ chamelium? ( |
260 |
+ dev-libs/xmlrpc-c[curl] |
261 |
+ sci-libs/gsl |
262 |
+ media-libs/alsa-lib:= |
263 |
+ ) |
264 |
+ overlay? ( |
265 |
+ >=x11-libs/libXrandr-1.3 |
266 |
+ xv? ( |
267 |
+ x11-libs/libX11 |
268 |
+ x11-libs/libXext |
269 |
+ x11-libs/libXv |
270 |
+ ) |
271 |
+ ) |
272 |
+ runner? ( dev-libs/json-c:= ) |
273 |
+ unwind? ( sys-libs/libunwind ) |
274 |
valgrind? ( dev-util/valgrind ) |
275 |
- video_cards_intel? ( sys-libs/zlib:= ) |
276 |
- xrandr? ( >=x11-libs/libXrandr-1.3 ) |
277 |
- amd64? ( ${X86_RDEPEND} ) |
278 |
- x86? ( ${X86_RDEPEND} )" |
279 |
+ " |
280 |
DEPEND="${RDEPEND} |
281 |
- amd64? ( ${X86_DEPEND} ) |
282 |
- x86? ( ${X86_DEPEND} ) |
283 |
- doc? ( >=dev-util/gtk-doc-1.25-r1 )" |
284 |
+ doc? ( >=dev-util/gtk-doc-1.25-r1 ) |
285 |
+ man? ( dev-python/docutils ) |
286 |
+ overlay? ( |
287 |
+ >=dev-util/peg-0.1.18 |
288 |
+ x11-base/xorg-proto |
289 |
+ ) |
290 |
+ video_cards_intel? ( |
291 |
+ sys-devel/bison |
292 |
+ sys-devel/flex |
293 |
+ ) |
294 |
+" |
295 |
+ |
296 |
+src_prepare() { |
297 |
+ sed -e "s/find_program('rst2man-3'/find_program('rst2man.py', 'rst2man-3'/" -i man/meson.build |
298 |
+ default_src_prepare |
299 |
+} |
300 |
+ |
301 |
+src_configure() { |
302 |
+ local gpus="" |
303 |
+ use video_cards_amdgpu && gpus+="amdgpu," |
304 |
+ use video_cards_intel && gpus+="intel," |
305 |
+ use video_cards_nouveau && gpus+="nouveau," |
306 |
+ |
307 |
+ local overlay_backends="" |
308 |
+ use overlay && use xv && overlay_backends+="xv," |
309 |
+ use overlay && use X && overlay_backends+="x," |
310 |
+ |
311 |
+ local emesonargs=( |
312 |
+ -Dbuild_chamelium=$(usex chamelium true false) |
313 |
+ -Dbuild_docs=$(usex doc true false) |
314 |
+ -Dbuild_man=$(usex man true false) |
315 |
+ -Dbuild_overlay=$(usex overlay true false) |
316 |
+ -Dbuild_runner=$(usex runner true false) |
317 |
+ -Dbuild_tests=$(usex doc true false) # Test build is required for docs |
318 |
+ -Doverlay_backends=${overlay_backends%?} |
319 |
+ -Dwith_libdrm=${gpus%?} |
320 |
+ -Dwith_libunwind=$(usex unwind true false) |
321 |
+ -Dwith_valgrind=$(usex valgrind true false) |
322 |
+ ) |
323 |
+ meson_src_configure |
324 |
+} |
325 |
|
326 |
diff --git a/x11-apps/igt-gpu-tools/metadata.xml b/x11-apps/igt-gpu-tools/metadata.xml |
327 |
index df5e4520970..d1c1f29fe12 100644 |
328 |
--- a/x11-apps/igt-gpu-tools/metadata.xml |
329 |
+++ b/x11-apps/igt-gpu-tools/metadata.xml |
330 |
@@ -8,7 +8,12 @@ |
331 |
<use> |
332 |
<flag name="chamelium">Enables support for building Chamelium tests</flag> |
333 |
<flag name="glib">Support reading config files via glib helpers</flag> |
334 |
+ <flag name="man">Build and install man pages</flag> |
335 |
+ <flag name="overlay">Build the intel-gpu-overlay utility</flag> |
336 |
+ <flag name="runner">Build the test runner</flag> |
337 |
<flag name="valgrind">Support valgrind annotations</flag> |
338 |
<flag name="xrandr">Enable support for the X RandR extension</flag> |
339 |
+ <flag name="xv">Enable intel-gpu-overlay xv backend</flag> |
340 |
+ <flag name="X">Enable intel-gpu-overlay xlib/cairo backend</flag> |
341 |
</use> |
342 |
</pkgmetadata> |