commit:     8157ae9e6dcc1e4d64297d73f15ee22737c5acef
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 29 06:51:32 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 08:41:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8157ae9e

dev-ruby/kramdown: avoid broken latex test

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/kramdown/kramdown-2.5.1.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/kramdown/kramdown-2.5.1.ebuild 
b/dev-ruby/kramdown/kramdown-2.5.1.ebuild
index f8dc0ef058fd..bfb4c7a14112 100644
--- a/dev-ruby/kramdown/kramdown-2.5.1.ebuild
+++ b/dev-ruby/kramdown/kramdown-2.5.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -36,7 +36,11 @@ ruby_add_bdepend "doc? ( dev-ruby/rdoc )
        test? ( >=dev-ruby/minitest-5.0 )"
 
 all_ruby_prepare() {
-       if ! use latex; then
+       if use latex; then
+               # https://github.com/gettalong/kramdown/issues/820
+               sed -e "/EXCLUDE_LATEX_FILES 
=/a'test/testcases/block/14_table/table_with_footnote.text'," \
+                       -i test/test_files.rb || die
+       else
                # Remove latex tests. They will fail gracefully when latex isn't
                # present at all, but not when components are missing (most
                # notable ucs.sty).

Reply via email to