ports/96384: [PATCH] chinese/libchewing: fix build on 4.x
Rong-En Fan
rafan at infor.org
Wed Apr 26 23:00:37 UTC 2006
>Number: 96384
>Category: ports
>Synopsis: [PATCH] chinese/libchewing: fix build on 4.x
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 26 23:00:35 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Rong-En Fan
>Release: FreeBSD 6.0
>Organization:
NTU CSIE
>Environment:
>Description:
Fix build on 4.x. Dont use C99 syntax.
Added file(s):
- files/patch-src-hanyupinying.c
Port maintainer (clsung at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- libchewing-0.2.7_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/chinese/libchewing/files/patch-src-hanyupinying.c /home/rafan/tmp/ports/libchewing/files/patch-src-hanyupinying.c
--- /usr/ports/chinese/libchewing/files/patch-src-hanyupinying.c Thu Jan 1 08:00:00 1970
+++ /home/rafan/tmp/ports/libchewing/files/patch-src-hanyupinying.c Thu Apr 27 06:51:55 2006
@@ -0,0 +1,32 @@
+--- src/hanyupinying.c.orig Thu Apr 27 06:42:41 2006
++++ src/hanyupinying.c Thu Apr 27 06:43:31 2006
+@@ -26,7 +26,6 @@
+
+ static PinYingZuinMap* InitialsMap()
+ {
+- HANYU_INITIALS = 26;
+ static PinYingZuinMap map[ 26 ] = {
+ {"b" , "1"}, {"p" , "q"}, {"m" , "a"}, {"f" ,"z"},
+ {"d" , "2"}, {"t" , "w"}, {"n" , "s"}, {"l" ,"x"},
+@@ -36,12 +35,12 @@
+ {"shi", "g"}, {"sh", "g"}, {"ri", "b"}, {"r" ,"b"},
+ {"z" , "y"}, {"c" , "h"}, {"s" , "n"}
+ };
++ HANYU_INITIALS = 26;
+ return map;
+ }
+
+ static PinYingZuinMap* FinalsMap()
+ {
+- HANYU_FINALS = 72;
+ static PinYingZuinMap map[ 72 ] = {
+ {"uang","j;"}, {"wang","j;"},
+ {"wong","j/"}, {"weng","j/"},
+@@ -92,6 +91,7 @@
+ {"u","j"},
+ {"E",","}
+ };
++ HANYU_FINALS = 72;
+ return map;
+ }
+
--- libchewing-0.2.7_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list