From 80810b400baaea293474dcde65ee2010453cd063 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 24 Apr 2019 09:20:00 -0700 Subject: xorg-3.eclass: Remove only library call man pages if USE=-doc Arfrever rightly pointed out that there are some useful man pages, and that the issue is about installing thousands of *developer* man pages. Closes: https://bugs.gentoo.org/595936 Signed-off-by: Matt Turner --- eclass/xorg-3.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass index d4e52846edf5..f8e6e8b0d01d 100644 --- a/eclass/xorg-3.eclass +++ b/eclass/xorg-3.eclass @@ -368,8 +368,12 @@ xorg-3_src_install() { fi # Many X11 libraries unconditionally install developer documentation + if [[ -d "${D}"/usr/share/man/man3 ]]; then + ! in_iuse doc && eqawarn "ebuild should set XORG_DOC=doc since package installs library documentation" + fi + if ! use_if_iuse doc; then - rm -rf "${D}"/usr/share/man/* + rm -rf "${D}"/usr/share/man/man3 fi # Don't install libtool archives (even for modules) -- cgit v1.2.3-65-gdbad