Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/sunpinyin: metadata.xml ChangeLog sunpinyin-2.0.1.ebuild
Date: Tue, 04 May 2010 01:34:54
Message-Id: 20100504013441.B1A862C3D6@corvid.gentoo.org
1 matsuu 10/05/04 01:34:41
2
3 Added: metadata.xml ChangeLog sunpinyin-2.0.1.ebuild
4 Log:
5 Moving app-i18n/ibus-sunpinyin to app-i18n/sunpinyin.
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-i18n/sunpinyin/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/sunpinyin/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/sunpinyin/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>cjk</herd>
20 <use>
21 <flag name='ibus'>Enable support for <pkg>app-i18n/ibus</pkg> input method
22 </flag>
23 <flag name='xim'>Enable support for XIM</flag>
24 </use>
25 </pkgmetadata>
26
27
28
29 1.1 app-i18n/sunpinyin/ChangeLog
30
31 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/sunpinyin/ChangeLog?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/sunpinyin/ChangeLog?rev=1.1&content-type=text/plain
33
34 Index: ChangeLog
35 ===================================================================
36 # ChangeLog for app-i18n/sunpinyin
37 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
38 # $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/ChangeLog,v 1.1 2010/05/04 01:34:41 matsuu Exp $
39
40 *sunpinyin-2.0.1 (04 May 2010)
41
42 04 May 2010; MATSUU Takuto <matsuu@g.o>
43 -ibus-sunpinyin-2.0_rc3.ebuild, +sunpinyin-2.0.1.ebuild,
44 +files/sunpinyin-2.0.1-mkdir.patch, metadata.xml:
45 Version bumped. Moved from app-i18n/ibus-sunpinyin to app-i18n/sunpinyin,
46 bug #314769.
47
48 *ibus-sunpinyin-2.0_rc3 (19 Nov 2009)
49
50 19 Nov 2009; MATSUU Takuto <matsuu@g.o>
51 +ibus-sunpinyin-2.0_rc3.ebuild, -ibus-sunpinyin-2.0.20091104.ebuild:
52 Version bumped, bug #292648. Removed old version.
53
54 *ibus-sunpinyin-2.0.20091104 (08 Nov 2009)
55
56 08 Nov 2009; MATSUU Takuto <matsuu@g.o>
57 +ibus-sunpinyin-2.0.20091104.ebuild, +metadata.xml:
58 Initial import, bug #288566. The ebuild was submitted by Hubert Star.
59
60
61
62
63 1.1 app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild
64
65 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild?rev=1.1&view=markup
66 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild?rev=1.1&content-type=text/plain
67
68 Index: sunpinyin-2.0.1.ebuild
69 ===================================================================
70 # Copyright 1999-2010 Gentoo Foundation
71 # Distributed under the terms of the GNU General Public License v2
72 # $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild,v 1.1 2010/05/04 01:34:41 matsuu Exp $
73
74 EAPI="2"
75 PYTHON_DEPEND="ibus? 2:2.5"
76 inherit confutils eutils python versionator
77
78 DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME"
79 HOMEPAGE="http://sunpinyin.org/"
80 SRC_URI="http://sunpinyin.googlecode.com/files/${P}.tar.gz"
81
82 LICENSE="LGPL-2.1 CDDL"
83 SLOT="0"
84 KEYWORDS="~amd64 ~x86"
85 IUSE="debug ibus nls +xim"
86
87 RDEPEND="dev-db/sqlite:3
88 ibus? (
89 >=app-i18n/ibus-1.1
90 !app-i18n/ibus-sunpinyin
91 )
92 nls? ( virtual/libintl )
93 xim? (
94 >=x11-libs/gtk+-2.12:2
95 x11-libs/libX11
96 )"
97 DEPEND="${RDEPEND}
98 dev-util/pkgconfig
99 nls? ( sys-devel/gettext )
100 xim? ( x11-proto/xproto )"
101
102 S="${WORKDIR}/${PN}-$(get_version_component_range 1-2)"
103
104 pkg_setup() {
105 confutils_require_any uim xim
106 }
107
108 src_prepare() {
109 epatch "${FILESDIR}/${P}-mkdir.patch"
110 mv py-compile py-compile.orig || die
111 ln -s "$(type -P true)" py-compile || die
112 }
113
114 src_configure() {
115 econf \
116 $(use_enable debug) \
117 $(use_enable ibus) \
118 $(use_enable nls) \
119 $(use_enable xim) || die
120 }
121
122 src_install() {
123 emake install DESTDIR="${D}" || die "Install failed"
124
125 dodoc AUTHORS ChangeLog NEWS README TODO || die
126 }
127
128 pkg_postinst() {
129 use ibus && python_mod_optimize /usr/share/ibus-${PN}/setup
130 if use xim ; then
131 elog "To use sunpinyin with XIM, you should use the following"
132 elog "in your user startup scripts such as .xinitrc or .xprofile:"
133 elog "XMODIFIERS=@im=xsunpinyin ; export XMODIFIERS"
134 fi
135 }
136
137 pkg_postrm() {
138 use ibus && python_mod_cleanup /usr/share/ibus-${PN}/setup
139 }