LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 749|回复: 4

ibus-pinyin-9999用open-phrase-db的ebuild

[复制链接]
发表于 2010-6-1 15:10:28 | 显示全部楼层 |阅读模式
Gentoo-China里面的ibus-pinyin的ebuild已經很久没有更新了。而且只會拉入Android的拼音庫。那是一個嚴重缺字的字庫。現在官方都在用open-phrase-db了。
相比一下:
  1. -rw-r--r-- 1 root root  3589120 May 29 03:56 /usr/share/ibus-pinyin/db/android.db
  2. -rw-r--r-- 1 root root     2907 May 29 03:56 /usr/share/ibus-pinyin/db/create_index.sql
  3. -rw-r--r-- 1 root root 62220288 May 29 03:57 /usr/share/ibus-pinyin/db/open-phrase.db
复制代码

android明顯小很多。

我把ebuild修改了使用比較大的字庫:
  1. Index: app-i18n/ibus-pinyin/ibus-pinyin-9999.ebuild
  2. ===================================================================
  3. --- app-i18n/ibus-pinyin/ibus-pinyin-9999.ebuild        (revision 1283)
  4. +++ app-i18n/ibus-pinyin/ibus-pinyin-9999.ebuild        (working copy)
  5. @@ -3,12 +3,14 @@
  6. # $Header: $

  7. EAPI="2"
  8. +PYTHON_DEPEND="2:2.5"
  9. +PYTHON_USE_WITH="sqlite"

  10. inherit python git autotools

  11. EGIT_REPO_URI="git://github.com/phuang/ibus-pinyin.git"

  12. -PYDB_TAR="pinyin-database-0.1.10.6.tar.bz2"
  13. +PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
  14. DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
  15. HOMEPAGE="http://code.google.com/p/ibus/"
  16. SRC_URI="http://ibus.googlecode.com/files/${PYDB_TAR}"
  17. @@ -16,13 +18,13 @@
  18. LICENSE="GPL-2"
  19. SLOT="0"
  20. KEYWORDS=""
  21. -IUSE="nls"
  22. +IUSE="nls +open-phrase"

  23. RDEPEND=">=app-i18n/ibus-1.1.0
  24. -        >=dev-lang/python-2.5[sqlite]
  25. +    >=dev-libs/boost-1.39
  26. +    sys-apps/util-linux
  27.         nls? ( virtual/libintl )"
  28. DEPEND="${RDEPEND}
  29. -        dev-util/cvs
  30.         dev-util/pkgconfig
  31.         nls? ( >=sys-devel/gettext-0.16.1 )"

  32. @@ -32,13 +34,13 @@
  33.         intltoolize --copy --force || die "intltoolize failed"
  34.         eautoreconf

  35. +        cp "${DISTDIR}/${PYDB_TAR}" "${S}"/data/db/open-phrase/ || die
  36.         mv py-compile py-compile.orig || die
  37.         ln -s "$(type -P true)" py-compile || die
  38. -        cp "${DISTDIR}/${PYDB_TAR}" "${S}"/engine
  39. }

  40. src_configure() {
  41. -        econf $(use_enable nls) || die
  42. +        econf $(use_enable nls) $(use_enable open-phrase db-open-phrase) || die
  43. }

  44. src_install() {
复制代码


有人可以帮忙merge一下嗎?
发表于 2010-6-1 21:07:34 | 显示全部楼层
不如同时把ebuild贴一帖

省事一点
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-2 03:09:28 | 显示全部楼层
這是整個ebuild.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2010-6-2 11:03:15 | 显示全部楼层
我直接覆盖原来的就可以了吧
我不准备测试了,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-3 03:48:31 | 显示全部楼层
works for me.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表