commit:     081781786df36f0d477db6ffd2cea82f7d2d3e02
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 15 18:16:18 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Feb 15 19:22:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08178178

app-text/mdbook: explicitly re-check USE=doc logic in src_install

The -e test was simple, but never quite liked it given tests like
these can fail to pickup that nothing was created when it should.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-text/mdbook/mdbook-0.4.27.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app-text/mdbook/mdbook-0.4.27.ebuild 
b/app-text/mdbook/mdbook-0.4.27.ebuild
index 530bfc7a5bd0..fdf2231ecf93 100644
--- a/app-text/mdbook/mdbook-0.4.27.ebuild
+++ b/app-text/mdbook/mdbook-0.4.27.ebuild
@@ -258,6 +258,5 @@ src_install() {
        cargo_src_install
 
        dodoc CHANGELOG.md README.md
-
-       [[ -e guide/html ]] && dodoc -r guide/html
+       use doc && ! tc-is-cross-compiler && dodoc -r guide/html
 }

Reply via email to