summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inputmethod/libchewing/Makefile9
-rw-r--r--inputmethod/libchewing/PLIST17
-rw-r--r--inputmethod/libchewing/buildlink3.mk6
-rw-r--r--inputmethod/libchewing/distinfo12
-rw-r--r--inputmethod/libchewing/patches/patch-configure46
-rw-r--r--inputmethod/libchewing/patches/patch-configure.ac36
6 files changed, 93 insertions, 33 deletions
diff --git a/inputmethod/libchewing/Makefile b/inputmethod/libchewing/Makefile
index fe3daba8613..ed74fb825f5 100644
--- a/inputmethod/libchewing/Makefile
+++ b/inputmethod/libchewing/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.8 2013/08/10 09:14:22 obache Exp $
+# $NetBSD: Makefile,v 1.9 2014/08/02 04:54:07 obache Exp $
#
-DISTNAME= libchewing-0.3.5
+DISTNAME= libchewing-0.4.0
CATEGORIES= chinese inputmethod
-MASTER_SITES= http://chewing.googlecode.com/files/
+MASTER_SITES= https://github.com/chewing/libchewing/releases/download/v${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= obache@NetBSD.org
@@ -17,4 +17,7 @@ INFO_FILES= yes
PKGCONFIG_OVERRIDE= chewing.pc.in
+TEST_TARGET= check
+
+.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/libchewing/PLIST b/inputmethod/libchewing/PLIST
index aa7925755f8..c7265ed1923 100644
--- a/inputmethod/libchewing/PLIST
+++ b/inputmethod/libchewing/PLIST
@@ -1,17 +1,14 @@
-@comment $NetBSD: PLIST,v 1.4 2013/08/10 09:14:22 obache Exp $
+@comment $NetBSD: PLIST,v 1.5 2014/08/02 04:54:07 obache Exp $
+include/chewing/chewing-compat.h
include/chewing/chewing.h
include/chewing/chewingio.h
include/chewing/global.h
include/chewing/mod_aux.h
info/libchewing.info
lib/libchewing.la
-lib/libchewing/ch_index_begin.dat
-lib/libchewing/ch_index_phone.dat
-lib/libchewing/dict.dat
-lib/libchewing/fonetree.dat
-lib/libchewing/ph_index.dat
-lib/libchewing/pinyin.tab
-lib/libchewing/swkb.dat
-lib/libchewing/symbols.dat
-lib/libchewing/us_freq.dat
lib/pkgconfig/chewing.pc
+share/libchewing/dictionary.dat
+share/libchewing/index_tree.dat
+share/libchewing/pinyin.tab
+share/libchewing/swkb.dat
+share/libchewing/symbols.dat
diff --git a/inputmethod/libchewing/buildlink3.mk b/inputmethod/libchewing/buildlink3.mk
index 94e39bda4a8..11ebea1711c 100644
--- a/inputmethod/libchewing/buildlink3.mk
+++ b/inputmethod/libchewing/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.7 2009/11/24 11:31:04 obache Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2014/08/02 04:54:07 obache Exp $
BUILDLINK_TREE+= libchewing
@@ -6,8 +6,10 @@ BUILDLINK_TREE+= libchewing
LIBCHEWING_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libchewing+= libchewing>=0.3.2
-BUILDLINK_ABI_DEPENDS.libchewing+= libchewing>=0.3.2
+BUILDLINK_ABI_DEPENDS.libchewing+= libchewing>=0.4.0
BUILDLINK_PKGSRCDIR.libchewing?= ../../inputmethod/libchewing
+
+.include "../../databases/sqlite3/buildlink3.mk"
.endif # LIBCHEWING_BUILDLINK3_MK
BUILDLINK_TREE+= -libchewing
diff --git a/inputmethod/libchewing/distinfo b/inputmethod/libchewing/distinfo
index c45e4a2f3cf..1a03564e614 100644
--- a/inputmethod/libchewing/distinfo
+++ b/inputmethod/libchewing/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.7 2013/08/10 09:14:22 obache Exp $
+$NetBSD: distinfo,v 1.8 2014/08/02 04:54:07 obache Exp $
-SHA1 (libchewing-0.3.5.tar.bz2) = 5ee3941f0f62fa14fbda53e1032970b04a7a88b7
-RMD160 (libchewing-0.3.5.tar.bz2) = 02e571d1441f6397efe815d3812acc0f70c2d203
-Size (libchewing-0.3.5.tar.bz2) = 1978489 bytes
-SHA1 (patch-configure) = 1dac333234433e9cc52dbe1625271eccf3e631ba
-SHA1 (patch-configure.ac) = bb1d458d4f32c461a746dc88fb5019e790240af9
+SHA1 (libchewing-0.4.0.tar.bz2) = 7409b0a6753e14510c96574714dcec86c7b10138
+RMD160 (libchewing-0.4.0.tar.bz2) = 7abc4191e0295d566b1409c12d593ee0e4b50637
+Size (libchewing-0.4.0.tar.bz2) = 3014558 bytes
+SHA1 (patch-configure) = 2f855e174fa486932dea90d013e525c1c5ef24a1
+SHA1 (patch-configure.ac) = 2a47e597f14cf363055f5b8409289f6edbc544e2
diff --git a/inputmethod/libchewing/patches/patch-configure b/inputmethod/libchewing/patches/patch-configure
index e832d2966ae..297e9b6092f 100644
--- a/inputmethod/libchewing/patches/patch-configure
+++ b/inputmethod/libchewing/patches/patch-configure
@@ -1,15 +1,49 @@
-$NetBSD: patch-configure,v 1.1 2013/08/10 09:14:22 obache Exp $
+$NetBSD: patch-configure,v 1.2 2014/08/02 04:54:07 obache Exp $
* test(1) portability fix
+ https://github.com/chewing/libchewing/pull/158
---- configure.orig 2013-08-10 08:57:00.000000000 +0000
+--- configure.orig 2014-04-11 01:49:45.000000000 +0000
+++ configure
-@@ -13368,7 +13368,7 @@ CC_FOR_BUILD=${CC_FOR_BUILD-${CC}}
+@@ -13212,7 +13212,7 @@ else
+ with_sqlite3=yes
+ fi
+
+- if test x"$with_sqlite3" == x"yes"; then
++ if test x"$with_sqlite3" = x"yes"; then
+ WITH_SQLITE3_TRUE=
+ WITH_SQLITE3_FALSE='#'
+ else
+@@ -13229,7 +13229,7 @@ else
+ with_internal_sqlite3=no
+ fi
+
+- if test x"$with_internal_sqlite3" == x"yes"; then
++ if test x"$with_internal_sqlite3" = x"yes"; then
+ WITH_INTERNAL_SQLITE3_TRUE=
+ WITH_INTERNAL_SQLITE3_FALSE='#'
+ else
+@@ -13239,12 +13239,12 @@ fi
+
+
+ # for sqlite
+-if test x"$with_sqlite3" == x"yes"; then :
++if test x"$with_sqlite3" = x"yes"; then :
+
+
+ $as_echo "#define WITH_SQLITE3 1" >>confdefs.h
+
+- if test x"$with_internal_sqlite3" == x"no"; then :
++ if test x"$with_internal_sqlite3" = x"no"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open" >&5
+ $as_echo_n "checking for library containing sqlite3_open... " >&6; }
+@@ -14065,7 +14065,7 @@ CC_FOR_BUILD=${CC_FOR_BUILD-${CC}}
+ AM_CFLAGS="$AM_CFLAGS -Wall $CFLAGS"
- # Default CFLAGS
- AM_CFLAGS="$CFLAGS -Wall"
+ # Add '_GNU_SOURCE' for asprintf
-if test x$ac_cv_func_asprintf == xyes; then :
+if test x$ac_cv_func_asprintf = xyes; then :
- AM_CPPFLAGS="$AM_CPPFLAGS -D_GNU_SOURCE"
+ DEFAULT_CPPFLAGS="$DEFAULT_CPPFLAGS -D_GNU_SOURCE"
fi
diff --git a/inputmethod/libchewing/patches/patch-configure.ac b/inputmethod/libchewing/patches/patch-configure.ac
index 4fa35bef1bb..e88682a0cde 100644
--- a/inputmethod/libchewing/patches/patch-configure.ac
+++ b/inputmethod/libchewing/patches/patch-configure.ac
@@ -1,15 +1,39 @@
-$NetBSD: patch-configure.ac,v 1.1 2013/08/10 09:14:22 obache Exp $
+$NetBSD: patch-configure.ac,v 1.2 2014/08/02 04:54:07 obache Exp $
* test(1) portability fix
+ https://github.com/chewing/libchewing/pull/158
---- configure.ac.orig 2013-07-28 07:30:39.000000000 +0000
+--- configure.ac.orig 2014-04-11 01:24:52.000000000 +0000
+++ configure.ac
-@@ -87,7 +87,7 @@ AC_SUBST(CC_FOR_BUILD)
+@@ -79,18 +79,18 @@ AC_ARG_WITH([sqlite3],
+ AS_HELP_STRING([--with-sqlite3], [Use sqlite3 to store userphrase @<:@default=yes@:>@]),
+ [],
+ [with_sqlite3=yes])
+-AM_CONDITIONAL([WITH_SQLITE3], [test x"$with_sqlite3" == x"yes"])
++AM_CONDITIONAL([WITH_SQLITE3], [test x"$with_sqlite3" = x"yes"])
- # Default CFLAGS
- AM_CFLAGS="$CFLAGS -Wall"
+ AC_ARG_WITH([internal-sqlite3],
+ AS_HELP_STRING([--with-internal-sqlite3], [Use internal sqlite3 instead of system-wide @<:@default=no@:>@]),
+ [],
+ [with_internal_sqlite3=no])
+-AM_CONDITIONAL([WITH_INTERNAL_SQLITE3], [test x"$with_internal_sqlite3" == x"yes"])
++AM_CONDITIONAL([WITH_INTERNAL_SQLITE3], [test x"$with_internal_sqlite3" = x"yes"])
+
+ # for sqlite
+-AS_IF([test x"$with_sqlite3" == x"yes"], [
++AS_IF([test x"$with_sqlite3" = x"yes"], [
+ AC_DEFINE([WITH_SQLITE3], [1], [Use sqlite3 to store userphrase])
+- AS_IF([test x"$with_internal_sqlite3" == x"no"],
++ AS_IF([test x"$with_internal_sqlite3" = x"no"],
+ [
+ AC_SEARCH_LIBS([sqlite3_open], [sqlite3],
+ [AS_IF([test x$ac_cv_search_sqlite3_open != x"none required"],
+@@ -126,7 +126,7 @@ AC_SUBST(CC_FOR_BUILD)
+ AM_CFLAGS="$AM_CFLAGS -Wall $CFLAGS"
+
+ # Add '_GNU_SOURCE' for asprintf
-AS_IF([test x$ac_cv_func_asprintf == xyes],
+AS_IF([test x$ac_cv_func_asprintf = xyes],
- [AM_CPPFLAGS="$AM_CPPFLAGS -D_GNU_SOURCE"])
+ [DEFAULT_CPPFLAGS="$DEFAULT_CPPFLAGS -D_GNU_SOURCE"])
AX_WITH_CURSES