commit:     80810b400baaea293474dcde65ee2010453cd063
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 24 16:20:00 2019 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Apr 24 16:57:00 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80810b40

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 <mattst88 <AT> gentoo.org>

 eclass/xorg-3.eclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index d4e52846edf..f8e6e8b0d01 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)

Reply via email to