diff options
author | clsung <clsung@FreeBSD.org> | 2011-11-11 10:46:16 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2011-11-11 10:46:16 +0800 |
commit | e96c07e98cdf9a0d96438c89bca0628490838d85 (patch) | |
tree | 6efebb93bde48dc614fda28319d7186d37c31fde /chinese/sunpinyin | |
parent | e3f2ecef0e6ed2d7def5f83b5130410ae5825a48 (diff) | |
download | freebsd-ports-gnome-e96c07e98cdf9a0d96438c89bca0628490838d85.tar.gz freebsd-ports-gnome-e96c07e98cdf9a0d96438c89bca0628490838d85.tar.zst freebsd-ports-gnome-e96c07e98cdf9a0d96438c89bca0628490838d85.zip |
SunPinyin is a statistical language model based Chinese input method, which
was firstly developed by Sun Beijing Globalization team, and opensource'd
to community with opensolaris project, with LGPLv2 and CDDL dual-licenses.
WWW: http://code.google.com/p/sunpinyin/
Feature safe: yes
Diffstat (limited to 'chinese/sunpinyin')
-rw-r--r-- | chinese/sunpinyin/Makefile | 38 | ||||
-rw-r--r-- | chinese/sunpinyin/distinfo | 6 | ||||
-rw-r--r-- | chinese/sunpinyin/files/patch-SConstruct | 28 | ||||
-rw-r--r-- | chinese/sunpinyin/files/patch-raw_Makefile | 21 | ||||
-rw-r--r-- | chinese/sunpinyin/pkg-descr | 5 | ||||
-rw-r--r-- | chinese/sunpinyin/pkg-plist | 62 |
6 files changed, 160 insertions, 0 deletions
diff --git a/chinese/sunpinyin/Makefile b/chinese/sunpinyin/Makefile new file mode 100644 index 000000000000..107dd9fb138b --- /dev/null +++ b/chinese/sunpinyin/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: sunpinyin +# Date created: 10 Nov 2011 +# Whom: Zhihao Yuan <lichray@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= sunpinyin +PORTVERSION= 2.0.3 +CATEGORIES= chinese devel +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}:1 \ + http://open-gram.googlecode.com/files/:2 +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:1 \ + lm_sc.t3g.arpa.tar.bz2:2 dict.utf8.tar.bz2:2 +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= lichray@gmail.com +COMMENT= A statistical language model based input method engine + +LICENSE= LGPL21 CDDL +LICENSE_COMB= dual + +LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3 +BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config + +LICENSE_FILE_LGPL21= ${WRKSRC}/LGPL.LICENSE +LICENSE_FILE_CDDL= ${WRKSRC}/OPENSOLARIS.LICENSE + +USE_SCONS= yes +SCONS_ARGS+= --prefix=${PREFIX} --libdatadir=${PREFIX}/share +USE_LDCONFIG= yes +USE_GMAKE= yes + +post-patch: + @${CP} ${_DISTDIR}/lm_sc.t3g.arpa.tar.bz2 \ + ${_DISTDIR}/dict.utf8.tar.bz2 ${WRKSRC}/raw + +.include <bsd.port.mk> diff --git a/chinese/sunpinyin/distinfo b/chinese/sunpinyin/distinfo new file mode 100644 index 000000000000..3397689b52ab --- /dev/null +++ b/chinese/sunpinyin/distinfo @@ -0,0 +1,6 @@ +SHA256 (sunpinyin-2.0.3.tar.gz) = 4ab776e7563f69f8dbda8fac7cfaa42bd0db1ea68bab15f756094ce5398d83d1 +SIZE (sunpinyin-2.0.3.tar.gz) = 169394 +SHA256 (lm_sc.t3g.arpa.tar.bz2) = e66380518ba51c5c666babc09e91c253c8bb5809f6d853e9a56f0368f057659e +SIZE (lm_sc.t3g.arpa.tar.bz2) = 35959362 +SHA256 (dict.utf8.tar.bz2) = 42f8eb6e8e4de809022069f25ff82a20c09f43b705fa2946162a92960857c97c +SIZE (dict.utf8.tar.bz2) = 496006 diff --git a/chinese/sunpinyin/files/patch-SConstruct b/chinese/sunpinyin/files/patch-SConstruct new file mode 100644 index 000000000000..bd6062cf73c1 --- /dev/null +++ b/chinese/sunpinyin/files/patch-SConstruct @@ -0,0 +1,28 @@ +--- SConstruct.orig 2011-02-17 21:39:52.000000000 -0600 ++++ SConstruct 2011-11-10 03:04:39.833952104 -0600 +@@ -150,9 +150,13 @@ def CreateEnvironment(): + tar = 'gtar' + make = 'gmake' + +- return Environment(ENV=os.environ, CFLAGS=cflags, CXXFLAGS=cflags, +- TAR=tar, MAKE=make, WGET=wget, +- CPPPATH=['.'] + allinc()) ++ env = Environment(**ARGUMENTS) ++ env['ENV'] = os.environ ++ env['TAR'] = tar ++ env['MAKE'] = make ++ env['CPPPATH'] = ['.'] + allinc() ++ ++ return env + + def PassVariables(envvar, env): + for (x, y) in envvar: +@@ -382,7 +386,7 @@ def DoInstall(): + (install_path, libname, libname_link)) + ] + +- lib_pkgconfig_target = env.Install(libdir+'/pkgconfig', ++ lib_pkgconfig_target = env.Install(env['PREFIX']+'/libdata/pkgconfig', + ['sunpinyin-2.0.pc']) + libdata_target = env.Install(libdatadir, + ['data/lm_sc.t3g', diff --git a/chinese/sunpinyin/files/patch-raw_Makefile b/chinese/sunpinyin/files/patch-raw_Makefile new file mode 100644 index 000000000000..0d626f8653c8 --- /dev/null +++ b/chinese/sunpinyin/files/patch-raw_Makefile @@ -0,0 +1,21 @@ +--- raw/Makefile~ 2011-02-17 21:39:52.000000000 -0600 ++++ raw/Makefile 2011-11-10 01:52:50.258400612 -0600 +@@ -11,18 +11,12 @@ stamp-lm: lm_sc.t3g.arpa.tar.bz2 + $(TAR) -jxf $^ + touch $@ + +-lm_sc.t3g.arpa.tar.bz2: +- $(WGET) $(LM_URL)/$@ +- + dict.utf8: stamp-dict + + stamp-dict: dict.utf8.tar.bz2 + $(TAR) -jxf $^ + touch $@ + +-dict.utf8.tar.bz2: +- $(WGET) $(LM_URL)/$@ +- + clean: + @rm -f stamp-dict stamp-lm lm_sc.t3g.arpa dict.utf8 + @echo cleaned diff --git a/chinese/sunpinyin/pkg-descr b/chinese/sunpinyin/pkg-descr new file mode 100644 index 000000000000..1bfe2a9c1539 --- /dev/null +++ b/chinese/sunpinyin/pkg-descr @@ -0,0 +1,5 @@ +SunPinyin is a statistical language model based Chinese input method, which +was firstly developed by Sun Beijing Globalization team, and opensource'd +to community with opensolaris project, with LGPLv2 and CDDL dual-licenses. + +WWW: http://code.google.com/p/sunpinyin/ diff --git a/chinese/sunpinyin/pkg-plist b/chinese/sunpinyin/pkg-plist new file mode 100644 index 000000000000..a20b43768ea1 --- /dev/null +++ b/chinese/sunpinyin/pkg-plist @@ -0,0 +1,62 @@ +include/sunpinyin-2.0/ime-core/ic_history.h +include/sunpinyin-2.0/ime-core/imi_context.h +include/sunpinyin-2.0/ime-core/imi_data.h +include/sunpinyin-2.0/ime-core/imi_defines.h +include/sunpinyin-2.0/ime-core/imi_funcobjs.h +include/sunpinyin-2.0/ime-core/imi_keys.h +include/sunpinyin-2.0/ime-core/imi_option_event.h +include/sunpinyin-2.0/ime-core/imi_option_keys.h +include/sunpinyin-2.0/ime-core/imi_options.h +include/sunpinyin-2.0/ime-core/imi_uiobjects.h +include/sunpinyin-2.0/ime-core/imi_view.h +include/sunpinyin-2.0/ime-core/imi_view_classic.h +include/sunpinyin-2.0/ime-core/imi_winHandler.h +include/sunpinyin-2.0/ime-core/lattice_states.h +include/sunpinyin-2.0/ime-core/userdict.h +include/sunpinyin-2.0/ime-core/utils.h +include/sunpinyin-2.0/lexicon/pytrie.h +include/sunpinyin-2.0/lexicon/pytrie_gen.h +include/sunpinyin-2.0/lexicon/trie_writer.h +include/sunpinyin-2.0/pinyin/datrie.h +include/sunpinyin-2.0/pinyin/datrie_impl.h +include/sunpinyin-2.0/pinyin/hunpin_seg.h +include/sunpinyin-2.0/pinyin/pinyin_data.h +include/sunpinyin-2.0/pinyin/pinyin_seg.h +include/sunpinyin-2.0/pinyin/quanpin_trie.h +include/sunpinyin-2.0/pinyin/segmentor.h +include/sunpinyin-2.0/pinyin/shuangpin_data.h +include/sunpinyin-2.0/pinyin/shuangpin_seg.h +include/sunpinyin-2.0/pinyin/syllable.h +include/sunpinyin-2.0/portability.h +include/sunpinyin-2.0/slm/ids2ngram/idngram.h +include/sunpinyin-2.0/slm/ids2ngram/idngram_merge.h +include/sunpinyin-2.0/slm/sim_dict.h +include/sunpinyin-2.0/slm/sim_fmerge.h +include/sunpinyin-2.0/slm/sim_sen.h +include/sunpinyin-2.0/slm/sim_slm.h +include/sunpinyin-2.0/slm/sim_slmbuilder.h +include/sunpinyin-2.0/slm/slm.h +include/sunpinyin-2.0/slm/thread/ValueCompress.h +include/sunpinyin-2.0/slm/tslmendian/slm_file.h +include/sunpinyin-2.0/slm/tslmendian/writer.h +include/sunpinyin-2.0/slm/tslmpack/arpa_conv.h +include/sunpinyin-2.0/slm/tslmpack/arpa_slm.h +include/sunpinyin-2.0/slm/tslmpack/common.h +include/sunpinyin-2.0/sunpinyin.h +lib/libsunpinyin.so +lib/libsunpinyin.so.3 +lib/libsunpinyin.so.3.0 +libdata/pkgconfig/sunpinyin-2.0.pc +share/sunpinyin/data/lm_sc.t3g +share/sunpinyin/data/pydict_sc.bin +@dirrm include/sunpinyin-2.0/slm/tslmpack +@dirrm include/sunpinyin-2.0/slm/tslmendian +@dirrm include/sunpinyin-2.0/slm/thread +@dirrm include/sunpinyin-2.0/slm/ids2ngram +@dirrm include/sunpinyin-2.0/slm +@dirrm include/sunpinyin-2.0/pinyin +@dirrm include/sunpinyin-2.0/lexicon +@dirrm include/sunpinyin-2.0/ime-core +@dirrm include/sunpinyin-2.0 +@dirrmtry share/sunpinyin/data +@dirrmtry share/sunpinyin |