/[gentoo-x86]/app-i18n/ibus-sunpinyin/sunpinyin-2.0.1.ebuild
Gentoo

Contents of /app-i18n/ibus-sunpinyin/sunpinyin-2.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 4 01:35:27 2010 UTC (9 years, 8 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Moving app-i18n/ibus-sunpinyin to app-i18n/sunpinyin.

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-sunpinyin/sunpinyin-2.0.1.ebuild,v 1.1 2010/05/04 01:27:22 matsuu Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="ibus? 2:2.5"
7 inherit confutils eutils python versionator
8
9 DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME"
10 HOMEPAGE="http://sunpinyin.org/"
11 SRC_URI="http://sunpinyin.googlecode.com/files/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1 CDDL"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="debug ibus nls +xim"
17
18 RDEPEND="dev-db/sqlite:3
19 ibus? (
20 >=app-i18n/ibus-1.1
21 !app-i18n/ibus-sunpinyin
22 )
23 nls? ( virtual/libintl )
24 xim? (
25 >=x11-libs/gtk+-2.12:2
26 x11-libs/libX11
27 )"
28 DEPEND="${RDEPEND}
29 dev-util/pkgconfig
30 nls? ( sys-devel/gettext )
31 xim? ( x11-proto/xproto )"
32
33 S="${WORKDIR}/${PN}-$(get_version_component_range 1-2)"
34
35 pkg_setup() {
36 confutils_require_any uim xim
37 }
38
39 src_prepare() {
40 epatch "${FILESDIR}/${P}-mkdir.patch"
41 mv py-compile py-compile.orig || die
42 ln -s "$(type -P true)" py-compile || die
43 }
44
45 src_configure() {
46 econf \
47 $(use_enable debug) \
48 $(use_enable ibus) \
49 $(use_enable nls) \
50 $(use_enable xim) || die
51 }
52
53 src_install() {
54 emake install DESTDIR="${D}" || die "Install failed"
55
56 dodoc AUTHORS ChangeLog NEWS README TODO || die
57 }
58
59 pkg_postinst() {
60 use ibus && python_mod_optimize /usr/share/ibus-${PN}/setup
61 if use xim ; then
62 elog "To use sunpinyin with XIM, you should use the following"
63 elog "in your user startup scripts such as .xinitrc or .xprofile:"
64 elog "XMODIFIERS=@im=xsunpinyin ; export XMODIFIERS"
65 fi
66 }
67
68 pkg_postrm() {
69 use ibus && python_mod_cleanup /usr/share/ibus-${PN}/setup
70 }

  ViewVC Help
Powered by ViewVC 1.1.20