1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit python scons-utils toolchain-funcs
9 DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
10 HOMEPAGE="https://sunpinyin.googlecode.com/"
11 SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
13 LICENSE="LGPL-2.1 CDDL"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="app-i18n/ibus
19 ~app-i18n/sunpinyin-${PV}:=
20 nls? ( virtual/libintl )"
23 nls? ( sys-devel/gettext )"
27 mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
33 --prefix="${EPREFIX}"/usr
34 --libexecdir="${EPREFIX}"/usr/libexec
39 pushd "${S}"/wrapper/ibus
45 pushd "${S}"/wrapper/ibus
46 escons --install-sandbox="${ED}" install
51 python_mod_optimize /usr/share/ibus-sunpinyin/setup
55 python_mod_cleanup /usr/share/ibus-sunpinyin/setup