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>
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)