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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Nov 19 16:05:58 2009 UTC (10 years, 2 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumped, bug #292648. Removed old version.
(Portage version: 2.1.7.5/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.20091104.ebuild,v 1.1 2009/11/08 03:49:53 matsuu Exp $
4
5 EAPI="2"
6
7 inherit python
8
9 MY_P="${P/ibus-}"
10 DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME"
11 HOMEPAGE="http://code.google.com/p/ibus-sunpinyin/"
12 SRC_URI="http://ibus-sunpinyin.googlecode.com/files/${MY_P}.tar.gz"
13
14 LICENSE="LGPL-2.1 CDDL"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="debug nls"
18
19 RDEPEND="x11-libs/gtk+:2
20 dev-libs/glib:2
21 dev-db/sqlite:3
22 >=app-i18n/ibus-1.1
23 >=dev-lang/python-2.5
24 nls? ( virtual/libintl )"
25 DEPEND="${RDEPEND}
26 dev-util/pkgconfig
27 nls? ( sys-devel/gettext )"
28
29 S="${WORKDIR}/${MY_P%.*}"
30
31 src_prepare() {
32 mv py-compile py-compile.orig || die
33 ln -s "$(type -P true)" py-compile || die
34 }
35
36 src_configure() {
37 econf \
38 $(use_enable debug) \
39 $(use_enable nls) \
40 --enable-ibus || die
41 }
42
43 src_install() {
44 emake install DESTDIR="${D}" || die "Install failed"
45
46 dodoc AUTHORS ChangeLog NEWS README TODO
47 }
48
49 pkg_postinst() {
50 python_mod_optimize /usr/share/${PN}/setup
51 }
52
53 pkg_postrm() {
54 python_mod_cleanup /usr/share/${PN}/setup
55 }

  ViewVC Help
Powered by ViewVC 1.1.20