git: fd641a93ede8 - main - math/octave-forge-generate_html: Fix install.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Sat, 09 Apr 2022 03:26:41 UTC
The branch main has been updated by stephen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fd641a93ede8f55ecce87c33ec036eb845134d05

commit fd641a93ede8f55ecce87c33ec036eb845134d05
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-04-09 03:26:10 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-04-09 03:26:10 +0000

    math/octave-forge-generate_html: Fix install.
---
 math/octave-forge-generate_html/Makefile             |  2 +-
 .../files/patch-txi2index.m                          | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/math/octave-forge-generate_html/Makefile b/math/octave-forge-generate_html/Makefile
index ab958ece57b7..95db1040c586 100644
--- a/math/octave-forge-generate_html/Makefile
+++ b/math/octave-forge-generate_html/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	octave-forge-generate_html
 PORTVERSION=	0.3.2
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	math
 
 MAINTAINER=	stephen@FreeBSD.org
diff --git a/math/octave-forge-generate_html/files/patch-txi2index.m b/math/octave-forge-generate_html/files/patch-txi2index.m
new file mode 100644
index 000000000000..5e2d859511fb
--- /dev/null
+++ b/math/octave-forge-generate_html/files/patch-txi2index.m
@@ -0,0 +1,20 @@
+--- inst/txi2index.m.orig	2022-04-08 22:22:07.568707000 -0500
++++ inst/txi2index.m	2022-04-08 22:22:27.662102000 -0500
+@@ -86,7 +86,7 @@
+       elseif (strncmpi (SECTION, line, length (SECTION)))
+         section = strtrim (line (length (SECTION)+1:end));
+         if (idx == 0 || !isempty (index.provides{idx}.functions))
+-          idx ++;
++          idx++;
+         endif
+ 
+         index.provides{idx} = struct ();
+@@ -94,7 +94,7 @@
+         index.provides{idx}.functions = {};
+       elseif (strncmpi (DOCSTRING, line, length (DOCSTRING)))
+         if (idx == 0)
+-          idx ++;
++          idx++;
+ 
+           index.provides{idx} = struct ();
+           index.provides{idx}.category = default_section;