Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2019 14:02:47 +0000 (UTC)
From:      MANTANI Nobutaka <nobutaka@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512179 - head/japanese/anthy
Message-ID:  <201909161402.x8GE2leE009479@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nobutaka
Date: Mon Sep 16 14:02:47 2019
New Revision: 512179
URL: https://svnweb.freebsd.org/changeset/ports/512179

Log:
  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

Modified:
  head/japanese/anthy/Makefile

Modified: head/japanese/anthy/Makefile
==============================================================================
--- head/japanese/anthy/Makefile	Mon Sep 16 12:43:13 2019	(r512178)
+++ head/japanese/anthy/Makefile	Mon Sep 16 14:02:47 2019	(r512179)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909161402.x8GE2leE009479>