Date: Sun, 25 Jun 2023 18:10:05 GMT From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 627d9b8a64cd - main - chinese/libime: Fix build with llvm16 Message-ID: <202306251810.35PIA5tq095026@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=627d9b8a64cd6ad3beb69fc4b5a0e63e06a58ebe commit 627d9b8a64cd6ad3beb69fc4b5a0e63e06a58ebe Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-25 13:49:15 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-25 18:09:48 +0000 chinese/libime: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- chinese/libime/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chinese/libime/Makefile b/chinese/libime/Makefile index 64c4ccce69cf..7ac105beb7da 100644 --- a/chinese/libime/Makefile +++ b/chinese/libime/Makefile @@ -36,6 +36,17 @@ OPENGRAM_LM_TAR= lm_sc.arpa-20220810.tar.xz OPENGRAM_DICT_TAR= dict-20220810.tar.xz TABLE_DICT_TAR= table.tar.gz +.include <bsd.port.options.mk> + +post-patch: +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 + @${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \ + ${WRKSRC}/src/libime/core/kenlm/lm/trie_sort.hh \ + ${WRKSRC}/src/libime/core/kenlm/util/joint_sort.hh \ + ${WRKSRC}/src/libime/core/kenlm/util/sized_iterator.hh +.endif + + post-extract: ${CP} ${DISTDIR}/${DIST_SUBDIR}/${OPENGRAM_LM_TAR} ${WRKSRC}/data ${CP} ${DISTDIR}/${DIST_SUBDIR}/${OPENGRAM_DICT_TAR} ${WRKSRC}/data
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306251810.35PIA5tq095026>