Lines 3-11
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.4.1.ebuild,v 1.9 2012/03/28 22:10:24 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.4.1.ebuild,v 1.9 2012/03/28 22:10:24 vapier Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
PYTHON_DEPEND="python? 2:2.5" |
6 |
PYTHON_DEPEND="2:2.5" |
7 |
|
7 |
|
8 |
inherit eutils gnome2-utils multilib python autotools |
8 |
inherit confutils eutils gnome2-utils multilib python autotools |
9 |
|
9 |
|
10 |
DESCRIPTION="Intelligent Input Bus for Linux / Unix OS" |
10 |
DESCRIPTION="Intelligent Input Bus for Linux / Unix OS" |
11 |
HOMEPAGE="http://code.google.com/p/ibus/" |
11 |
HOMEPAGE="http://code.google.com/p/ibus/" |
Lines 13-21
Link Here
|
13 |
|
13 |
|
14 |
LICENSE="LGPL-2.1" |
14 |
LICENSE="LGPL-2.1" |
15 |
SLOT="0" |
15 |
SLOT="0" |
16 |
KEYWORDS="amd64 arm ppc ppc64 x86 ~x86-fbsd" |
16 |
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd" |
17 |
IUSE="dconf doc +gconf gtk gtk3 +introspection nls +python vala X" |
17 |
IUSE="dconf doc +gconf gtk gtk3 +introspection nls +libnotify vala X" |
18 |
REQUIRED_USE="|| ( gtk gtk3 X )" #342903 |
|
|
19 |
|
18 |
|
20 |
RDEPEND=">=dev-libs/glib-2.26 |
19 |
RDEPEND=">=dev-libs/glib-2.26 |
21 |
dconf? ( >=gnome-base/dconf-0.7.5 ) |
20 |
dconf? ( >=gnome-base/dconf-0.7.5 ) |
Lines 30-36
Link Here
|
30 |
x11-libs/gtk+:2 |
29 |
x11-libs/gtk+:2 |
31 |
) |
30 |
) |
32 |
introspection? ( >=dev-libs/gobject-introspection-0.6.8 ) |
31 |
introspection? ( >=dev-libs/gobject-introspection-0.6.8 ) |
33 |
python? ( |
32 |
libnotify? ( |
34 |
dev-python/notify-python |
33 |
dev-python/notify-python |
35 |
>=dev-python/dbus-python-0.83 |
34 |
>=dev-python/dbus-python-0.83 |
36 |
) |
35 |
) |
Lines 45-51
Link Here
|
45 |
doc? ( >=dev-util/gtk-doc-1.9 ) |
44 |
doc? ( >=dev-util/gtk-doc-1.9 ) |
46 |
nls? ( >=sys-devel/gettext-0.16.1 )" |
45 |
nls? ( >=sys-devel/gettext-0.16.1 )" |
47 |
RDEPEND="${RDEPEND} |
46 |
RDEPEND="${RDEPEND} |
48 |
python? ( |
47 |
libnotify? ( |
49 |
dev-python/pygtk |
48 |
dev-python/pygtk |
50 |
dev-python/pyxdg |
49 |
dev-python/pyxdg |
51 |
)" |
50 |
)" |
Lines 74-83
Link Here
|
74 |
} |
73 |
} |
75 |
|
74 |
|
76 |
pkg_setup() { |
75 |
pkg_setup() { |
77 |
if use python; then |
76 |
# bug #342903 |
78 |
python_set_active_version 2 |
77 |
confutils_require_any X gtk gtk3 |
79 |
python_pkg_setup |
78 |
python_set_active_version 2 |
80 |
fi |
79 |
python_pkg_setup |
81 |
} |
80 |
} |
82 |
|
81 |
|
83 |
src_prepare() { |
82 |
src_prepare() { |
Lines 86-93
Link Here
|
86 |
|
85 |
|
87 |
epatch \ |
86 |
epatch \ |
88 |
"${FILESDIR}"/${PN}-gconf-2.m4.patch \ |
87 |
"${FILESDIR}"/${PN}-gconf-2.m4.patch \ |
89 |
"${FILESDIR}"/${PN}-1.4.0-machine-id-fallback.patch \ |
88 |
"${FILESDIR}"/${PN}-1.4.0-machine-id-fallback.patch |
90 |
"${FILESDIR}"/${PN}-1.4.1-gir.patch |
|
|
91 |
|
89 |
|
92 |
use gconf || epatch "${FILESDIR}"/${P}-no-gconf.patch |
90 |
use gconf || epatch "${FILESDIR}"/${P}-no-gconf.patch |
93 |
|
91 |
|
Lines 95-102
Link Here
|
95 |
} |
93 |
} |
96 |
|
94 |
|
97 |
src_configure() { |
95 |
src_configure() { |
98 |
# We cannot call $(PYTHON) if we haven't called python_pkg_setup |
|
|
99 |
use python && PYTHON=$(PYTHON) || PYTHON= |
100 |
econf \ |
96 |
econf \ |
101 |
$(use_enable dconf) \ |
97 |
$(use_enable dconf) \ |
102 |
$(use_enable doc gtk-doc) \ |
98 |
$(use_enable doc gtk-doc) \ |
Lines 107-116
Link Here
|
107 |
$(use_enable gtk xim) \ |
103 |
$(use_enable gtk xim) \ |
108 |
$(use_enable gtk3) \ |
104 |
$(use_enable gtk3) \ |
109 |
$(use_enable nls) \ |
105 |
$(use_enable nls) \ |
110 |
$(use_enable python) \ |
106 |
$(use_enable libnotify) \ |
111 |
$(use_enable vala) \ |
107 |
$(use_enable vala) \ |
112 |
$(use_enable X xim) \ |
108 |
$(use_enable X xim) \ |
113 |
PYTHON="${PYTHON}" |
109 |
PYTHON="$(PYTHON)" |
114 |
} |
110 |
} |
115 |
|
111 |
|
116 |
src_install() { |
112 |
src_install() { |
Lines 133-139
Link Here
|
133 |
use gconf && gnome2_gconf_install |
129 |
use gconf && gnome2_gconf_install |
134 |
use gtk && update_gtk_immodules |
130 |
use gtk && update_gtk_immodules |
135 |
use gtk3 && update_gtk3_immodules |
131 |
use gtk3 && update_gtk3_immodules |
136 |
use python && python_mod_optimize /usr/share/${PN} |
132 |
python_mod_optimize /usr/share/${PN} |
137 |
gnome2_icon_cache_update |
133 |
gnome2_icon_cache_update |
138 |
|
134 |
|
139 |
elog "To use ibus, you should:" |
135 |
elog "To use ibus, you should:" |
Lines 157-162
Link Here
|
157 |
pkg_postrm() { |
153 |
pkg_postrm() { |
158 |
use gtk && update_gtk_immodules |
154 |
use gtk && update_gtk_immodules |
159 |
use gtk3 && update_gtk3_immodules |
155 |
use gtk3 && update_gtk3_immodules |
160 |
use python && python_mod_cleanup /usr/share/${PN} |
156 |
python_mod_cleanup /usr/share/${PN} |
161 |
gnome2_icon_cache_update |
157 |
gnome2_icon_cache_update |
162 |
} |
158 |
} |