Sat Aug 2 04:54:07 2014 UTC ()
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.


(obache)
diff -r1.8 -r1.9 pkgsrc/inputmethod/libchewing/Makefile
diff -r1.4 -r1.5 pkgsrc/inputmethod/libchewing/PLIST
diff -r1.7 -r1.8 pkgsrc/inputmethod/libchewing/buildlink3.mk
diff -r1.7 -r1.8 pkgsrc/inputmethod/libchewing/distinfo
diff -r1.1 -r1.2 pkgsrc/inputmethod/libchewing/patches/patch-configure
diff -r1.1 -r1.2 pkgsrc/inputmethod/libchewing/patches/patch-configure.ac

cvs diff -r1.8 -r1.9 pkgsrc/inputmethod/libchewing/Makefile (expand / switch to unified diff)

--- pkgsrc/inputmethod/libchewing/Makefile 2013/08/10 09:14:22 1.8
+++ pkgsrc/inputmethod/libchewing/Makefile 2014/08/02 04:54:07 1.9
@@ -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
4DISTNAME= libchewing-0.3.5 4DISTNAME= libchewing-0.4.0
5CATEGORIES= chinese inputmethod 5CATEGORIES= chinese inputmethod
6MASTER_SITES= http://chewing.googlecode.com/files/ 6MASTER_SITES= https://github.com/chewing/libchewing/releases/download/v${PKGVERSION_NOREV}/
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= obache@NetBSD.org 9MAINTAINER= obache@NetBSD.org
10HOMEPAGE= http://chewing.im/ 10HOMEPAGE= http://chewing.im/
11COMMENT= The intelligent phonetic input method library 11COMMENT= The intelligent phonetic input method library
12LICENSE= gnu-lgpl-v2.1 12LICENSE= gnu-lgpl-v2.1
13 13
14USE_LIBTOOL= yes 14USE_LIBTOOL= yes
15GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
16INFO_FILES= yes 16INFO_FILES= yes
17 17
18PKGCONFIG_OVERRIDE= chewing.pc.in 18PKGCONFIG_OVERRIDE= chewing.pc.in
19 19
 20TEST_TARGET= check
 21
 22.include "../../databases/sqlite3/buildlink3.mk"
20.include "../../mk/bsd.pkg.mk" 23.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/inputmethod/libchewing/PLIST (expand / switch to unified diff)

--- pkgsrc/inputmethod/libchewing/PLIST 2013/08/10 09:14:22 1.4
+++ pkgsrc/inputmethod/libchewing/PLIST 2014/08/02 04:54:07 1.5
@@ -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 $
 2include/chewing/chewing-compat.h
2include/chewing/chewing.h 3include/chewing/chewing.h
3include/chewing/chewingio.h 4include/chewing/chewingio.h
4include/chewing/global.h 5include/chewing/global.h
5include/chewing/mod_aux.h 6include/chewing/mod_aux.h
6info/libchewing.info 7info/libchewing.info
7lib/libchewing.la 8lib/libchewing.la
8lib/libchewing/ch_index_begin.dat 
9lib/libchewing/ch_index_phone.dat 
10lib/libchewing/dict.dat 
11lib/libchewing/fonetree.dat 
12lib/libchewing/ph_index.dat 
13lib/libchewing/pinyin.tab 
14lib/libchewing/swkb.dat 
15lib/libchewing/symbols.dat 
16lib/libchewing/us_freq.dat 
17lib/pkgconfig/chewing.pc 9lib/pkgconfig/chewing.pc
 10share/libchewing/dictionary.dat
 11share/libchewing/index_tree.dat
 12share/libchewing/pinyin.tab
 13share/libchewing/swkb.dat
 14share/libchewing/symbols.dat

cvs diff -r1.7 -r1.8 pkgsrc/inputmethod/libchewing/buildlink3.mk (expand / switch to unified diff)

--- pkgsrc/inputmethod/libchewing/buildlink3.mk 2009/11/24 11:31:04 1.7
+++ pkgsrc/inputmethod/libchewing/buildlink3.mk 2014/08/02 04:54:07 1.8
@@ -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
3BUILDLINK_TREE+= libchewing 3BUILDLINK_TREE+= libchewing
4 4
5.if !defined(LIBCHEWING_BUILDLINK3_MK) 5.if !defined(LIBCHEWING_BUILDLINK3_MK)
6LIBCHEWING_BUILDLINK3_MK:= 6LIBCHEWING_BUILDLINK3_MK:=
7 7
8BUILDLINK_API_DEPENDS.libchewing+= libchewing>=0.3.2 8BUILDLINK_API_DEPENDS.libchewing+= libchewing>=0.3.2
9BUILDLINK_ABI_DEPENDS.libchewing+= libchewing>=0.3.2 9BUILDLINK_ABI_DEPENDS.libchewing+= libchewing>=0.4.0
10BUILDLINK_PKGSRCDIR.libchewing?= ../../inputmethod/libchewing 10BUILDLINK_PKGSRCDIR.libchewing?= ../../inputmethod/libchewing
 11
 12.include "../../databases/sqlite3/buildlink3.mk"
11.endif # LIBCHEWING_BUILDLINK3_MK 13.endif # LIBCHEWING_BUILDLINK3_MK
12 14
13BUILDLINK_TREE+= -libchewing 15BUILDLINK_TREE+= -libchewing

cvs diff -r1.7 -r1.8 pkgsrc/inputmethod/libchewing/distinfo (expand / switch to unified diff)

--- pkgsrc/inputmethod/libchewing/distinfo 2013/08/10 09:14:22 1.7
+++ pkgsrc/inputmethod/libchewing/distinfo 2014/08/02 04:54:07 1.8
@@ -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
3SHA1 (libchewing-0.3.5.tar.bz2) = 5ee3941f0f62fa14fbda53e1032970b04a7a88b7 3SHA1 (libchewing-0.4.0.tar.bz2) = 7409b0a6753e14510c96574714dcec86c7b10138
4RMD160 (libchewing-0.3.5.tar.bz2) = 02e571d1441f6397efe815d3812acc0f70c2d203 4RMD160 (libchewing-0.4.0.tar.bz2) = 7abc4191e0295d566b1409c12d593ee0e4b50637
5Size (libchewing-0.3.5.tar.bz2) = 1978489 bytes 5Size (libchewing-0.4.0.tar.bz2) = 3014558 bytes
6SHA1 (patch-configure) = 1dac333234433e9cc52dbe1625271eccf3e631ba 6SHA1 (patch-configure) = 2f855e174fa486932dea90d013e525c1c5ef24a1
7SHA1 (patch-configure.ac) = bb1d458d4f32c461a746dc88fb5019e790240af9 7SHA1 (patch-configure.ac) = 2a47e597f14cf363055f5b8409289f6edbc544e2

cvs diff -r1.1 -r1.2 pkgsrc/inputmethod/libchewing/patches/Attic/patch-configure (expand / switch to unified diff)

--- pkgsrc/inputmethod/libchewing/patches/Attic/patch-configure 2013/08/10 09:14:22 1.1
+++ pkgsrc/inputmethod/libchewing/patches/Attic/patch-configure 2014/08/02 04:54:07 1.2
@@ -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

cvs diff -r1.1 -r1.2 pkgsrc/inputmethod/libchewing/patches/Attic/patch-configure.ac (expand / switch to unified diff)

--- pkgsrc/inputmethod/libchewing/patches/Attic/patch-configure.ac 2013/08/10 09:14:22 1.1
+++ pkgsrc/inputmethod/libchewing/patches/Attic/patch-configure.ac 2014/08/02 04:54:07 1.2
@@ -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