blob: 2038ffdd9613e2b3e6352c5ac1baf08997af9914 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-bridge/scim-bridge-0.4.9.ebuild,v 1.7 2009/10/10 15:43:53 armin76 Exp $
EAPI=1
inherit eutils qt3
DESCRIPTION="Yet another IM-client of SCIM"
HOMEPAGE="http://www.scim-im.org/projects/scim_bridge"
SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc64 ~sparc ~x86"
IUSE="doc gtk qt3"
RDEPEND=">=app-i18n/scim-1.4.0
gtk? (
>=x11-libs/gtk+-2.2
>=x11-libs/pango-1.1
)
qt3? (
x11-libs/qt:3
>=x11-libs/pango-1.1
)"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
get_gtk_confdir() {
if use amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && use x86 ) ; then
echo "/etc/gtk-2.0/${CHOST}"
else
echo "/etc/gtk-2.0"
fi
}
pkg_setup() {
if use qt3 && ! built_with_use =x11-libs/qt-3* immqt-bc && ! built_with_use =x11-libs/qt-3* immqt; then
die "You need to rebuild >=x11-libs/qt-3.3.4 with immqt-bc(recommended) or immqt USE flag enabled."
fi
}
src_compile() {
econf \
$(use_enable gtk gtk2-immodule) \
$(use_enable qt3 qt3-immodule) \
$(use_enable doc documents) || die
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README
}
pkg_postinst() {
elog
elog "If you would like to use ${PN} as default instead of scim, set"
elog " $ export GTK_IM_MODULE=scim-bridge"
elog " $ export QT_IM_MODULE=scim-bridge"
elog
[ -x /usr/bin/gtk-query-immodules-2.0 ] && gtk-query-immodules-2.0 > "${ROOT}$(get_gtk_confdir)/gtk.immodules"
}
pkg_postrm() {
[ -x /usr/bin/gtk-query-immodules-2.0 ] && gtk-query-immodules-2.0 > "${ROOT}$(get_gtk_confdir)/gtk.immodules"
}
|