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/uim: ChangeLog uim-1.5.7-r1.ebuild
Date: Thu, 04 Feb 2010 16:33:19
Message-Id: E1Nd4dj-00018r-9P@stork.gentoo.org
1 matsuu 10/02/04 16:33:11
2
3 Modified: ChangeLog
4 Added: uim-1.5.7-r1.ebuild
5 Log:
6 Fixed kde4 issue, https://bugs.freedesktop.org/show_bug.cgi?id=24728
7 (Portage version: 2.1.7.16/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.219 app-i18n/uim/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/ChangeLog?rev=1.219&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/ChangeLog?rev=1.219&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/ChangeLog?r1=1.218&r2=1.219
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v
19 retrieving revision 1.218
20 retrieving revision 1.219
21 diff -u -r1.218 -r1.219
22 --- ChangeLog 19 Jan 2010 03:52:20 -0000 1.218
23 +++ ChangeLog 4 Feb 2010 16:33:10 -0000 1.219
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-i18n/uim
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.218 2010/01/19 03:52:20 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.219 2010/02/04 16:33:10 matsuu Exp $
29 +
30 +*uim-1.5.7-r1 (04 Feb 2010)
31 +
32 + 04 Feb 2010; MATSUU Takuto <matsuu@g.o> +uim-1.5.7-r1.ebuild,
33 + +files/uim-1.5.7-kde4-applet.patch, +files/uim-1.5.7-kde4.patch:
34 + Fixed kde4 issue, https://bugs.freedesktop.org/show_bug.cgi?id=24728
35
36 19 Jan 2010; Jeroen Roovers <jer@g.o> uim-1.5.7.ebuild:
37 Stable for HPPA (bug #298221).
38
39
40
41 1.1 app-i18n/uim/uim-1.5.7-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/uim-1.5.7-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/uim-1.5.7-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: uim-1.5.7-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 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.5.7-r1.ebuild,v 1.1 2010/02/04 16:33:10 matsuu Exp $
51
52 EAPI="2"
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="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
62 IUSE="+anthy canna eb emacs gnome gtk kde libedit libnotify m17n-lib ncurses nls prime qt4 unicode X xft linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko"
63
64 RDEPEND="X? (
65 x11-libs/libX11
66 x11-libs/libXft
67 x11-libs/libXt
68 x11-libs/libICE
69 x11-libs/libSM
70 x11-libs/libXext
71 x11-libs/libXrender
72 )
73 anthy? (
74 unicode? ( >=app-i18n/anthy-8622 )
75 !unicode? ( app-i18n/anthy )
76 )
77 canna? ( app-i18n/canna )
78 eb? ( dev-libs/eb )
79 emacs? ( virtual/emacs )
80 gnome? ( >=gnome-base/gnome-panel-2.14 )
81 gtk? ( >=x11-libs/gtk+-2.4 )
82 kde? ( >=kde-base/kdelibs-4 )
83 libedit? ( dev-libs/libedit )
84 libnotify? ( >=x11-libs/libnotify-0.4 )
85 m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 )
86 ncurses? ( sys-libs/ncurses )
87 nls? ( virtual/libintl )
88 prime? ( app-i18n/prime )
89 qt4? ( x11-libs/qt-gui:4[qt3support] )
90 !app-i18n/uim-svn
91 !<app-i18n/prime-0.9.4"
92 # mana? ( app-i18n/mana )
93 # scim? ( >=app-i18n/scim-1.3.0 ) # broken
94 # sj3? ( >=app-i18n/sj3-2.0.1.21 )
95 # wnn? ( app-i18n/wnn )
96
97 DEPEND="${RDEPEND}
98 dev-util/pkgconfig
99 >=sys-devel/gettext-0.15
100 kde? ( dev-util/cmake )
101 X? (
102 x11-proto/xextproto
103 x11-proto/xproto
104 )"
105
106 RDEPEND="${RDEPEND}
107 X? (
108 media-fonts/font-sony-misc
109 linguas_zh_CN? (
110 || ( media-fonts/font-isas-misc media-fonts/intlfonts )
111 )
112 linguas_zh_TW? (
113 media-fonts/intlfonts
114 )
115 linguas_ja? (
116 || ( media-fonts/font-jis-misc media-fonts/intlfonts )
117 )
118 linguas_ko? (
119 || ( media-fonts/font-daewoo-misc media-fonts/intlfonts )
120 )
121 )"
122
123 SITEFILE=50${PN}-gentoo.el
124
125 pkg_setup() {
126 # An arch specific config directory is used on multilib systems
127 has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
128 GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
129 }
130
131 src_prepare() {
132 epatch \
133 "${FILESDIR}/${PN}-1.5.4-gentoo.patch" \
134 "${FILESDIR}/${PN}-1.5.4-gcc43.patch" \
135 "${FILESDIR}/${PN}-1.5.4-zhTW.patch" \
136 "${FILESDIR}/${P}-kde4.patch" \
137 "${FILESDIR}/${P}-kde4-applet.patch"
138
139 # bug 275420
140 sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die
141 eautoconf
142 }
143
144 src_configure() {
145 local myconf
146
147 if use gtk && (use anthy || use canna) ; then
148 myconf="${myconf} --enable-dict"
149 else
150 myconf="${myconf} --disable-dict"
151 fi
152
153 if use gtk || use qt4 ; then
154 myconf="${myconf} --enable-pref"
155 else
156 myconf="${myconf} --disable-pref"
157 fi
158
159 if use anthy ; then
160 if use unicode ; then
161 myconf="${myconf} --with-anthy-utf8"
162 else
163 myconf="${myconf} --with-anthy"
164 fi
165 else
166 myconf="${myconf} --without-anthy"
167 fi
168
169 if use libnotify ; then
170 myconf="${myconf} --enable-notify=libnotify"
171 fi
172
173 econf $(use_with X x) \
174 $(use_with canna) \
175 $(use_with eb) \
176 $(use_enable emacs) \
177 $(use_with emacs lispdir "${SITELISP}") \
178 $(use_enable gnome gnome-applet) \
179 $(use_with gtk gtk2) \
180 $(use_with libedit) \
181 --disable-kde-applet \
182 $(use_enable kde kde4-applet) \
183 $(use_with m17n-lib m17nlib) \
184 $(use_enable ncurses fep) \
185 $(use_enable nls) \
186 $(use_with prime) \
187 --without-qt \
188 --without-qt-immodule \
189 $(use_with qt4 qt4) \
190 $(use_with qt4 qt4-immodule) \
191 $(use_with xft) \
192 ${myconf}
193 }
194
195 src_compile() {
196 emake || die "emake failed"
197
198 if use emacs; then
199 cd emacs
200 elisp-compile *.el || die "elisp-compile failed"
201 fi
202 }
203
204 src_install() {
205 # parallel make install b0rked, bug #222677
206 emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "make install failed"
207
208 dodoc AUTHORS ChangeLog* NEWS README RELNOTE
209 if use emacs; then
210 elisp-install uim-el emacs/*.elc || die "elisp-install failed"
211 elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \
212 || die "elisp-site-file-install failed"
213 fi
214 }
215
216 pkg_postinst() {
217 elog
218 elog "To use uim-skk you should emerge app-i18n/skk-jisyo."
219 elog
220 elog "New input method switcher has been introduced. You need to set"
221 elog
222 elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
223 elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
224 elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
225 elog
226 elog "If you would like to use uim-anthy as default input method, put"
227 elog "(define default-im-name 'anthy)"
228 elog "to your ~/.uim."
229 elog
230 elog "All input methods can be found by running uim-im-switcher-gtk, "
231 elog "or uim-im-switcher-qt4."
232 elog
233 elog "If you upgrade from a version of uim older than 1.4.0,"
234 elog "you should run revdep-rebuild."
235
236 use gtk && gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
237 if use emacs; then
238 elisp-site-regen
239 echo
240 elog "uim is autoloaded with Emacs with a minimal set of features:"
241 elog "There is no keybinding defined to call it directly, so please"
242 elog "create one yourself and choose an input method."
243 elog "Integration with LEIM is not done with this ebuild, please have"
244 elog "a look at the documentation how to achieve this."
245 fi
246 }
247
248 pkg_postrm() {
249 use gtk && gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
250 use emacs && elisp-site-regen
251 }