git: 2b8cc87a75d6 - 2023Q4 - devel/schilybase: work around bug in gettext-0.22

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sun, 03 Dec 2023 10:20:02 UTC
The branch 2023Q4 has been updated by fuz:

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

commit 2b8cc87a75d6684adaa5cc8a57c8834db42fc812
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-11-27 20:31:58 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-12-03 10:19:52 +0000

    devel/schilybase: work around bug in gettext-0.22
    
    gettext 0.22 started to transcode PO files to UTF-8 before processing
    them, converting all msgids and messages to Unicode in the process.
    This breaks schilytools which assumes msgids are in ISO-8859-1 encoding.
    Work around the breakage using the new --no-convert option.  A bug
    report was filed with upstream in the hope that they may fix the bug.
    
    Reported by:    bugzeo <kiboto6933@eyeremind.com>
    See also:       https://savannah.gnu.org/news/?id=10378
    PR:             257905
    MFH:            2023Q4
    
    (cherry picked from commit e8c2558f623d87d044e0dec460f606a40a46d359)
---
 devel/schilybase/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devel/schilybase/Makefile b/devel/schilybase/Makefile
index aa4702c09cc5..d36b924d5fa1 100644
--- a/devel/schilybase/Makefile
+++ b/devel/schilybase/Makefile
@@ -1,4 +1,5 @@
 PORTNAME=	schilybase
+PORTREVISION=	1
 CATEGORIES=	devel
 
 COMMENT=	Support files and libraries for the schilytools
@@ -45,7 +46,7 @@ post-patch-PROFILE-off:
 	@${REINPLACE_CMD} -e '/^MK_FILES/s, [a-z]*_p.mk,,' ${WRKSRC}/*/Makefile
 
 post-build-NLS-on:
-	${SETENV} LC_ALL=de_DE.ISO8859-1 msgfmt -o ${WRKDIR}/SCHILY_utils.mo ${WRKSRC}/SCHILY_utils.po
+	msgfmt --no-convert -o ${WRKDIR}/SCHILY_utils.mo ${WRKSRC}/SCHILY_utils.po
 
 # all languages supported by FreeBSD
 _LANGUAGES=	C af am ar be bg ca cs da de el en es et eu fi fr ga he hi hr \