1 |
commit: 827754d554b5df43c96c6e904a0cc05fffa477eb |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 7 21:22:36 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 7 21:23:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=827754d5 |
7 |
|
8 |
xorg-3.eclass: Remove developer documentation unless requested |
9 |
|
10 |
Closes: https://bugs.gentoo.org/595936 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
eclass/xorg-3.eclass | 5 +++++ |
14 |
1 file changed, 5 insertions(+) |
15 |
|
16 |
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass |
17 |
index 15bb0b381a3..d4e52846edf 100644 |
18 |
--- a/eclass/xorg-3.eclass |
19 |
+++ b/eclass/xorg-3.eclass |
20 |
@@ -367,6 +367,11 @@ xorg-3_src_install() { |
21 |
emake DESTDIR="${D}" "${install_args[@]}" "$@" install || die "emake install failed" |
22 |
fi |
23 |
|
24 |
+ # Many X11 libraries unconditionally install developer documentation |
25 |
+ if ! use_if_iuse doc; then |
26 |
+ rm -rf "${D}"/usr/share/man/* |
27 |
+ fi |
28 |
+ |
29 |
# Don't install libtool archives (even for modules) |
30 |
find "${D}" -type f -name '*.la' -delete || die |
31 |
} |