Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/xf86-video-amdgpu/
Date: Sat, 27 Oct 2018 19:36:14
Message-Id: 1540668948.a2ffd7261021575395aa15181a1d873f58a6ce76.mattst88@gentoo
1 commit: a2ffd7261021575395aa15181a1d873f58a6ce76
2 Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
3 AuthorDate: Fri Oct 26 14:33:53 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 27 19:35:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2ffd726
7
8 x11-drivers/xf86-video-amdgpu: add "udev" USE flag
9
10 This fixes automagic dependency on udev.
11
12 Closes: https://bugs.gentoo.org/667058
13 Closes: https://github.com/gentoo/gentoo/pull/10236
14 Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
15 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
16
17 .../xf86-video-amdgpu/xf86-video-amdgpu-18.1.0.ebuild | 10 ++++++++--
18 x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-9999.ebuild | 12 +++++++++---
19 2 files changed, 17 insertions(+), 5 deletions(-)
20
21 diff --git a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-18.1.0.ebuild b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-18.1.0.ebuild
22 index 7e47777406d..877e000a131 100644
23 --- a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-18.1.0.ebuild
24 +++ b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-18.1.0.ebuild
25 @@ -13,11 +13,17 @@ fi
26
27 DESCRIPTION="Accelerated Open Source driver for AMDGPU cards"
28
29 +IUSE="udev"
30 +
31 RDEPEND=">=x11-libs/libdrm-2.4.78[video_cards_amdgpu]
32 - x11-base/xorg-server[glamor(-)]"
33 + x11-base/xorg-server[glamor(-)]
34 + udev? ( virtual/libudev:= )"
35 DEPEND="${RDEPEND}"
36
37 src_configure() {
38 - XORG_CONFIGURE_OPTIONS="--enable-glamor"
39 + XORG_CONFIGURE_OPTIONS=(
40 + --enable-glamor
41 + $(use_enable udev)
42 + )
43 xorg-2_src_configure
44 }
45
46 diff --git a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-9999.ebuild b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-9999.ebuild
47 index 90a06199708..df2b7fe4867 100644
48 --- a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-9999.ebuild
49 +++ b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-9999.ebuild
50 @@ -1,4 +1,4 @@
51 -# Copyright 1999-2018 Gentoo Foundation
52 +# Copyright 1999-2018 Gentoo Authors
53 # Distributed under the terms of the GNU General Public License v2
54
55 EAPI=5
56 @@ -13,11 +13,17 @@ fi
57
58 DESCRIPTION="Accelerated Open Source driver for AMDGPU cards"
59
60 +IUSE="udev"
61 +
62 RDEPEND=">=x11-libs/libdrm-2.4.78[video_cards_amdgpu]
63 - x11-base/xorg-server[glamor(-)]"
64 + x11-base/xorg-server[glamor(-)]
65 + udev? ( virtual/libudev:= )"
66 DEPEND="${RDEPEND}"
67
68 src_configure() {
69 - XORG_CONFIGURE_OPTIONS="--enable-glamor"
70 + XORG_CONFIGURE_OPTIONS=(
71 + --enable-glamor
72 + $(use_enable udev)
73 + )
74 xorg-2_src_configure
75 }