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

Contents of /app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0_rc3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 4 01:27:22 2010 UTC (9 years, 8 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumped. Moved from app-i18n/ibus-sunpinyin to app-i18n/sunpinyin, bug #314769.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0_rc3.ebuild,v 1.1 2009/11/19 16:05:58 matsuu Exp $
4
5 EAPI="2"
6
7 inherit python
8
9 DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME"
10 HOMEPAGE="http://code.google.com/p/ibus-sunpinyin/"
11 SRC_URI="http://ibus-sunpinyin.googlecode.com/files/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1 CDDL"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="debug nls"
17
18 RDEPEND="x11-libs/gtk+:2
19 dev-libs/glib:2
20 dev-db/sqlite:3
21 >=app-i18n/ibus-1.1
22 >=dev-lang/python-2.5
23 nls? ( virtual/libintl )"
24 DEPEND="${RDEPEND}
25 dev-util/pkgconfig
26 nls? ( sys-devel/gettext )"
27
28 S="${WORKDIR}/sunpinyin-${PV/_*}"
29
30 src_prepare() {
31 mv py-compile py-compile.orig || die
32 ln -s "$(type -P true)" py-compile || die
33 }
34
35 src_configure() {
36 econf \
37 $(use_enable debug) \
38 $(use_enable nls) \
39 --enable-ibus || die
40 }
41
42 src_install() {
43 emake install DESTDIR="${D}" || die "Install failed"
44
45 dodoc AUTHORS ChangeLog NEWS README TODO
46 }
47
48 pkg_postinst() {
49 python_mod_optimize /usr/share/${PN}/setup
50 }
51
52 pkg_postrm() {
53 python_mod_cleanup /usr/share/${PN}/setup
54 }

  ViewVC Help
Powered by ViewVC 1.1.20