commit:     5ae969bcf357d9c0d7b5ed913ff46e48ccf25907
Author:     Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 25 03:49:47 2023 +0000
Commit:     Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Tue Apr 25 03:51:11 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ae969bc

dev-perl/HTML-FormatExternal: disable some failing test inputs

Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org>
Closes: https://bugs.gentoo.org/904076

 dev-perl/HTML-FormatExternal/HTML-FormatExternal-26.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dev-perl/HTML-FormatExternal/HTML-FormatExternal-26.ebuild 
b/dev-perl/HTML-FormatExternal/HTML-FormatExternal-26.ebuild
index 954b212ca422..5d3592da89dc 100644
--- a/dev-perl/HTML-FormatExternal/HTML-FormatExternal-26.ebuild
+++ b/dev-perl/HTML-FormatExternal/HTML-FormatExternal-26.ebuild
@@ -23,3 +23,14 @@ BDEPEND="${RDEPEND}
        dev-perl/Module-Build
        virtual/perl-ExtUtils-MakeMaker
 "
+
+src_prepare() {
+       # remove some test inputs that fail in w3m
+       # https://bugs.gentoo.org/904076
+       sed -i -e 's/-###/-/' t/FormatExternal.t || \
+               die "Couldn't replace -### test input"
+       sed -i -e 's/%57/-/' t/FormatExternal.t || \
+               die "Couldn't replace %57 test input"
+
+       eapply_user
+}

Reply via email to