From: Matt Turner Date: Wed, 24 Apr 2019 17:23:17 +0000 (-0700) Subject: xorg-3.eclass: Don't delete man pages if XORG_DOC=doc is missing X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5ff8e344519b37953c29fd1fe70b4b7b4a43f459;p=gentoo.git xorg-3.eclass: Don't delete man pages if XORG_DOC=doc is missing There's an eqawarn to warn us about this case a few lines above, but in case we forget, don't delete the man pages. Suggested by Arfrever. Bug: https://bugs.gentoo.org/595936 Signed-off-by: Matt Turner --- diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass index f8e6e8b0d01d..760e41462d7d 100644 --- a/eclass/xorg-3.eclass +++ b/eclass/xorg-3.eclass @@ -372,7 +372,7 @@ xorg-3_src_install() { ! in_iuse doc && eqawarn "ebuild should set XORG_DOC=doc since package installs library documentation" fi - if ! use_if_iuse doc; then + if in_iuse doc && ! use doc; then rm -rf "${D}"/usr/share/man/man3 fi