commit:     e336408370516e14fd34bb4be23cf5528825e05b
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  8 13:09:34 2022 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 13:10:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3364083

sci-mathematics/pari: disable "help" tests in the absence of USE=doc.

Closes: https://bugs.gentoo.org/864289
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/pari/pari-2.13.4-r1.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sci-mathematics/pari/pari-2.13.4-r1.ebuild 
b/sci-mathematics/pari/pari-2.13.4-r1.ebuild
index 4a13d42f694f..a3404e9b1593 100644
--- a/sci-mathematics/pari/pari-2.13.4-r1.ebuild
+++ b/sci-mathematics/pari/pari-2.13.4-r1.ebuild
@@ -48,6 +48,15 @@ src_prepare() {
                -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
                -e 's:"acroread":"xdg-open":' \
                doc/gphelp.in || die "Failed to fix doc dir"
+
+       # These tests fail when LaTeX is not installed (which we don't
+       # require without USE=doc), most likely due to output formatting
+       # issues but I haven't deleted my LaTeX installation to check.
+       # There's no real upstream support for enabling/disabling the LaTeX
+       # docs, so this is probably the correctest way to skip these tests.
+       if ! use doc; then
+               rm src/test/{in,32}/help || die
+       fi
 }
 
 src_configure() {

Reply via email to