git: 423c956927c3 - main - print/texlive-texmf: Fix document compilation

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 17:29:34 UTC
The branch main has been updated by bofh:

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

commit 423c956927c30b66e85f295dc42abb67b89f3d63
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2024-09-08 16:07:00 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-09-08 17:29:10 +0000

    print/texlive-texmf: Fix document compilation
    
    Texlive/Latex package xfrac causes document compilation to fail
    
    PR:             279711
    Reported by:    zdeinji6w@mozmail.com
    Approved by:    tex
---
 print/texlive-texmf/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/print/texlive-texmf/Makefile b/print/texlive-texmf/Makefile
index 7a2a3c44c9b1..96eaf9525894 100644
--- a/print/texlive-texmf/Makefile
+++ b/print/texlive-texmf/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	texlive
 DISTVERSION=	${TEXLIVE_VERSION}
+PORTREVISION=	1
 CATEGORIES=	print
 MASTER_SITES=	LOCAL/tex
 PKGNAMESUFFIX=	-texmf
@@ -32,6 +33,9 @@ do-install:
 		${STAGEDIR}${PREFIX}/share/texmf-dist/tex/latex/prettytok/prettytok-decode-8bit.py
 	${REINPLACE_CMD} -i '' -e '1s|/usr/bin/perl|${perl_CMD}|' \
 		${STAGEDIR}${PREFIX}/share/texmf-dist/scripts/eolang/eolang.pl
+	# https://ctan.org/ctan-ann/id/mailman.9290.1717583628.3764.ctan-ann@ctan.org
+	${REINPLACE_CMD} -e 's|IfInstanceExistTF|IfInstanceExistsTF|g' \
+		${STAGEDIR}${PREFIX}/share/texmf-dist/tex/latex/xfrac/xfrac.sty
 	${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -not -type d | ${SORT} | \
 		${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
 	${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -type d -empty | ${SORT} -r | \