|
Gentoo-China里面的ibus-pinyin的ebuild已經很久没有更新了。而且只會拉入Android的拼音庫。那是一個嚴重缺字的字庫。現在官方都在用open-phrase-db了。
相比一下:
- -rw-r--r-- 1 root root 3589120 May 29 03:56 /usr/share/ibus-pinyin/db/android.db
- -rw-r--r-- 1 root root 2907 May 29 03:56 /usr/share/ibus-pinyin/db/create_index.sql
- -rw-r--r-- 1 root root 62220288 May 29 03:57 /usr/share/ibus-pinyin/db/open-phrase.db
复制代码
android明顯小很多。
我把ebuild修改了使用比較大的字庫:
- Index: app-i18n/ibus-pinyin/ibus-pinyin-9999.ebuild
- ===================================================================
- --- app-i18n/ibus-pinyin/ibus-pinyin-9999.ebuild (revision 1283)
- +++ app-i18n/ibus-pinyin/ibus-pinyin-9999.ebuild (working copy)
- @@ -3,12 +3,14 @@
- # $Header: $
-
- EAPI="2"
- +PYTHON_DEPEND="2:2.5"
- +PYTHON_USE_WITH="sqlite"
-
- inherit python git autotools
-
- EGIT_REPO_URI="git://github.com/phuang/ibus-pinyin.git"
-
- -PYDB_TAR="pinyin-database-0.1.10.6.tar.bz2"
- +PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
- DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
- HOMEPAGE="http://code.google.com/p/ibus/"
- SRC_URI="http://ibus.googlecode.com/files/${PYDB_TAR}"
- @@ -16,13 +18,13 @@
- LICENSE="GPL-2"
- SLOT="0"
- KEYWORDS=""
- -IUSE="nls"
- +IUSE="nls +open-phrase"
-
- RDEPEND=">=app-i18n/ibus-1.1.0
- - >=dev-lang/python-2.5[sqlite]
- + >=dev-libs/boost-1.39
- + sys-apps/util-linux
- nls? ( virtual/libintl )"
- DEPEND="${RDEPEND}
- - dev-util/cvs
- dev-util/pkgconfig
- nls? ( >=sys-devel/gettext-0.16.1 )"
-
- @@ -32,13 +34,13 @@
- intltoolize --copy --force || die "intltoolize failed"
- eautoreconf
-
- + cp "${DISTDIR}/${PYDB_TAR}" "${S}"/data/db/open-phrase/ || die
- mv py-compile py-compile.orig || die
- ln -s "$(type -P true)" py-compile || die
- - cp "${DISTDIR}/${PYDB_TAR}" "${S}"/engine
- }
-
- src_configure() {
- - econf $(use_enable nls) || die
- + econf $(use_enable nls) $(use_enable open-phrase db-open-phrase) || die
- }
-
- src_install() {
复制代码
有人可以帮忙merge一下嗎? |
|