commit:     827754d554b5df43c96c6e904a0cc05fffa477eb
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  7 21:22:36 2019 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Apr  7 21:23:12 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=827754d5

xorg-3.eclass: Remove developer documentation unless requested

Closes: https://bugs.gentoo.org/595936
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

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

diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index 15bb0b381a3..d4e52846edf 100644
--- a/eclass/xorg-3.eclass
+++ b/eclass/xorg-3.eclass
@@ -367,6 +367,11 @@ xorg-3_src_install() {
                emake DESTDIR="${D}" "${install_args[@]}" "$@" install || die 
"emake install failed"
        fi
 
+       # Many X11 libraries unconditionally install developer documentation
+       if ! use_if_iuse doc; then
+               rm -rf "${D}"/usr/share/man/*
+       fi
+
        # Don't install libtool archives (even for modules)
        find "${D}" -type f -name '*.la' -delete || die
 }

Reply via email to