diff options
author | obache <obache@pkgsrc.org> | 2009-11-24 11:18:53 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-11-24 11:18:53 +0000 |
commit | 00fafc167a1ee797a8c2f7f66075f76352453b1a (patch) | |
tree | b0092d0cab29ce1c21b9052be924bca0270e2d06 /inputmethod/libchewing02 | |
parent | 5ba2fa7202a3baeae3be5de3ead44d071311b185 (diff) | |
download | pkgsrc-00fafc167a1ee797a8c2f7f66075f76352453b1a.tar.gz |
Reimport libchewing-0.2.7 from inputmethod/libchewing as inputmethod/libchewing02.
for xcin, it is not support libchewing-0.3 API.
Diffstat (limited to 'inputmethod/libchewing02')
-rw-r--r-- | inputmethod/libchewing02/DESCR | 2 | ||||
-rw-r--r-- | inputmethod/libchewing02/Makefile | 19 | ||||
-rw-r--r-- | inputmethod/libchewing02/PLIST | 18 | ||||
-rw-r--r-- | inputmethod/libchewing02/buildlink3.mk | 15 | ||||
-rw-r--r-- | inputmethod/libchewing02/distinfo | 8 | ||||
-rw-r--r-- | inputmethod/libchewing02/patches/patch-aa | 38 | ||||
-rw-r--r-- | inputmethod/libchewing02/patches/patch-ab | 12 | ||||
-rw-r--r-- | inputmethod/libchewing02/patches/patch-ac | 13 |
8 files changed, 125 insertions, 0 deletions
diff --git a/inputmethod/libchewing02/DESCR b/inputmethod/libchewing02/DESCR new file mode 100644 index 00000000000..ae894cd0d1f --- /dev/null +++ b/inputmethod/libchewing02/DESCR @@ -0,0 +1,2 @@ +libchewing is derived from Chewing input method, a xcin module focusing on +intelligent phonetic processing by lckung and kpchen. diff --git a/inputmethod/libchewing02/Makefile b/inputmethod/libchewing02/Makefile new file mode 100644 index 00000000000..5e8768400d8 --- /dev/null +++ b/inputmethod/libchewing02/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/11/24 11:18:53 obache Exp $ +# + +DISTNAME= libchewing-0.2.7 +CATEGORIES= chinese inputmethod +MASTER_SITES= http://chewing.csie.net/download/libchewing/ + +MAINTAINER= rxg@NetBSD.org +HOMEPAGE= http://chewing.csie.net/ +COMMENT= The intelligent phonetic input method library + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LIBTOOL= yes +GNU_CONFIGURE= yes + +PKGCONFIG_OVERRIDE= chewing.pc.in + +.include "../../mk/bsd.pkg.mk" diff --git a/inputmethod/libchewing02/PLIST b/inputmethod/libchewing02/PLIST new file mode 100644 index 00000000000..b3fa0470d97 --- /dev/null +++ b/inputmethod/libchewing02/PLIST @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/24 11:18:53 obache Exp $ +include/chewing/char.h +include/chewing/chewing.h +include/chewing/chewingio.h +include/chewing/chewingutil.h +include/chewing/dict.h +include/chewing/global.h +include/chewing/hanyupinying.h +include/chewing/hash.h +include/chewing/userphrase.h +include/chewing/zuin.h +lib/libchewing.la +lib/pkgconfig/chewing.pc +share/chewing/ch_index.dat +share/chewing/dict.dat +share/chewing/fonetree.dat +share/chewing/ph_index.dat +share/chewing/us_freq.dat diff --git a/inputmethod/libchewing02/buildlink3.mk b/inputmethod/libchewing02/buildlink3.mk new file mode 100644 index 00000000000..f4fa9fa1c9c --- /dev/null +++ b/inputmethod/libchewing02/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/11/24 11:18:53 obache Exp $ + +BUILDLINK_TREE+= libchewing02 + +.if !defined(LIBCHEWING02_BUILDLINK3_MK) +LIBCHEWING02_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libchewing02+= libchewing>=0.2.7 +BUILDLINK_API_DEPENDS.libchewing02+= libchewing<0.3.0 +BUILDLINK_ABI_DEPENDS.libchewing02+= libchewing>=0.2.7 +BUILDLINK_ABI_DEPENDS.libchewing02+= libchewing<0.3.0 +BUILDLINK_PKGSRCDIR.libchewing02?= ../../inputmethod/libchewing02 +.endif # LIBCHEWING02_BUILDLINK3_MK + +BUILDLINK_TREE+= -libchewing02 diff --git a/inputmethod/libchewing02/distinfo b/inputmethod/libchewing02/distinfo new file mode 100644 index 00000000000..cf07b84fb04 --- /dev/null +++ b/inputmethod/libchewing02/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/11/24 11:18:53 obache Exp $ + +SHA1 (libchewing-0.2.7.tar.gz) = 7adcf9d24d3a16af9e580cc41dcd217adef56c8a +RMD160 (libchewing-0.2.7.tar.gz) = e1b82f093de6d00ff78c8d940489498611ac6ba3 +Size (libchewing-0.2.7.tar.gz) = 1758321 bytes +SHA1 (patch-aa) = 415ea4754c7a30437aaf62c0b9bc49dab3484421 +SHA1 (patch-ab) = ac219afb516248db5d058d5225694e5d127236ec +SHA1 (patch-ac) = 66935c82edc482939003fe7d3bed88280a1a6c56 diff --git a/inputmethod/libchewing02/patches/patch-aa b/inputmethod/libchewing02/patches/patch-aa new file mode 100644 index 00000000000..e0bcd3fec3e --- /dev/null +++ b/inputmethod/libchewing02/patches/patch-aa @@ -0,0 +1,38 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/11/24 11:18:53 obache Exp $ + +Keywords: c90 + +--- src/hanyupinying.c.orig 2005-08-08 15:34:44.000000000 +0200 ++++ src/hanyupinying.c 2006-01-30 21:24:48.000000000 +0100 +@@ -26,7 +26,6 @@ int HANYU_INITIALS, HANYU_FINALS, INIT_F + + 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,13 @@ static PinYingZuinMap* InitialsMap() + {"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 +92,8 @@ static PinYingZuinMap* FinalsMap() + {"u","j"}, + {"E",","} + }; ++ ++ HANYU_FINALS = 72; + return map; + } + diff --git a/inputmethod/libchewing02/patches/patch-ab b/inputmethod/libchewing02/patches/patch-ab new file mode 100644 index 00000000000..d179ac7f87a --- /dev/null +++ b/inputmethod/libchewing02/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/11/24 11:18:53 obache Exp $ + +--- configure.orig 2006-02-26 20:00:43.000000000 +0800 ++++ configure +@@ -24562,6 +24562,7 @@ s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t ++s,@LIBTOOL_EXPORT_OPTIONS@,$LIBTOOL_EXPORT_OPTIONS,;t t + s,@exec_prefix@,$exec_prefix,;t t + s,@prefix@,$prefix,;t t + s,@program_transform_name@,$program_transform_name,;t t diff --git a/inputmethod/libchewing02/patches/patch-ac b/inputmethod/libchewing02/patches/patch-ac new file mode 100644 index 00000000000..9fa9cdf6afe --- /dev/null +++ b/inputmethod/libchewing02/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2009/11/24 11:18:53 obache Exp $ + +--- autogen.sh.orig 2005-08-08 15:35:00.000000000 +0200 ++++ autogen.sh 2006-10-22 22:30:32.000000000 +0200 +@@ -10,7 +10,7 @@ ${ACLOCAL:-aclocal} ${ACLOCAL_ARG} + + # Darwin has different name for "libtoolize" + UNAME=`uname` +-if [ "x${UNAME}" == "xDarwin" ]; then ++if [ "x${UNAME}" = "xDarwin" ]; then + ${LIBTOOLIZE:-glibtoolize} -c --automake + else + ${LIBTOOLIZE:-libtoolize} -c --automake |