1 |
commit: 378052578c7a89a49ecec89c8944c5f5c7190dda |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 18 19:26:23 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 18 20:09:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37805257 |
7 |
|
8 |
media-libs/libglvnd: Make X11 support optional |
9 |
|
10 |
Closes: https://bugs.gentoo.org/693754 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
media-libs/libglvnd/libglvnd-9999.ebuild | 18 +++++++++++++----- |
14 |
1 file changed, 13 insertions(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/libglvnd/libglvnd-9999.ebuild b/media-libs/libglvnd/libglvnd-9999.ebuild |
17 |
index 7c3c16d23be..be06e85ba9a 100644 |
18 |
--- a/media-libs/libglvnd/libglvnd-9999.ebuild |
19 |
+++ b/media-libs/libglvnd/libglvnd-9999.ebuild |
20 |
@@ -25,14 +25,17 @@ fi |
21 |
|
22 |
LICENSE="MIT" |
23 |
SLOT="0" |
24 |
-IUSE="" |
25 |
+IUSE="X" |
26 |
|
27 |
RDEPEND=" |
28 |
!media-libs/mesa[-libglvnd(-)] |
29 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
30 |
- " |
31 |
+ X? ( |
32 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
33 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
34 |
+ )" |
35 |
DEPEND="${PYTHON_DEPS} |
36 |
- ${RDEPEND}" |
37 |
+ ${RDEPEND} |
38 |
+ X? ( x11-base/xorg-proto )" |
39 |
|
40 |
src_prepare() { |
41 |
default |
42 |
@@ -40,7 +43,12 @@ src_prepare() { |
43 |
} |
44 |
|
45 |
multilib_src_configure() { |
46 |
- ECONF_SOURCE=${S} econf |
47 |
+ myconf=( |
48 |
+ --disable-headers |
49 |
+ $(use_enable X x11) |
50 |
+ $(use_enable X glx) |
51 |
+ ) |
52 |
+ ECONF_SOURCE=${S} econf "${myconf[@]}" |
53 |
} |
54 |
|
55 |
multilib_src_install() { |