xorg-3.eclass: Don't delete man pages if XORG_DOC=doc is missing
authorMatt Turner <mattst88@gentoo.org>
Wed, 24 Apr 2019 17:23:17 +0000 (10:23 -0700)
committerMatt Turner <mattst88@gentoo.org>
Wed, 24 Apr 2019 17:24:26 +0000 (10:24 -0700)
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@gentoo.org>
eclass/xorg-3.eclass

index f8e6e8b0d01d4b7284a77e9d32679c6489449c4f..760e41462d7d2406d71dd8614ffd8def3278cf6e 100644 (file)
@@ -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