ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit python-single-r1 scons-utils toolchain-funcs
  6. DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
  7. HOMEPAGE="https://sunpinyin.googlecode.com/"
  8. SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
  9. LICENSE="LGPL-2.1 CDDL"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="+nls"
  13. RDEPEND="${PYTHON_DEPS}
  14. app-i18n/ibus[python,${PYTHON_USEDEP}]
  15. ~app-i18n/sunpinyin-${PV}:=
  16. nls? ( virtual/libintl )"
  17. DEPEND="${RDEPEND}
  18. virtual/pkgconfig
  19. nls? ( sys-devel/gettext )"
  20. REQUIRED_USE=${PYTHON_REQUIRED_USE}
  21. src_unpack() {
  22. default
  23. mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
  24. }
  25. src_prepare() {
  26. sed -i -e "s/python/${EPYTHON}/" wrapper/ibus/setup/ibus-setup-sunpinyin.in || die
  27. }
  28. src_configure() {
  29. tc-export CXX
  30. myesconsargs=(
  31. --prefix="${EPREFIX}"/usr
  32. --libexecdir="${EPREFIX}"/usr/libexec
  33. )
  34. }
  35. src_compile() {
  36. escons -C wrapper/ibus
  37. }
  38. src_install() {
  39. escons -C wrapper/ibus --install-sandbox="${ED}" install
  40. }