scim-wnn-0.2.4.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2009 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. DESCRIPTION="Japanese input method Wnn IMEngine for SCIM"
  4. HOMEPAGE="http://nop.net-p.org/modules/pukiwiki/index.php?%5B%5Bscim-wnn%5D%5D"
  5. SRC_URI="http://nop.net-p.org/files/scim-wnn/${P}.tar.gz"
  6. LICENSE="GPL-2"
  7. SLOT="0"
  8. KEYWORDS="x86"
  9. IUSE="freewnn"
  10. RDEPEND="|| ( >=app-i18n/scim-1.0 >=app-i18n/scim-cvs-1.0 )
  11. dev-libs/wnn7sdk
  12. freewnn? ( app-i18n/freewnn )"
  13. DEPEND="${RDEPEND}
  14. >=sys-apps/sed-4"
  15. src_unpack() {
  16. unpack ${A}
  17. cd "${S}"/src
  18. sed -i -e "s:/usr/lib/wnn7:/usr/lib/wnn:g" \
  19. scim_wnn_def.h wnnconversion.cpp || die "sed failed"
  20. }
  21. src_install() {
  22. make DESTDIR="${D}" install || die "make install failed"
  23. dodoc AUTHORS THANKS README
  24. }
  25. pkg_postinst() {
  26. elog
  27. elog "To use SCIM with both GTK2 and XIM, you should use the following"
  28. elog "in your user startup scripts such as .gnomerc or .xinitrc:"
  29. elog
  30. elog "LANG='your_language' scim -d"
  31. elog "export XMODIFIERS=@im=SCIM"
  32. elog
  33. if ! use freewnn ; then
  34. ewarn
  35. ewarn "You disabled freewnn USE flag."
  36. ewarn "Please make sure you have wnnenvrc visible to scim-wnn."
  37. ewarn
  38. fi
  39. }