summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chinese/fcitx/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile
index 372af7061c3d..c244727eedba 100644
--- a/chinese/fcitx/Makefile
+++ b/chinese/fcitx/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fcitx
PORTVERSION= 1.8.2
+PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= http://www.linuxsir.com.cn/fcitx/
@@ -16,15 +17,15 @@ COMMENT= A simple and fast GBK Chinese XIM server
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
USE_XLIB= yes
-USE_REINPLACE= yes
+USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} -e 's#usr/share#usr/local/share#g' ${WRKSRC}/Makefile ${WRKSRC}/ime.h
@${REINPLACE_CMD} -e 's#usr/bin#usr/local/bin#g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's#zh_CN.GB2312#zh_CN.EUC#g' ${WRKSRC}/window.c
@${REINPLACE_CMD} -e 's#zh_CN.gb2312#zh_CN.EUC#g' ${WRKSRC}/xim.c
- @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
- ${WRKSRC}/IMdkit/lib/IMConn.c
+ @${REINPLACE_CMD} -e 's#zh_CN.GBK#zh_CN.EUC#g' ${WRKSRC}/tools.c
+ @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' ${WRKSRC}/IMdkit/lib/IMConn.c
post-install:
@${CAT} ${PKGMESSAGE}