summaryrefslogtreecommitdiff
blob: 5d2743600d7fbe5f5b14e6d4622a2e28c82532be (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/iiimf-canna/iiimf-canna-0.3.0.ebuild,v 1.3 2005/01/01 14:28:45 eradicator Exp $

DESCRIPTION="Canna Language Engine input method module for IIIMF"
HOMEPAGE="http://www.momonga-linux.org/~famao/iiimf-skk/"
SRC_URI="mirror://sourceforge.jp/iiimf-skk/5752/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="gtk2 nls"

DEPEND="virtual/libc
	>=sys-libs/db-3
	gtk2? ( >=x11-libs/gtk+-2 )
	!gtk2? ( =x11-libs/gtk+-1.2* )
	dev-libs/libxml2
	app-i18n/im-sdk
	app-i18n/canna"

src_compile() {

	econf \
		`use_enable nls` \
		`use_enable gtk2` || die
	make || die
}

src_install() {

	make DESTDIR=${D} install || die
	dodoc ABOUT-NLS AUTHORS ChangeLog INSTALL NEWS README TODO

	newbin ${FILESDIR}/iiimf-canna.sh iiimf-canna
}

pkg_postinst() {

	einfo
	einfo "To use this module, follow these steps:"
	einfo "(1) run /etc/init.d/iiim start (as root)"
	einfo "(2) run iiimf-canna (as normal user)"
	einfo "(3) export XMODIFIERS='@im=htt' (setenv XMODIFIERS '@im=htt' in csh)"
	einfo
}