aboutsummaryrefslogtreecommitdiff
path: root/japanese/anthy/Makefile
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2019-09-16 14:02:47 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2019-09-16 14:02:47 +0000
commit648cd7f22bcd37f6b6d5cf53c79952241e87c043 (patch)
treebca1c7b4b2d388e0dc941de4e45cc46ff6287977 /japanese/anthy/Makefile
parent360862c2cf5e9f86bfcc2b075e5f6718ea4d626f (diff)
downloadports-648cd7f22bcd37f6b6d5cf53c79952241e87c043.tar.gz
ports-648cd7f22bcd37f6b6d5cf53c79952241e87c043.zip
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
Notes
Notes: svn path=/head/; revision=512179
Diffstat (limited to 'japanese/anthy/Makefile')
-rw-r--r--japanese/anthy/Makefile5
1 files changed, 4 insertions, 1 deletions
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}