From e336408370516e14fd34bb4be23cf5528825e05b Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 8 Aug 2022 09:09:34 -0400 Subject: sci-mathematics/pari: disable "help" tests in the absence of USE=doc. Closes: https://bugs.gentoo.org/864289 Signed-off-by: Michael Orlitzky --- sci-mathematics/pari/pari-2.13.4-r1.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sci-mathematics') 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() { -- cgit v1.2.3-65-gdbad