From: Matt Turner Date: Wed, 24 Apr 2019 16:20:00 +0000 (-0700) Subject: xorg-3.eclass: Remove only library call man pages if USE=-doc X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=80810b400baaea293474dcde65ee2010453cd063;p=gentoo.git 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 --- 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)