mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
sci-mathematics/octave: fix doc build
Closes: https://bugs.gentoo.org/971018 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/46174 Closes: https://github.com/gentoo/gentoo/pull/46174 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
https://github.com/gnu-octave/octave/commit/e21b1898cb6507dff38679c25b4db7fde44de883
|
||||
From e21b1898cb6507dff38679c25b4db7fde44de883 Mon Sep 17 00:00:00 2001
|
||||
From: "Dmitri A. Sergatskov" <dasergatskov@gmail.com>
|
||||
Date: Sun, 8 Mar 2026 16:08:04 -0400
|
||||
Subject: [PATCH] Fix Qt help generator for Texinfo 7.3 Function-Index output.
|
||||
|
||||
Texinfo 7.3 changed the HTML classes used for the function index.
|
||||
Update the Qt help generator to handle both the old and the new HTML
|
||||
forms when parsing Function-Index.html.
|
||||
|
||||
* mk-qthelp.pl: Accept new printindex-style function
|
||||
index table classes in Function-Index.html parsing.
|
||||
|
||||
diff --git a/doc/interpreter/mk-qthelp.pl b/doc/interpreter/mk-qthelp.pl
|
||||
index 475ba20b22..a68af8b0ad 100755
|
||||
--- a/doc/interpreter/mk-qthelp.pl
|
||||
+++ b/doc/interpreter/mk-qthelp.pl
|
||||
@@ -72,7 +72,12 @@ open ($HTML, "<", $htmlfname) or die "Unable to open $htmlfname";
|
||||
|
||||
# Skip through preamble of file to find start of list
|
||||
while (defined ($_ = <$HTML>)
|
||||
- and ! /^<table class="(?:index-fn|fn-entries)/ ) {;}
|
||||
+ and ! /<table\b[^>]*\bclass="[^"]*\b
|
||||
+ (?:
|
||||
+ index-fn |
|
||||
+ fn-entries |
|
||||
+ fn-entries-printindex
|
||||
+ )\b/x ) {;}
|
||||
|
||||
die "Function-Index.html: reached EOF without finding data start pattern"
|
||||
if eof ($HTML);
|
||||
--
|
||||
2.49.1
|
||||
|
||||
@@ -104,6 +104,7 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.1.0-pkgbuilddir.patch
|
||||
"${FILESDIR}"/${PN}-9.2.0-fix-qt-help-generator-for-texinfo-7.3.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -104,6 +104,7 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.1.0-pkgbuilddir.patch
|
||||
"${FILESDIR}"/${PN}-9.2.0-fix-qt-help-generator-for-texinfo-7.3.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user