1 |
qiaomuf 12/06/07 06:28:17 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: fcitx-4.2.4.ebuild |
5 |
Log: |
6 |
Version bump for fcitx-4.2.4 |
7 |
|
8 |
(Portage version: 2.1.10.60/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 app-i18n/fcitx/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-i18n/fcitx/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 21 Mar 2012 01:54:50 -0000 1.5 |
24 |
+++ metadata.xml 7 Jun 2012 06:28:17 -0000 1.6 |
25 |
@@ -7,10 +7,12 @@ |
26 |
<name>Mu Qiao</name> |
27 |
</maintainer> |
28 |
<use> |
29 |
+ <flag name="gir">Enable GObject Introspection</flag> |
30 |
<flag name="gtk3">Use GTK+3 instead of 2</flag> |
31 |
<flag name='opencc'>Enable OpenCC for Chinese Transform</flag> |
32 |
<flag name='pango'>Enable support for <pkg>x11-libs/pango</pkg></flag> |
33 |
<flag name='qt'>Enable Qt IM Module</flag> |
34 |
+ <flag name='snooper'>Enable Key Snooper for gtk app</flag> |
35 |
<flag name='table'>Enable Table IM</flag> |
36 |
</use> |
37 |
</pkgmetadata> |
38 |
|
39 |
|
40 |
|
41 |
1.49 app-i18n/fcitx/ChangeLog |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/ChangeLog?rev=1.49&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/ChangeLog?rev=1.49&content-type=text/plain |
45 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/ChangeLog?r1=1.48&r2=1.49 |
46 |
|
47 |
Index: ChangeLog |
48 |
=================================================================== |
49 |
RCS file: /var/cvsroot/gentoo-x86/app-i18n/fcitx/ChangeLog,v |
50 |
retrieving revision 1.48 |
51 |
retrieving revision 1.49 |
52 |
diff -u -r1.48 -r1.49 |
53 |
--- ChangeLog 18 May 2012 14:21:32 -0000 1.48 |
54 |
+++ ChangeLog 7 Jun 2012 06:28:17 -0000 1.49 |
55 |
@@ -1,6 +1,11 @@ |
56 |
# ChangeLog for app-i18n/fcitx |
57 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
58 |
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/ChangeLog,v 1.48 2012/05/18 14:21:32 josejx Exp $ |
59 |
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/ChangeLog,v 1.49 2012/06/07 06:28:17 qiaomuf Exp $ |
60 |
+ |
61 |
+*fcitx-4.2.4 (07 Jun 2012) |
62 |
+ |
63 |
+ 07 Jun 2012; Mu Qiao <qiaomuf@g.o> +fcitx-4.2.4.ebuild, metadata.xml: |
64 |
+ Version bump for fcitx-4.2.4 |
65 |
|
66 |
18 May 2012; Joseph Jezak <josejx@g.o> fcitx-4.0.0.ebuild, |
67 |
fcitx-4.0.1.ebuild, fcitx-4.2.1.ebuild, fcitx-4.2.3.ebuild: |
68 |
|
69 |
|
70 |
|
71 |
1.1 app-i18n/fcitx/fcitx-4.2.4.ebuild |
72 |
|
73 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/fcitx-4.2.4.ebuild?rev=1.1&view=markup |
74 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/fcitx/fcitx-4.2.4.ebuild?rev=1.1&content-type=text/plain |
75 |
|
76 |
Index: fcitx-4.2.4.ebuild |
77 |
=================================================================== |
78 |
# Copyright 1999-2012 Gentoo Foundation |
79 |
# Distributed under the terms of the GNU General Public License v2 |
80 |
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/fcitx-4.2.4.ebuild,v 1.1 2012/06/07 06:28:17 qiaomuf Exp $ |
81 |
|
82 |
EAPI="3" |
83 |
|
84 |
inherit multilib cmake-utils eutils |
85 |
|
86 |
DESCRIPTION="Free Chinese Input Toy for X. Another Chinese XIM Input Method" |
87 |
HOMEPAGE="http://www.fcitx.org/" |
88 |
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz |
89 |
http://fcitx.googlecode.com/files/pinyin.tar.gz |
90 |
table? ( http://fcitx.googlecode.com/files/table.tar.gz )" |
91 |
|
92 |
LICENSE="GPL-2" |
93 |
SLOT="0" |
94 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
95 |
IUSE="+cairo debug gir gtk gtk3 lua opencc +pango qt snooper static-libs +table test" |
96 |
|
97 |
RDEPEND=" |
98 |
cairo? ( |
99 |
x11-libs/cairo[X] |
100 |
pango? ( x11-libs/pango[X] ) |
101 |
!pango? ( media-libs/fontconfig ) |
102 |
) |
103 |
gtk? ( |
104 |
x11-libs/gtk+:2 |
105 |
dev-libs/glib:2 |
106 |
dev-libs/dbus-glib |
107 |
) |
108 |
gtk3? ( |
109 |
x11-libs/gtk+:3 |
110 |
dev-libs/glib:2 |
111 |
dev-libs/dbus-glib |
112 |
) |
113 |
lua? ( dev-lang/lua ) |
114 |
opencc? ( app-i18n/opencc ) |
115 |
qt? ( |
116 |
x11-libs/qt-gui:4 |
117 |
x11-libs/qt-dbus:4 |
118 |
) |
119 |
sys-apps/dbus |
120 |
x11-libs/libX11" |
121 |
DEPEND="${RDEPEND} |
122 |
app-arch/xz-utils |
123 |
dev-util/intltool |
124 |
virtual/pkgconfig |
125 |
x11-proto/xproto" |
126 |
|
127 |
update_gtk_immodules() { |
128 |
local GTK2_CONFDIR="/etc/gtk-2.0" |
129 |
# bug #366889 |
130 |
if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then |
131 |
GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)" |
132 |
fi |
133 |
mkdir -p "${EPREFIX}${GTK2_CONFDIR}" |
134 |
|
135 |
if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then |
136 |
"${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${EPREFIX}${GTK2_CONFDIR}/gtk.immodules" |
137 |
fi |
138 |
} |
139 |
|
140 |
update_gtk3_immodules() { |
141 |
if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then |
142 |
"${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache |
143 |
fi |
144 |
} |
145 |
|
146 |
src_prepare() { |
147 |
cp "${DISTDIR}/pinyin.tar.gz" "${S}/data" || die "pinyin.tar.gz is not found" |
148 |
if use table ; then |
149 |
cp "${DISTDIR}/table.tar.gz" "${S}/data/table" || die "table.tar.gz is not found" |
150 |
fi |
151 |
} |
152 |
|
153 |
src_configure() { |
154 |
local mycmakeargs=" |
155 |
-DLIB_INSTALL_DIR=/usr/$(get_libdir) |
156 |
$(cmake-utils_use_enable cairo CARIO) |
157 |
$(cmake-utils_use_enable debug DEBUG) |
158 |
$(cmake-utils_use_enable gir GIR) |
159 |
$(cmake-utils_use_enable gtk GTK2_IM_MODULE) |
160 |
$(cmake-utils_use_enable gtk3 GTK3_IM_MODULE) |
161 |
$(cmake-utils_use_enable lua LUA) |
162 |
$(cmake-utils_use_enable opencc OPENCC) |
163 |
$(cmake-utils_use_enable pango PANGO) |
164 |
$(cmake-utils_use_enable qt QT_IM_MODULE) |
165 |
$(cmake-utils_use_enable snooper SNOOPER) |
166 |
$(cmake-utils_use_enable static-libs STATIC) |
167 |
$(cmake-utils_use_enable table TABLE) |
168 |
$(cmake-utils_use_enable test TEST)" |
169 |
cmake-utils_src_configure |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
cmake-utils_src_install |
174 |
|
175 |
dodoc AUTHORS ChangeLog README THANKS TODO || die |
176 |
|
177 |
rm -rf "${ED}"/usr/share/fcitx/doc/ || die |
178 |
dodoc doc/pinyin.txt doc/cjkvinput.txt || die |
179 |
dohtml doc/wb_fh.htm || die |
180 |
} |
181 |
|
182 |
pkg_postinst() { |
183 |
use gtk && update_gtk_immodules |
184 |
use gtk3 && update_gtk3_immodules |
185 |
elog |
186 |
elog "You should export the following variables to use fcitx" |
187 |
elog " export XMODIFIERS=\"@im=fcitx\"" |
188 |
elog " export XIM=fcitx" |
189 |
elog " export XIM_PROGRAM=fcitx" |
190 |
elog |
191 |
} |
192 |
|
193 |
pkg_postrm() { |
194 |
use gtk && update_gtk_immodules |
195 |
use gtk3 && update_gtk3_immodules |
196 |
} |