1 |
matsuu 11/07/29 00:26:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: uim-1.7.1.ebuild |
5 |
Log: |
6 |
Version bumped. |
7 |
|
8 |
(Portage version: 2.1.10.7/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.233 app-i18n/uim/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/ChangeLog?rev=1.233&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/ChangeLog?rev=1.233&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/ChangeLog?r1=1.232&r2=1.233 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v |
20 |
retrieving revision 1.232 |
21 |
retrieving revision 1.233 |
22 |
diff -u -r1.232 -r1.233 |
23 |
--- ChangeLog 23 May 2011 17:28:21 -0000 1.232 |
24 |
+++ ChangeLog 29 Jul 2011 00:26:53 -0000 1.233 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-i18n/uim |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.232 2011/05/23 17:28:21 matsuu Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.233 2011/07/29 00:26:53 matsuu Exp $ |
30 |
+ |
31 |
+*uim-1.7.1 (29 Jul 2011) |
32 |
+ |
33 |
+ 29 Jul 2011; MATSUU Takuto <matsuu@g.o> +uim-1.7.1.ebuild: |
34 |
+ Version bumped. |
35 |
|
36 |
*uim-1.7.0 (23 May 2011) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 app-i18n/uim/uim-1.7.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/uim-1.7.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/uim-1.7.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: uim-1.7.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/uim-1.7.1.ebuild,v 1.1 2011/07/29 00:26:53 matsuu Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
inherit autotools eutils multilib elisp-common flag-o-matic |
54 |
|
55 |
DESCRIPTION="Simple, secure and flexible input method library" |
56 |
HOMEPAGE="http://code.google.com/p/uim/" |
57 |
SRC_URI="http://uim.googlecode.com/files/${P}.tar.bz2" |
58 |
|
59 |
LICENSE="BSD GPL-2 LGPL-2.1" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" |
62 |
IUSE="+anthy canna curl eb emacs ffi gnome gtk gtk3 kde libedit libnotify m17n-lib ncurses nls prime qt4 skk sqlite ssl static-libs test unicode X xft linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko" |
63 |
|
64 |
RESTRICT="test" |
65 |
|
66 |
RDEPEND="X? ( |
67 |
x11-libs/libX11 |
68 |
x11-libs/libXft |
69 |
x11-libs/libXt |
70 |
x11-libs/libICE |
71 |
x11-libs/libSM |
72 |
x11-libs/libXext |
73 |
x11-libs/libXrender |
74 |
) |
75 |
anthy? ( |
76 |
unicode? ( >=app-i18n/anthy-8622 ) |
77 |
!unicode? ( app-i18n/anthy ) |
78 |
) |
79 |
canna? ( app-i18n/canna ) |
80 |
curl? ( >=net-misc/curl-7.16.4 ) |
81 |
eb? ( dev-libs/eb ) |
82 |
emacs? ( virtual/emacs ) |
83 |
ffi? ( virtual/libffi ) |
84 |
gnome? ( >=gnome-base/gnome-panel-2.14 ) |
85 |
gtk? ( >=x11-libs/gtk+-2.4:2 ) |
86 |
gtk3? ( x11-libs/gtk+:3 ) |
87 |
kde? ( >=kde-base/kdelibs-4 ) |
88 |
libedit? ( dev-libs/libedit ) |
89 |
libnotify? ( >=x11-libs/libnotify-0.4 ) |
90 |
m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) |
91 |
ncurses? ( sys-libs/ncurses ) |
92 |
nls? ( virtual/libintl ) |
93 |
prime? ( app-i18n/prime ) |
94 |
qt4? ( x11-libs/qt-gui:4[qt3support] ) |
95 |
skk? ( app-i18n/skk-jisyo ) |
96 |
sqlite? ( dev-db/sqlite:3 ) |
97 |
ssl? ( dev-libs/openssl ) |
98 |
!dev-scheme/sigscheme |
99 |
!app-i18n/uim-svn |
100 |
!<app-i18n/prime-0.9.4" |
101 |
# >=dev-scheme/sigscheme-0.8.5 |
102 |
# mana? ( app-i18n/mana ) |
103 |
# scim? ( >=app-i18n/scim-1.3.0 ) # broken |
104 |
# sj3? ( >=app-i18n/sj3-2.0.1.21 ) |
105 |
# wnn? ( app-i18n/wnn ) |
106 |
# gnome? ( |
107 |
# gtk? ( >=gnome-base/gnome-panel-2.14 ) |
108 |
# gtk3? ( >=gnome-base/gnome-panel-3 ) |
109 |
# ) |
110 |
DEPEND="${RDEPEND} |
111 |
dev-util/pkgconfig |
112 |
>=sys-devel/gettext-0.15 |
113 |
kde? ( dev-util/cmake ) |
114 |
X? ( |
115 |
x11-proto/xextproto |
116 |
x11-proto/xproto |
117 |
)" |
118 |
|
119 |
RDEPEND="${RDEPEND} |
120 |
X? ( |
121 |
media-fonts/font-sony-misc |
122 |
linguas_zh_CN? ( |
123 |
|| ( media-fonts/font-isas-misc media-fonts/intlfonts ) |
124 |
) |
125 |
linguas_zh_TW? ( |
126 |
media-fonts/intlfonts |
127 |
) |
128 |
linguas_ja? ( |
129 |
|| ( media-fonts/font-jis-misc media-fonts/intlfonts ) |
130 |
) |
131 |
linguas_ko? ( |
132 |
|| ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) |
133 |
) |
134 |
)" |
135 |
# test? ( dev-scheme/gauche ) |
136 |
|
137 |
SITEFILE=50${PN}-gentoo.el |
138 |
|
139 |
update_gtk_immodules() { |
140 |
local GTK2_CONFDIR="/etc/gtk-2.0" |
141 |
# bug #366889 |
142 |
if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then |
143 |
GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)" |
144 |
fi |
145 |
mkdir -p "${EPREFIX}${GTK2_CONFDIR}" |
146 |
|
147 |
if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then |
148 |
"${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${EPREFIX}${GTK2_CONFDIR}/gtk.immodules" |
149 |
fi |
150 |
} |
151 |
|
152 |
update_gtk3_immodules() { |
153 |
if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then |
154 |
"${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache |
155 |
fi |
156 |
} |
157 |
|
158 |
src_prepare() { |
159 |
epatch \ |
160 |
"${FILESDIR}"/${PN}-1.6.0-gentoo.patch \ |
161 |
"${FILESDIR}"/${PN}-1.5.4-zhTW.patch |
162 |
|
163 |
# bug 275420 |
164 |
sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die |
165 |
#./autogen.sh |
166 |
AT_NO_RECURSIVE=1 eautoreconf |
167 |
} |
168 |
|
169 |
src_configure() { |
170 |
local myconf |
171 |
|
172 |
if (use gtk || use gtk3) && (use anthy || use canna) ; then |
173 |
myconf="${myconf} --enable-dict" |
174 |
else |
175 |
myconf="${myconf} --disable-dict" |
176 |
fi |
177 |
|
178 |
if use gtk || use gtk3 || use qt4 ; then |
179 |
myconf="${myconf} --enable-pref" |
180 |
else |
181 |
myconf="${myconf} --disable-pref" |
182 |
fi |
183 |
|
184 |
if use anthy ; then |
185 |
if use unicode ; then |
186 |
myconf="${myconf} --with-anthy-utf8" |
187 |
else |
188 |
myconf="${myconf} --with-anthy" |
189 |
fi |
190 |
else |
191 |
myconf="${myconf} --without-anthy" |
192 |
fi |
193 |
|
194 |
if use libnotify ; then |
195 |
myconf="${myconf} --enable-notify=libnotify" |
196 |
fi |
197 |
|
198 |
#if use gnome ; then |
199 |
# myconf="${myconf} $(use_enable gtk gnome-applet)" |
200 |
# myconf="${myconf} $(use_enable gtk3 gnome3-applet)" |
201 |
#fi |
202 |
|
203 |
econf $(use_with X x) \ |
204 |
$(use_with canna) \ |
205 |
$(use_with curl) \ |
206 |
$(use_with eb) \ |
207 |
$(use_enable emacs) \ |
208 |
$(use_with emacs lispdir "${SITELISP}") \ |
209 |
$(use_with ffi) \ |
210 |
$(use_enable gnome gnome-applet) \ |
211 |
$(use_with gtk gtk2) \ |
212 |
$(use_with gtk3) \ |
213 |
$(use_with libedit) \ |
214 |
--disable-kde-applet \ |
215 |
$(use_enable kde kde4-applet) \ |
216 |
$(use_with m17n-lib m17nlib) \ |
217 |
$(use_enable ncurses fep) \ |
218 |
$(use_enable nls) \ |
219 |
$(use_with prime) \ |
220 |
--without-qt \ |
221 |
--without-qt-immodule \ |
222 |
$(use_with qt4 qt4) \ |
223 |
$(use_with qt4 qt4-immodule) \ |
224 |
$(use_with skk) \ |
225 |
$(use_with sqlite sqlite3) \ |
226 |
$(use_enable ssl openssl) \ |
227 |
$(use_enable static-libs static) \ |
228 |
$(use_with xft) \ |
229 |
${myconf} |
230 |
# $(use_enable qt4 qt4-qt3support) \ |
231 |
} |
232 |
|
233 |
src_compile() { |
234 |
emake || die "emake failed" |
235 |
|
236 |
if use emacs; then |
237 |
cd emacs |
238 |
elisp-compile *.el || die "elisp-compile failed" |
239 |
fi |
240 |
} |
241 |
|
242 |
src_install() { |
243 |
# parallel make install b0rked, bug #222677 |
244 |
emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "make install failed" |
245 |
|
246 |
dodoc AUTHORS ChangeLog* NEWS README RELNOTE || die |
247 |
if use emacs; then |
248 |
elisp-install uim-el emacs/*.elc || die "elisp-install failed" |
249 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ |
250 |
|| die "elisp-site-file-install failed" |
251 |
fi |
252 |
|
253 |
find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} + |
254 |
use static-libs || find "${ED}" -name '*.la' -exec rm {} + |
255 |
|
256 |
sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die |
257 |
insinto /etc/X11/xinit/xinput.d |
258 |
doins "${T}/uim.conf" || die |
259 |
|
260 |
# collision with dev-scheme/sigscheme, bug #330975 |
261 |
# find "${ED}" -name '*gcroots*' -delete || die |
262 |
} |
263 |
|
264 |
pkg_postinst() { |
265 |
elog |
266 |
elog "New input method switcher has been introduced. You need to set" |
267 |
elog |
268 |
elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" |
269 |
elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE" |
270 |
elog "% XMODIFIERS=@im=uim ; export XMODIFIERS" |
271 |
elog |
272 |
elog "If you would like to use uim-anthy as default input method, put" |
273 |
elog "(define default-im-name 'anthy)" |
274 |
elog "to your ~/.uim." |
275 |
elog |
276 |
elog "All input methods can be found by running uim-im-switcher-gtk, " |
277 |
elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4." |
278 |
elog |
279 |
elog "If you upgrade from a version of uim older than 1.4.0," |
280 |
elog "you should run revdep-rebuild." |
281 |
|
282 |
use gtk && update_gtk_immodules |
283 |
use gtk3 && update_gtk3_immodules |
284 |
if use emacs; then |
285 |
elisp-site-regen |
286 |
echo |
287 |
elog "uim is autoloaded with Emacs with a minimal set of features:" |
288 |
elog "There is no keybinding defined to call it directly, so please" |
289 |
elog "create one yourself and choose an input method." |
290 |
elog "Integration with LEIM is not done with this ebuild, please have" |
291 |
elog "a look at the documentation how to achieve this." |
292 |
fi |
293 |
} |
294 |
|
295 |
pkg_postrm() { |
296 |
use gtk && update_gtk_immodules |
297 |
use gtk3 && update_gtk3_immodules |
298 |
use emacs && elisp-site-regen |
299 |
} |