diff options
author | Matt Turner <mattst88@gentoo.org> | 2019-04-24 09:20:00 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2019-04-24 09:57:00 -0700 |
commit | 80810b400baaea293474dcde65ee2010453cd063 (patch) | |
tree | 12f55e1b7419466ce10f3e9cc3f70eea331ce840 /eclass/xorg-3.eclass | |
parent | x11-libs/libXxf86dga: Add IUSE=doc (diff) | |
download | gentoo-80810b400baaea293474dcde65ee2010453cd063.tar.gz gentoo-80810b400baaea293474dcde65ee2010453cd063.tar.bz2 gentoo-80810b400baaea293474dcde65ee2010453cd063.zip |
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@gentoo.org>
Diffstat (limited to 'eclass/xorg-3.eclass')
-rw-r--r-- | eclass/xorg-3.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
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) |