From 648cd7f22bcd37f6b6d5cf53c79952241e87c043 Mon Sep 17 00:00:00 2001 From: MANTANI Nobutaka Date: Mon, 16 Sep 2019 14:02:47 +0000 Subject: Convert character encoding of src-util/rkhelper.c to fix a breakage of anthy-agent that garbled characters are returned if a numeral or a symbol is input. PR: 240614 Submitted by: nyan --- japanese/anthy/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'japanese/anthy/Makefile') diff --git a/japanese/anthy/Makefile b/japanese/anthy/Makefile index 8ab5b2c92daf..239be0d686f8 100644 --- a/japanese/anthy/Makefile +++ b/japanese/anthy/Makefile @@ -3,6 +3,7 @@ PORTNAME= anthy PORTVERSION= 0.4 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= japanese MASTER_SITES= DEBIAN @@ -16,7 +17,7 @@ LICENSE_COMB= multi LICENSE_FILE_GPLv2= ${WRKSRC}/alt-cannadic/COPYING LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING -USES= libtool pathfix pkgconfig +USES= iconv libtool pathfix pkgconfig USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -75,6 +76,8 @@ post-extract: post-patch: ${REINPLACE_CMD} -e \ 's| install-lispLISP||g' ${WRKSRC}/src-util/Makefile.in + ${CP} ${WRKSRC}/src-util/rkhelper.c ${WRKSRC}/src-util/rkhelper.c.orig + ${ICONV_CMD} -f utf-8 -t euc-jp ${WRKSRC}/src-util/rkhelper.c.orig > ${WRKSRC}/src-util/rkhelper.c post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR} -- cgit v1.2.3