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 e8c2558f62)
This commit is contained in:
Robert Clausecker 2023-11-27 21:31:58 +01:00
parent 8848573087
commit 2b8cc87a75

View file

@ -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 \