Gentoo Archives: gentoo-commits

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