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.2.ebuild
Date: Mon, 04 Aug 2008 15:36:26
Message-Id: E1KQ26h-0003wA-90@stork.gentoo.org
1 matsuu 08/08/04 15:36:23
2
3 Modified: ChangeLog
4 Added: uim-1.5.2.ebuild
5 Log:
6 Version bumped.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.183 app-i18n/uim/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/ChangeLog?rev=1.183&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/ChangeLog?rev=1.183&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/ChangeLog?r1=1.182&r2=1.183
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v
19 retrieving revision 1.182
20 retrieving revision 1.183
21 diff -u -r1.182 -r1.183
22 --- ChangeLog 31 Jul 2008 10:31:40 -0000 1.182
23 +++ ChangeLog 4 Aug 2008 15:36:22 -0000 1.183
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-i18n/uim
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.182 2008/07/31 10:31:40 ulm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.183 2008/08/04 15:36:22 matsuu Exp $
29 +
30 +*uim-1.5.2 (04 Aug 2008)
31 +
32 + 04 Aug 2008; MATSUU Takuto <matsuu@g.o> +uim-1.5.2.ebuild:
33 + Version bumped.
34
35 31 Jul 2008; Ulrich Mueller <ulm@g.o> metadata.xml:
36 Add USE flag description to metadata wrt GLEP 56.
37
38
39
40 1.1 app-i18n/uim/uim-1.5.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/uim-1.5.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/uim/uim-1.5.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: uim-1.5.2.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/uim-1.5.2.ebuild,v 1.1 2008/08/04 15:36:22 matsuu Exp $
50
51 EAPI=1
52 inherit autotools eutils qt3 multilib elisp-common flag-o-matic
53
54 MY_P="${P/_/-}"
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/${MY_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 m17n-lib ncurses nls prime qt3
63 qt4 truetype unicode X linguas_zh_CN linguas_ja linguas_ko"
64
65 RDEPEND="X? ( 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 anthy? ( || ( app-i18n/anthy app-i18n/anthy-ss ) )
73 canna? ( app-i18n/canna )
74 eb? ( dev-libs/eb )
75 emacs? ( virtual/emacs )
76 gnome? ( >=gnome-base/gnome-panel-2.14 )
77 gtk? ( >=x11-libs/gtk+-2.4 )
78 kde? ( kde-base/kdelibs:3.5 )
79 libedit? ( dev-libs/libedit )
80 m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 )
81 ncurses? ( sys-libs/ncurses )
82 nls? ( virtual/libintl )
83 prime? ( app-i18n/prime )
84 qt3? ( x11-libs/qt:3 )
85 qt4? ( || ( x11-libs/qt-core:4 =x11-libs/qt-4.3*:4 ) )
86 !app-i18n/uim-svn
87 !<app-i18n/prime-0.9.4"
88
89 DEPEND="${RDEPEND}
90 X? ( x11-proto/xextproto
91 x11-proto/xproto )
92 nls? ( sys-devel/gettext )"
93
94 RDEPEND="${RDEPEND}
95 X? (
96 media-fonts/font-sony-misc
97 linguas_zh_CN? ( media-fonts/font-isas-misc )
98 linguas_ja? ( media-fonts/font-jis-misc )
99 linguas_ko? ( media-fonts/font-daewoo-misc )
100 )"
101 # linguas_zh_TW? ( media-fonts/taipeifonts )
102
103 S="${WORKDIR}/${MY_P}"
104
105 SITEFILE=50${PN}-gentoo.el
106
107 pkg_setup() {
108 if use qt3 && ! built_with_use =x11-libs/qt-3* immqt-bc && ! built_with_use =x11-libs/qt-3* immqt; then
109 eerror "To support qt3 in this package is required to have"
110 eerror "=x11-libs/qt-3* compiled with immqt-bc(recommended) or immqt USE flag."
111 die "Please reemerge =x11-libs/qt-3* with USE=\"immqt-bc\" or USE=\"immqt\"."
112
113 fi
114 # An arch specific config directory is used on multilib systems
115 has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
116 GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
117 }
118
119 src_unpack() {
120 unpack ${A}
121 cd "${S}"
122 elibtoolize
123 }
124
125 src_compile() {
126 local myconf
127
128 if use gtk && (use anthy || use canna); then
129 myconf="${myconf} --enable-dict"
130 else
131 myconf="${myconf} --disable-dict"
132 fi
133
134 if use qt3 ; then
135 append-flags -DQT_THREAD_SUPPORT
136 fi
137
138 if use gtk || use qt3 || use qt4 ; then
139 myconf="${myconf} --enable-pref"
140 else
141 myconf="${myconf} --disable-pref"
142 fi
143
144 if use anthy ; then
145 if use unicode ; then
146 myconf="${myconf} --with-anthy-utf8"
147 else
148 myconf="${myconf} --with-anthy"
149 fi
150 else
151 myconf="${myconf} --without-anthy"
152 fi
153
154 if use qt3 || use qt4 ; then
155 myconf="${myconf} --with-qt"
156 else
157 myconf="${myconf} --without-qt"
158 fi
159
160 econf $(use_with X x) \
161 $(use_with canna) \
162 $(use_with eb) \
163 $(use_enable emacs) \
164 $(use_with emacs lispdir "${SITELISP}") \
165 $(use_enable gnome gnome-applet) \
166 $(use_with gtk gtk2) \
167 $(use_with libedit) \
168 $(use_enable kde kde-applet) \
169 $(use_with m17n-lib m17nlib) \
170 $(use_enable ncurses fep) \
171 $(use_enable nls) \
172 $(use_with qt3 qt-immodule) \
173 $(use_with qt4 qt-immodule) \
174 $(use_with truetype xft) \
175 ${myconf} || die "econf failed"
176 emake -j1 || die "emake failed"
177
178 if use emacs; then
179 cd emacs
180 elisp-comp *.el || die "elisp-comp failed"
181 fi
182 }
183
184 src_install() {
185 # parallel make install borks, bug #222677
186 emake -j1 DESTDIR="${D}" install || die "make install failed"
187
188 dodoc AUTHORS ChangeLog* NEWS README RELNOTE
189 if use emacs; then
190 elisp-install uim-el emacs/*.elc || die "elisp-install failed"
191 elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \
192 || die "elisp-site-file-install failed"
193 fi
194 }
195
196 pkg_postinst() {
197 elog
198 elog "To use uim-skk you should emerge app-i18n/skk-jisyo."
199 elog
200
201 elog
202 elog "New input method switcher has been introduced. You need to set"
203 elog
204 elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
205 elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
206 elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
207 elog
208 elog "If you would like to use uim-anthy as default input method, put"
209 elog "(define default-im-name 'anthy)"
210 elog "to your ~/.uim."
211 elog
212 elog "All input methods can be found by running uim-im-switcher-gtk"
213 elog "or uim-im-switcher-qt."
214 elog
215 elog "If you upgrade from a version of uim older than 1.4.0,"
216 elog "you should run revdep-rebuild."
217
218 use gtk && gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
219 if use emacs; then
220 elisp-site-regen
221 echo
222 elog "uim is autoloaded with Emacs with a minimal set of features:"
223 elog "There is no keybinding defined to call it directly, so please"
224 elog "create one yourself and choose an input method."
225 elog "Integration with LEIM is not done with this ebuild, please have"
226 elog "a look at the documentation how to achieve this."
227 fi
228 }
229
230 pkg_postrm() {
231 use gtk && gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
232 use emacs && elisp-site-regen
233 }