diff options
author | Yixun Lan <dlan@gentoo.org> | 2014-06-19 15:19:47 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2014-06-19 15:19:47 +0000 |
commit | 874f39726f9bfe634cd606d4c56aa9bd9d6603a6 (patch) | |
tree | e4dcac4093c79dca5523bc132342b3b2fecbad1e | |
parent | Fix out-of-source build of perl module, bug #509734. (diff) | |
download | gentoo-2-874f39726f9bfe634cd606d4c56aa9bd9d6603a6.tar.gz gentoo-2-874f39726f9bfe634cd606d4c56aa9bd9d6603a6.tar.bz2 gentoo-2-874f39726f9bfe634cd606d4c56aa9bd9d6603a6.zip |
add pygtk dep, fix python shebang, bug 511922. thanks @Yi Yang
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
-rw-r--r-- | app-i18n/ibus-pinyin/ChangeLog | 9 | ||||
-rw-r--r-- | app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild | 68 | ||||
-rw-r--r-- | app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild | 61 |
3 files changed, 137 insertions, 1 deletions
diff --git a/app-i18n/ibus-pinyin/ChangeLog b/app-i18n/ibus-pinyin/ChangeLog index e74408ea2879..4348342bd804 100644 --- a/app-i18n/ibus-pinyin/ChangeLog +++ b/app-i18n/ibus-pinyin/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-i18n/ibus-pinyin # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog,v 1.47 2014/06/10 08:44:59 naota Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog,v 1.48 2014/06/19 15:19:47 dlan Exp $ + +*ibus-pinyin-1.5.0-r1 (19 Jun 2014) +*ibus-pinyin-1.4.0-r1 (19 Jun 2014) + + 19 Jun 2014; Yixun Lan <dlan@gentoo.org> +ibus-pinyin-1.4.0-r1.ebuild, + +ibus-pinyin-1.5.0-r1.ebuild: + add pygtk dep, fix python shebang, bug 511922. thanks @Yi Yang 10 Jun 2014; Naohiro Aota <naota@gentoo.org> ibus-pinyin-1.4.0.ebuild, ibus-pinyin-1.5.0.ebuild: diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild new file mode 100644 index 000000000000..e57c68eeda03 --- /dev/null +++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild,v 1.1 2014/06/19 15:19:47 dlan Exp $ + +EAPI=4 + +PYTHON_DEPEND="2:2.5" +PYTHON_USE_WITH="sqlite" + +inherit python + +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/${P}.tar.gz + http://ibus.googlecode.com/files/${PYDB_TAR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="boost lua nls opencc" + +RDEPEND=">=app-i18n/ibus-1.4 + dev-python/pygtk + sys-apps/util-linux + boost? ( >=dev-libs/boost-1.39 ) + lua? ( + >=dev-lang/lua-5.1 + <dev-lang/lua-5.2.0 + ) + nls? ( virtual/libintl ) + opencc? ( app-i18n/opencc )" +DEPEND="${RDEPEND} + sys-apps/sed + virtual/pkgconfig + nls? ( >=sys-devel/gettext-0.16.1 )" + +DOCS="AUTHORS ChangeLog NEWS README" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die + cp "${DISTDIR}"/${PYDB_TAR} data/db/open-phrase/ || die + >py-compile +} + +src_configure() { + econf \ + $(use_enable boost) \ + $(use_enable lua lua-extension) \ + $(use_enable nls) \ + $(use_enable opencc) \ + --enable-db-open-phrase + #--disable-db-android \ + #--disable-english-input-mode \ +} + +pkg_postinst() { + python_mod_optimize /usr/share/${PN} +} + +pkg_postrm() { + python_mod_cleanup /usr/share/${PN} +} diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild new file mode 100644 index 000000000000..46b65d6b6f50 --- /dev/null +++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild,v 1.1 2014/06/19 15:19:47 dlan Exp $ + +EAPI=5 + +PYTHON_DEPEND="2:2.5" +PYTHON_USE_WITH="sqlite" + +inherit python eutils + +DESCRIPTION="Chinese PinYin IMEngine for IBus Framework" +HOMEPAGE="http://code.google.com/p/ibus/" +SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="boost lua nls" + +RDEPEND=">=app-i18n/ibus-1.4 + dev-python/pygtk + app-i18n/pyzy + boost? ( >=dev-libs/boost-1.39 ) + lua? ( + >=dev-lang/lua-5.1 + <dev-lang/lua-5.2 ) + nls? ( virtual/libintl )" + +DEPEND="${RDEPEND} + sys-apps/sed + virtual/pkgconfig + nls? ( >=sys-devel/gettext-0.16.1 )" + +DOCS="AUTHORS ChangeLog NEWS README" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die + epatch "${FILESDIR}"/${P}-content-type-method.patch +} + +src_configure() { + econf \ + $(use_enable boost) \ + $(use_enable lua lua-extension) \ + $(use_enable nls) \ + --enable-english-input-mode +} + +pkg_postinst() { + python_mod_optimize /usr/share/${PN} +} + +pkg_postrm() { + python_mod_cleanup /usr/share/${PN} +} |