summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chinese/xcin25/Makefile4
-rw-r--r--chinese/xcin25/files/patch-chewing::sort_word.c10
2 files changed, 13 insertions, 1 deletions
diff --git a/chinese/xcin25/Makefile b/chinese/xcin25/Makefile
index 1fc442b4549a..7bfe2334364b 100644
--- a/chinese/xcin25/Makefile
+++ b/chinese/xcin25/Makefile
@@ -58,8 +58,10 @@ pre-fetch:
@${ECHO} --
.endif
+post-extract:
+ ${MV} ${WRKDIR}/chewing ${WRKSRC}/src/Cinput
+
post-patch:
- @mv ${WRKDIR}/chewing ${WRKSRC}/src/Cinput
@cd ${WRKSRC}/src/Cinput/chewing; ${SH} ./patch_chewing
post-install:
diff --git a/chinese/xcin25/files/patch-chewing::sort_word.c b/chinese/xcin25/files/patch-chewing::sort_word.c
new file mode 100644
index 000000000000..933d29f960c6
--- /dev/null
+++ b/chinese/xcin25/files/patch-chewing::sort_word.c
@@ -0,0 +1,10 @@
+--- src/Cinput/chewing/sort_word.c.orig Sun Aug 11 12:32:03 2002
++++ src/Cinput/chewing/sort_word.c Sun Aug 11 12:32:20 2002
+@@ -40,6 +40,7 @@
+ Key2Pho(phoneBuf, keyBuf, KB_DEFAULT, 1) ;
+ word_data[nWord].num = PhoneBg2Uint(phoneBuf) ;
+ nWord++ ;
++ return 0;
+ }
+
+ void Output()