im-freewnn-0.0.2-r2.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit autotools eutils gnome2-utils multilib
  5. DESCRIPTION="Japanese FreeWnn input method module for GTK+2"
  6. HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/immodule/"
  7. SRC_URI="http://bonobo.gnome.gr.jp/~nakai/immodule/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc ppc64 x86"
  11. IUSE=""
  12. RDEPEND="
  13. dev-libs/glib:2
  14. x11-libs/pango
  15. >=x11-libs/gtk+-2.4:2
  16. >=app-i18n/freewnn-1.1.1_alpha21-r1
  17. "
  18. DEPEND="${RDEPEND}
  19. virtual/pkgconfig
  20. "
  21. pkg_setup() {
  22. # An arch specific config directory is used on multilib systems
  23. has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
  24. GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
  25. }
  26. src_prepare() {
  27. epatch "${FILESDIR}/${PN}-wnnrc-gentoo.diff"
  28. # bug #298744
  29. epatch "${FILESDIR}/${P}-as-needed.patch"
  30. epatch "${FILESDIR}/${P}-implicit-declaration.patch"
  31. mv configure.in configure.ac || die
  32. eautoreconf
  33. }
  34. src_install() {
  35. default
  36. prune_libtool_files --modules
  37. }
  38. pkg_postinst() {
  39. gnome2_query_immodules_gtk2
  40. }
  41. pkg_postrm() {
  42. gnome2_query_immodules_gtk2
  43. }