Update libchewing to 0.4.0. What's New in libchewing 0.4.0 (Apr 11, 2014) --------------------------------------------------------- * Add the following APIs: - Userphrase manipulation - chewing_userphrase_enumerate - chewing_userphrase_has_next - chewing_userphrase_get - chewing_userphrase_add - chewing_userphrase_remove - chewing_userphrase_lookup - Keyboardless action - chewing_cand_open - chewing_cand_close - chewing_cand_string_by_index_static - chewing_cand_choose_by_index - chewing_cand_list_first - chewing_cand_list_last - chewing_cand_list_has_next - chewing_cand_list_has_prev - chewing_cand_list_next - chewing_cand_list_prev - chewing_commit_preedit_buf - chewing_clean_preedit_buf - chewing_clean_bopomofo_buf - Bopomofo buffer - chewing_bopomofo_Check - chewing_bopomofo_String_static - Static API - chewing_aux_String_static - chewing_buffer_String_static - chewing_cand_String_static - chewing_commit_String_static - chewing_kbtype_String_static - Misc - chewing_new2 * Dictionary format: - Remove text data support - Introduce platform independent binary data representation - Move binary data to share/libchewing/* * Userphrase format: - Support SQLite-based user phrase storage and manipulation * New coding style: - Use scripts/indent.sh to change coding style * Bug fixed: - Fix chewing_zuin_Check wrong return value #62 - Fix numlock key cannot output number #45 - Fix negative frequency problem #75 - Fix cannot select candidate when symbol exists #79 - Avoid clearing the buffer when Up arrow key is pressed and escCleanAllBuf is 1. - Fix cannot handle numlock 9 correctly #88 - Fix invalid characters are committed when pre-edit buffer is full - Fix AutoLearnPhrase cannot fill correct wordSeq #108 - Fix wrong auto learn when symbol in between #112 - Fix missing rpl_malloc for cross compilation #118 - Fix '\n' appear in symbol table #126 - Reopen candidate list for symbols with down key #127 #135 - Let up key close candidate list of symbols #131 #138 * Misc: - Add `make check' in cmake build - Change MAX_UTF8_SIZE to 4 - Update official website URL - Use CreateFileA() instead of CreateFile() to stick with the ANSI API - Do not check phrase longer than MAX_PHRASE_LEN - Implement dynamic programming phrasing algorithm #73 - Clean bopomofo buffer when mode change to English mode #89 #97 - Update README to GFM. - Replace 'INCLUDE' with 'AM_CPPFLAGS' #68 #114 #116 - Use [Shift]+[-] to input EM DASH (u+2014) as default #113 #124 - Use Backspace to close candidate window #128 - Use PgUp/PgDn to turn pages of candidates #129 - Update Windows default search path #78 - The word "zuin", "Zhuyin" are obsolete terms for "Bopomofo" - Add const whenever possible in several APIs - Toggle shape mode with shift-space #141 #142 * Successful stories: - chewing-windows-tsf project provides Text Services Framework support for Microsoft Windows.diff -r1.8 -r1.9 pkgsrc/inputmethod/libchewing/Makefile
(obache)
@@ -1,20 +1,23 @@ | @@ -1,20 +1,23 @@ | |||
1 | # $NetBSD: Makefile,v 1.8 2013/08/10 09:14:22 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.9 2014/08/02 04:54:07 obache Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= libchewing-0.3.5 | 4 | DISTNAME= libchewing-0.4.0 | |
5 | CATEGORIES= chinese inputmethod | 5 | CATEGORIES= chinese inputmethod | |
6 | MASTER_SITES= http://chewing.googlecode.com/files/ | 6 | MASTER_SITES= https://github.com/chewing/libchewing/releases/download/v${PKGVERSION_NOREV}/ | |
7 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.bz2 | |
8 | 8 | |||
9 | MAINTAINER= obache@NetBSD.org | 9 | MAINTAINER= obache@NetBSD.org | |
10 | HOMEPAGE= http://chewing.im/ | 10 | HOMEPAGE= http://chewing.im/ | |
11 | COMMENT= The intelligent phonetic input method library | 11 | COMMENT= The intelligent phonetic input method library | |
12 | LICENSE= gnu-lgpl-v2.1 | 12 | LICENSE= gnu-lgpl-v2.1 | |
13 | 13 | |||
14 | USE_LIBTOOL= yes | 14 | USE_LIBTOOL= yes | |
15 | GNU_CONFIGURE= yes | 15 | GNU_CONFIGURE= yes | |
16 | INFO_FILES= yes | 16 | INFO_FILES= yes | |
17 | 17 | |||
18 | PKGCONFIG_OVERRIDE= chewing.pc.in | 18 | PKGCONFIG_OVERRIDE= chewing.pc.in | |
19 | 19 | |||
20 | TEST_TARGET= check | |||
21 | ||||
22 | .include "../../databases/sqlite3/buildlink3.mk" | |||
20 | .include "../../mk/bsd.pkg.mk" | 23 | .include "../../mk/bsd.pkg.mk" |
@@ -1,17 +1,14 @@ | @@ -1,17 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2013/08/10 09:14:22 obache Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2014/08/02 04:54:07 obache Exp $ | |
2 | include/chewing/chewing-compat.h | |||
2 | include/chewing/chewing.h | 3 | include/chewing/chewing.h | |
3 | include/chewing/chewingio.h | 4 | include/chewing/chewingio.h | |
4 | include/chewing/global.h | 5 | include/chewing/global.h | |
5 | include/chewing/mod_aux.h | 6 | include/chewing/mod_aux.h | |
6 | info/libchewing.info | 7 | info/libchewing.info | |
7 | lib/libchewing.la | 8 | lib/libchewing.la | |
8 | lib/libchewing/ch_index_begin.dat | |||
9 | lib/libchewing/ch_index_phone.dat | |||
10 | lib/libchewing/dict.dat | |||
11 | lib/libchewing/fonetree.dat | |||
12 | lib/libchewing/ph_index.dat | |||
13 | lib/libchewing/pinyin.tab | |||
14 | lib/libchewing/swkb.dat | |||
15 | lib/libchewing/symbols.dat | |||
16 | lib/libchewing/us_freq.dat | |||
17 | lib/pkgconfig/chewing.pc | 9 | lib/pkgconfig/chewing.pc | |
10 | share/libchewing/dictionary.dat | |||
11 | share/libchewing/index_tree.dat | |||
12 | share/libchewing/pinyin.tab | |||
13 | share/libchewing/swkb.dat | |||
14 | share/libchewing/symbols.dat |
@@ -1,13 +1,15 @@ | @@ -1,13 +1,15 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.7 2009/11/24 11:31:04 obache Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.8 2014/08/02 04:54:07 obache Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= libchewing | 3 | BUILDLINK_TREE+= libchewing | |
4 | 4 | |||
5 | .if !defined(LIBCHEWING_BUILDLINK3_MK) | 5 | .if !defined(LIBCHEWING_BUILDLINK3_MK) | |
6 | LIBCHEWING_BUILDLINK3_MK:= | 6 | LIBCHEWING_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.libchewing+= libchewing>=0.3.2 | 8 | BUILDLINK_API_DEPENDS.libchewing+= libchewing>=0.3.2 | |
9 | BUILDLINK_ABI_DEPENDS.libchewing+= libchewing>=0.3.2 | 9 | BUILDLINK_ABI_DEPENDS.libchewing+= libchewing>=0.4.0 | |
10 | BUILDLINK_PKGSRCDIR.libchewing?= ../../inputmethod/libchewing | 10 | BUILDLINK_PKGSRCDIR.libchewing?= ../../inputmethod/libchewing | |
11 | ||||
12 | .include "../../databases/sqlite3/buildlink3.mk" | |||
11 | .endif # LIBCHEWING_BUILDLINK3_MK | 13 | .endif # LIBCHEWING_BUILDLINK3_MK | |
12 | 14 | |||
13 | BUILDLINK_TREE+= -libchewing | 15 | BUILDLINK_TREE+= -libchewing |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.7 2013/08/10 09:14:22 obache Exp $ | 1 | $NetBSD: distinfo,v 1.8 2014/08/02 04:54:07 obache Exp $ | |
2 | 2 | |||
3 | SHA1 (libchewing-0.3.5.tar.bz2) = 5ee3941f0f62fa14fbda53e1032970b04a7a88b7 | 3 | SHA1 (libchewing-0.4.0.tar.bz2) = 7409b0a6753e14510c96574714dcec86c7b10138 | |
4 | RMD160 (libchewing-0.3.5.tar.bz2) = 02e571d1441f6397efe815d3812acc0f70c2d203 | 4 | RMD160 (libchewing-0.4.0.tar.bz2) = 7abc4191e0295d566b1409c12d593ee0e4b50637 | |
5 | Size (libchewing-0.3.5.tar.bz2) = 1978489 bytes | 5 | Size (libchewing-0.4.0.tar.bz2) = 3014558 bytes | |
6 | SHA1 (patch-configure) = 1dac333234433e9cc52dbe1625271eccf3e631ba | 6 | SHA1 (patch-configure) = 2f855e174fa486932dea90d013e525c1c5ef24a1 | |
7 | SHA1 (patch-configure.ac) = bb1d458d4f32c461a746dc88fb5019e790240af9 | 7 | SHA1 (patch-configure.ac) = 2a47e597f14cf363055f5b8409289f6edbc544e2 |
@@ -1,15 +1,49 @@ | @@ -1,15 +1,49 @@ | |||
1 | $NetBSD: patch-configure,v 1.1 2013/08/10 09:14:22 obache Exp $ | 1 | $NetBSD: patch-configure,v 1.2 2014/08/02 04:54:07 obache Exp $ | |
2 | 2 | |||
3 | * test(1) portability fix | 3 | * test(1) portability fix | |
4 | https://github.com/chewing/libchewing/pull/158 | |||
4 | 5 | |||
5 | --- configure.orig 2013-08-10 08:57:00.000000000 +0000 | 6 | --- configure.orig 2014-04-11 01:49:45.000000000 +0000 | |
6 | +++ configure | 7 | +++ configure | |
7 | @@ -13368,7 +13368,7 @@ CC_FOR_BUILD=${CC_FOR_BUILD-${CC}} | 8 | @@ -13212,7 +13212,7 @@ else | |
9 | with_sqlite3=yes | |||
10 | fi | |||
11 | ||||
12 | - if test x"$with_sqlite3" == x"yes"; then | |||
13 | + if test x"$with_sqlite3" = x"yes"; then | |||
14 | WITH_SQLITE3_TRUE= | |||
15 | WITH_SQLITE3_FALSE='#' | |||
16 | else | |||
17 | @@ -13229,7 +13229,7 @@ else | |||
18 | with_internal_sqlite3=no | |||
19 | fi | |||
20 | ||||
21 | - if test x"$with_internal_sqlite3" == x"yes"; then | |||
22 | + if test x"$with_internal_sqlite3" = x"yes"; then | |||
23 | WITH_INTERNAL_SQLITE3_TRUE= | |||
24 | WITH_INTERNAL_SQLITE3_FALSE='#' | |||
25 | else | |||
26 | @@ -13239,12 +13239,12 @@ fi | |||
27 | ||||
28 | ||||
29 | # for sqlite | |||
30 | -if test x"$with_sqlite3" == x"yes"; then : | |||
31 | +if test x"$with_sqlite3" = x"yes"; then : | |||
32 | ||||
33 | ||||
34 | $as_echo "#define WITH_SQLITE3 1" >>confdefs.h | |||
35 | ||||
36 | - if test x"$with_internal_sqlite3" == x"no"; then : | |||
37 | + if test x"$with_internal_sqlite3" = x"no"; then : | |||
38 | ||||
39 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open" >&5 | |||
40 | $as_echo_n "checking for library containing sqlite3_open... " >&6; } | |||
41 | @@ -14065,7 +14065,7 @@ CC_FOR_BUILD=${CC_FOR_BUILD-${CC}} | |||
42 | AM_CFLAGS="$AM_CFLAGS -Wall $CFLAGS" | |||
8 | 43 | |||
9 | # Default CFLAGS | 44 | # Add '_GNU_SOURCE' for asprintf | |
10 | AM_CFLAGS="$CFLAGS -Wall" | |||
11 | -if test x$ac_cv_func_asprintf == xyes; then : | 45 | -if test x$ac_cv_func_asprintf == xyes; then : | |
12 | +if test x$ac_cv_func_asprintf = xyes; then : | 46 | +if test x$ac_cv_func_asprintf = xyes; then : | |
13 | AM_CPPFLAGS="$AM_CPPFLAGS -D_GNU_SOURCE" | 47 | DEFAULT_CPPFLAGS="$DEFAULT_CPPFLAGS -D_GNU_SOURCE" | |
14 | fi | 48 | fi | |
15 | 49 |
@@ -1,15 +1,39 @@ | @@ -1,15 +1,39 @@ | |||
1 | $NetBSD: patch-configure.ac,v 1.1 2013/08/10 09:14:22 obache Exp $ | 1 | $NetBSD: patch-configure.ac,v 1.2 2014/08/02 04:54:07 obache Exp $ | |
2 | 2 | |||
3 | * test(1) portability fix | 3 | * test(1) portability fix | |
4 | https://github.com/chewing/libchewing/pull/158 | |||
4 | 5 | |||
5 | --- configure.ac.orig 2013-07-28 07:30:39.000000000 +0000 | 6 | --- configure.ac.orig 2014-04-11 01:24:52.000000000 +0000 | |
6 | +++ configure.ac | 7 | +++ configure.ac | |
7 | @@ -87,7 +87,7 @@ AC_SUBST(CC_FOR_BUILD) | 8 | @@ -79,18 +79,18 @@ AC_ARG_WITH([sqlite3], | |
9 | AS_HELP_STRING([--with-sqlite3], [Use sqlite3 to store userphrase @<:@default=yes@:>@]), | |||
10 | [], | |||
11 | [with_sqlite3=yes]) | |||
12 | -AM_CONDITIONAL([WITH_SQLITE3], [test x"$with_sqlite3" == x"yes"]) | |||
13 | +AM_CONDITIONAL([WITH_SQLITE3], [test x"$with_sqlite3" = x"yes"]) | |||
8 | 14 | |||
9 | # Default CFLAGS | 15 | AC_ARG_WITH([internal-sqlite3], | |
10 | AM_CFLAGS="$CFLAGS -Wall" | 16 | AS_HELP_STRING([--with-internal-sqlite3], [Use internal sqlite3 instead of system-wide @<:@default=no@:>@]), | |
17 | [], | |||
18 | [with_internal_sqlite3=no]) | |||
19 | -AM_CONDITIONAL([WITH_INTERNAL_SQLITE3], [test x"$with_internal_sqlite3" == x"yes"]) | |||
20 | +AM_CONDITIONAL([WITH_INTERNAL_SQLITE3], [test x"$with_internal_sqlite3" = x"yes"]) | |||
21 | ||||
22 | # for sqlite | |||
23 | -AS_IF([test x"$with_sqlite3" == x"yes"], [ | |||
24 | +AS_IF([test x"$with_sqlite3" = x"yes"], [ | |||
25 | AC_DEFINE([WITH_SQLITE3], [1], [Use sqlite3 to store userphrase]) | |||
26 | - AS_IF([test x"$with_internal_sqlite3" == x"no"], | |||
27 | + AS_IF([test x"$with_internal_sqlite3" = x"no"], | |||
28 | [ | |||
29 | AC_SEARCH_LIBS([sqlite3_open], [sqlite3], | |||
30 | [AS_IF([test x$ac_cv_search_sqlite3_open != x"none required"], | |||
31 | @@ -126,7 +126,7 @@ AC_SUBST(CC_FOR_BUILD) | |||
32 | AM_CFLAGS="$AM_CFLAGS -Wall $CFLAGS" | |||
33 | ||||
34 | # Add '_GNU_SOURCE' for asprintf | |||
11 | -AS_IF([test x$ac_cv_func_asprintf == xyes], | 35 | -AS_IF([test x$ac_cv_func_asprintf == xyes], | |
12 | +AS_IF([test x$ac_cv_func_asprintf = xyes], | 36 | +AS_IF([test x$ac_cv_func_asprintf = xyes], | |
13 | [AM_CPPFLAGS="$AM_CPPFLAGS -D_GNU_SOURCE"]) | 37 | [DEFAULT_CPPFLAGS="$DEFAULT_CPPFLAGS -D_GNU_SOURCE"]) | |
14 | 38 | |||
15 | AX_WITH_CURSES | 39 | AX_WITH_CURSES |