/[gentoo-x86]/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild
Gentoo

Contents of /app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu May 3 19:24:26 2012 UTC (12 months, 2 weeks ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild,v 1.1 2012/03/13 14:24:55 naota Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.5"
8 PYTHON_USE_WITH="sqlite"
9
10 inherit python
11
12 PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
13 DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
14 HOMEPAGE="http://code.google.com/p/ibus/"
15 SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
16 http://ibus.googlecode.com/files/${PYDB_TAR}"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="boost lua nls opencc"
22
23 RDEPEND=">=app-i18n/ibus-1.4
24 sys-apps/util-linux
25 boost? ( >=dev-libs/boost-1.39 )
26 lua? ( >=dev-lang/lua-5.1 )
27 nls? ( virtual/libintl )
28 opencc? ( app-i18n/opencc )"
29 DEPEND="${RDEPEND}
30 virtual/pkgconfig
31 nls? ( >=sys-devel/gettext-0.16.1 )"
32
33 DOCS="AUTHORS ChangeLog NEWS README"
34
35 pkg_setup() {
36 python_set_active_version 2
37 python_pkg_setup
38 }
39
40 src_prepare() {
41 cp "${DISTDIR}"/${PYDB_TAR} data/db/open-phrase/ || die
42 >py-compile
43 }
44
45 src_configure() {
46 econf \
47 $(use_enable boost) \
48 $(use_enable lua lua-extension) \
49 $(use_enable nls) \
50 $(use_enable opencc) \
51 --enable-db-open-phrase
52 #--disable-db-android \
53 #--disable-english-input-mode \
54 }
55
56 pkg_postinst() {
57 python_mod_optimize /usr/share/${PN}
58 }
59
60 pkg_postrm() {
61 python_mod_cleanup /usr/share/${PN}
62 }

  ViewVC Help
Powered by ViewVC 1.1.13