Gentoo Archives: gentoo-commits

From: "Yixun Lan (dlan)" <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/ibus-pinyin: ChangeLog ibus-pinyin-1.5.0-r1.ebuild ibus-pinyin-1.4.0-r1.ebuild
Date: Thu, 19 Jun 2014 15:19:54
Message-Id: 20140619151947.E06512004E@flycatcher.gentoo.org
1 dlan 14/06/19 15:19:47
2
3 Modified: ChangeLog
4 Added: ibus-pinyin-1.5.0-r1.ebuild
5 ibus-pinyin-1.4.0-r1.ebuild
6 Log:
7 add pygtk dep, fix python shebang, bug 511922. thanks @Yi Yang
8
9 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
10
11 Revision Changes Path
12 1.48 app-i18n/ibus-pinyin/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog?rev=1.48&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog?rev=1.48&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog?r1=1.47&r2=1.48
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog,v
21 retrieving revision 1.47
22 retrieving revision 1.48
23 diff -u -r1.47 -r1.48
24 --- ChangeLog 10 Jun 2014 08:44:59 -0000 1.47
25 +++ ChangeLog 19 Jun 2014 15:19:47 -0000 1.48
26 @@ -1,6 +1,13 @@
27 # ChangeLog for app-i18n/ibus-pinyin
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog,v 1.47 2014/06/10 08:44:59 naota Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ChangeLog,v 1.48 2014/06/19 15:19:47 dlan Exp $
31 +
32 +*ibus-pinyin-1.5.0-r1 (19 Jun 2014)
33 +*ibus-pinyin-1.4.0-r1 (19 Jun 2014)
34 +
35 + 19 Jun 2014; Yixun Lan <dlan@g.o> +ibus-pinyin-1.4.0-r1.ebuild,
36 + +ibus-pinyin-1.5.0-r1.ebuild:
37 + add pygtk dep, fix python shebang, bug 511922. thanks @Yi Yang
38
39 10 Jun 2014; Naohiro Aota <naota@g.o> ibus-pinyin-1.4.0.ebuild,
40 ibus-pinyin-1.5.0.ebuild:
41
42
43
44 1.1 app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: ibus-pinyin-1.5.0-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild,v 1.1 2014/06/19 15:19:47 dlan Exp $
54
55 EAPI=5
56
57 PYTHON_DEPEND="2:2.5"
58 PYTHON_USE_WITH="sqlite"
59
60 inherit python eutils
61
62 DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
63 HOMEPAGE="http://code.google.com/p/ibus/"
64 SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="boost lua nls"
70
71 RDEPEND=">=app-i18n/ibus-1.4
72 dev-python/pygtk
73 app-i18n/pyzy
74 boost? ( >=dev-libs/boost-1.39 )
75 lua? (
76 >=dev-lang/lua-5.1
77 <dev-lang/lua-5.2 )
78 nls? ( virtual/libintl )"
79
80 DEPEND="${RDEPEND}
81 sys-apps/sed
82 virtual/pkgconfig
83 nls? ( >=sys-devel/gettext-0.16.1 )"
84
85 DOCS="AUTHORS ChangeLog NEWS README"
86
87 pkg_setup() {
88 python_set_active_version 2
89 python_pkg_setup
90 }
91
92 src_prepare() {
93 sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die
94 epatch "${FILESDIR}"/${P}-content-type-method.patch
95 }
96
97 src_configure() {
98 econf \
99 $(use_enable boost) \
100 $(use_enable lua lua-extension) \
101 $(use_enable nls) \
102 --enable-english-input-mode
103 }
104
105 pkg_postinst() {
106 python_mod_optimize /usr/share/${PN}
107 }
108
109 pkg_postrm() {
110 python_mod_cleanup /usr/share/${PN}
111 }
112
113
114
115 1.1 app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild
116
117 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild?rev=1.1&view=markup
118 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild?rev=1.1&content-type=text/plain
119
120 Index: ibus-pinyin-1.4.0-r1.ebuild
121 ===================================================================
122 # Copyright 1999-2014 Gentoo Foundation
123 # Distributed under the terms of the GNU General Public License v2
124 # $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild,v 1.1 2014/06/19 15:19:47 dlan Exp $
125
126 EAPI=4
127
128 PYTHON_DEPEND="2:2.5"
129 PYTHON_USE_WITH="sqlite"
130
131 inherit python
132
133 PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
134 DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
135 HOMEPAGE="http://code.google.com/p/ibus/"
136 SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
137 http://ibus.googlecode.com/files/${PYDB_TAR}"
138
139 LICENSE="GPL-2"
140 SLOT="0"
141 KEYWORDS="~amd64 ~x86"
142 IUSE="boost lua nls opencc"
143
144 RDEPEND=">=app-i18n/ibus-1.4
145 dev-python/pygtk
146 sys-apps/util-linux
147 boost? ( >=dev-libs/boost-1.39 )
148 lua? (
149 >=dev-lang/lua-5.1
150 <dev-lang/lua-5.2.0
151 )
152 nls? ( virtual/libintl )
153 opencc? ( app-i18n/opencc )"
154 DEPEND="${RDEPEND}
155 sys-apps/sed
156 virtual/pkgconfig
157 nls? ( >=sys-devel/gettext-0.16.1 )"
158
159 DOCS="AUTHORS ChangeLog NEWS README"
160
161 pkg_setup() {
162 python_set_active_version 2
163 python_pkg_setup
164 }
165
166 src_prepare() {
167 sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die
168 cp "${DISTDIR}"/${PYDB_TAR} data/db/open-phrase/ || die
169 >py-compile
170 }
171
172 src_configure() {
173 econf \
174 $(use_enable boost) \
175 $(use_enable lua lua-extension) \
176 $(use_enable nls) \
177 $(use_enable opencc) \
178 --enable-db-open-phrase
179 #--disable-db-android \
180 #--disable-english-input-mode \
181 }
182
183 pkg_postinst() {
184 python_mod_optimize /usr/share/${PN}
185 }
186
187 pkg_postrm() {
188 python_mod_cleanup /usr/share/${PN}
189 }