commit:     5ff8e344519b37953c29fd1fe70b4b7b4a43f459
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 24 17:23:17 2019 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Apr 24 17:24:26 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ff8e344

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 <mattst88 <AT> gentoo.org>

 eclass/xorg-3.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index f8e6e8b0d01..760e41462d7 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
 

Reply via email to