1 |
commit: c5b8f5e415ced45eafe9a204b1eb930fb032cdbd |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 28 13:50:13 2018 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 28 14:55:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5b8f5e4 |
7 |
|
8 |
app-i18n/uim: update to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
app-i18n/uim/files/50uim-gentoo.el | 2 - |
13 |
app-i18n/uim/metadata.xml | 15 ++- |
14 |
app-i18n/uim/uim-1.8.6-r1.ebuild | 229 ++++++++++++++++++------------------ |
15 |
app-i18n/uim/uim-1.8.6-r2.ebuild | 231 +++++++++++++++++++------------------ |
16 |
4 files changed, 238 insertions(+), 239 deletions(-) |
17 |
|
18 |
diff --git a/app-i18n/uim/files/50uim-gentoo.el b/app-i18n/uim/files/50uim-gentoo.el |
19 |
index 350f6216139..101505c4bd5 100644 |
20 |
--- a/app-i18n/uim/files/50uim-gentoo.el |
21 |
+++ b/app-i18n/uim/files/50uim-gentoo.el |
22 |
@@ -1,4 +1,2 @@ |
23 |
-;;; app-i18n/uim site-lisp configuration |
24 |
- |
25 |
(add-to-list 'load-path "@SITELISP@") |
26 |
(autoload 'uim-mode "uim" nil t) |
27 |
|
28 |
diff --git a/app-i18n/uim/metadata.xml b/app-i18n/uim/metadata.xml |
29 |
index 0e2214531e4..a509c6471ec 100644 |
30 |
--- a/app-i18n/uim/metadata.xml |
31 |
+++ b/app-i18n/uim/metadata.xml |
32 |
@@ -6,15 +6,14 @@ |
33 |
<name>Cjk</name> |
34 |
</maintainer> |
35 |
<longdescription lang="en"> |
36 |
- uim is a simple, secure and flexible input method library. At the moment |
37 |
- Anthy, SKK, Prime, T-code, TUT-code (these are Japanese input method), |
38 |
- Pinyin (Chinese input method), Hangul (Korean input method), IPA |
39 |
- (International Phonetic Alphabet) are implemented. You can extend the |
40 |
- library with Scheme thus easily, or with C if it becomes rather complicated. |
41 |
-</longdescription> |
42 |
+ uim is a simple, secure and flexible input method library. At the moment |
43 |
+ Anthy, SKK, Prime, T-code, TUT-code (these are Japanese input method), |
44 |
+ Pinyin (Chinese input method), Hangul (Korean input method), IPA |
45 |
+ (International Phonetic Alphabet) are implemented. You can extend the |
46 |
+ library with Scheme thus easily, or with C if it becomes rather complicated. |
47 |
+ </longdescription> |
48 |
<use> |
49 |
- <flag name="anthy">Enable support for <pkg>app-i18n/anthy</pkg> input method |
50 |
- </flag> |
51 |
+ <flag name="anthy">Enable support for <pkg>app-i18n/anthy</pkg></flag> |
52 |
<flag name="eb">Enable support for <pkg>dev-libs/eb</pkg></flag> |
53 |
<flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag> |
54 |
<flag name="skk">Enable support for <pkg>app-i18n/skk-jisyo</pkg></flag> |
55 |
|
56 |
diff --git a/app-i18n/uim/uim-1.8.6-r1.ebuild b/app-i18n/uim/uim-1.8.6-r1.ebuild |
57 |
index f72b7d26bba..a976c85b750 100644 |
58 |
--- a/app-i18n/uim/uim-1.8.6-r1.ebuild |
59 |
+++ b/app-i18n/uim/uim-1.8.6-r1.ebuild |
60 |
@@ -1,150 +1,159 @@ |
61 |
# Copyright 1999-2018 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
|
64 |
-EAPI="5" |
65 |
-inherit autotools eutils multilib elisp-common gnome2-utils |
66 |
+EAPI="6" |
67 |
|
68 |
-DESCRIPTION="Simple, secure and flexible input method library" |
69 |
-HOMEPAGE="https://github.com/uim/uim/" |
70 |
+inherit autotools elisp-common gnome2-utils |
71 |
+ |
72 |
+DESCRIPTION="A multilingual input method framework" |
73 |
+HOMEPAGE="https://github.com/uim/uim" |
74 |
SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2" |
75 |
|
76 |
LICENSE="BSD GPL-2 LGPL-2.1" |
77 |
SLOT="0" |
78 |
KEYWORDS="amd64 ~arm hppa ppc ppc64 x86" |
79 |
-IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 libedit libnotify m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW" |
80 |
- |
81 |
+IUSE="X +anthy canna curl eb emacs expat libffi gtk gtk3 l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode xft" |
82 |
RESTRICT="test" |
83 |
+REQUIRED_USE="gtk? ( X ) |
84 |
+ gtk3? ( X ) |
85 |
+ qt4? ( X ) |
86 |
+ xft? ( X )" |
87 |
|
88 |
-REQUIRED_USE="gtk? ( X ) qt4? ( X )" |
89 |
- |
90 |
-RDEPEND="X? ( |
91 |
- x11-libs/libX11 |
92 |
- x11-libs/libXft |
93 |
- x11-libs/libXt |
94 |
+CDEPEND="!dev-scheme/sigscheme |
95 |
+ X? ( |
96 |
x11-libs/libICE |
97 |
x11-libs/libSM |
98 |
+ x11-libs/libX11 |
99 |
x11-libs/libXext |
100 |
+ x11-libs/libXft |
101 |
x11-libs/libXrender |
102 |
+ x11-libs/libXt |
103 |
) |
104 |
anthy? ( |
105 |
unicode? ( >=app-i18n/anthy-8622 ) |
106 |
!unicode? ( app-i18n/anthy ) |
107 |
) |
108 |
canna? ( app-i18n/canna ) |
109 |
- curl? ( >=net-misc/curl-7.16.4 ) |
110 |
+ curl? ( net-misc/curl ) |
111 |
eb? ( dev-libs/eb ) |
112 |
emacs? ( virtual/emacs ) |
113 |
expat? ( dev-libs/expat ) |
114 |
libffi? ( virtual/libffi ) |
115 |
- gtk? ( >=x11-libs/gtk+-2.4:2 ) |
116 |
+ gtk? ( x11-libs/gtk+:2 ) |
117 |
gtk3? ( x11-libs/gtk+:3 ) |
118 |
libedit? ( dev-libs/libedit ) |
119 |
- libnotify? ( >=x11-libs/libnotify-0.4 ) |
120 |
- m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) |
121 |
+ libnotify? ( x11-libs/libnotify ) |
122 |
+ m17n-lib? ( dev-libs/m17n-lib ) |
123 |
ncurses? ( sys-libs/ncurses:0= ) |
124 |
nls? ( virtual/libintl ) |
125 |
qt4? ( dev-qt/qtgui:4[qt3support] ) |
126 |
skk? ( app-i18n/skk-jisyo ) |
127 |
sqlite? ( dev-db/sqlite:3 ) |
128 |
- ssl? ( dev-libs/openssl:0 ) |
129 |
- !dev-scheme/sigscheme" |
130 |
-# scim? ( >=app-i18n/scim-1.3.0 ) # broken |
131 |
-# wnn? ( app-i18n/wnn ) |
132 |
- |
133 |
-DEPEND="${RDEPEND} |
134 |
+ ssl? ( dev-libs/openssl:0 )" |
135 |
+DEPEND="${CDEPEND} |
136 |
dev-util/intltool |
137 |
+ sys-devel/gettext |
138 |
virtual/pkgconfig |
139 |
- >=sys-devel/gettext-0.15 |
140 |
X? ( x11-base/xorg-proto )" |
141 |
- |
142 |
-RDEPEND="${RDEPEND} |
143 |
+RDEPEND="${CDEPEND} |
144 |
X? ( |
145 |
media-fonts/font-sony-misc |
146 |
- l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) ) |
147 |
- l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) ) |
148 |
- l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) ) |
149 |
+ l10n_ja? ( |
150 |
+ || ( |
151 |
+ media-fonts/font-jis-misc |
152 |
+ media-fonts/intlfonts |
153 |
+ ) |
154 |
+ ) |
155 |
+ l10n_ko? ( |
156 |
+ || ( |
157 |
+ media-fonts/font-daewoo-misc |
158 |
+ media-fonts/intlfonts |
159 |
+ ) |
160 |
+ ) |
161 |
+ l10n_zh-CN? ( |
162 |
+ || ( |
163 |
+ media-fonts/font-isas-misc |
164 |
+ media-fonts/intlfonts |
165 |
+ ) |
166 |
+ ) |
167 |
l10n_zh-TW? ( media-fonts/intlfonts ) |
168 |
)" |
169 |
-# test? ( dev-scheme/gauche ) |
170 |
|
171 |
-SITEFILE=50${PN}-gentoo.el |
172 |
+PATCHES=( |
173 |
+ "${FILESDIR}"/${PN}-1.6.0-gentoo.patch |
174 |
+ "${FILESDIR}"/${PN}-1.5.4-zhTW.patch |
175 |
+) |
176 |
+DOCS=( AUTHORS NEWS README RELNOTE ) |
177 |
|
178 |
-pkg_setup() { |
179 |
- strip-linguas fr ja ko |
180 |
- if [[ -z "${LINGUAS}" ]]; then |
181 |
- # no linguas set, using the default one |
182 |
- LINGUAS=" " |
183 |
- fi |
184 |
-} |
185 |
+AT_NO_RECURSIVE="yes" |
186 |
+SITEFILE="50${PN}-gentoo.el" |
187 |
|
188 |
src_prepare() { |
189 |
- epatch \ |
190 |
- "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \ |
191 |
- "${FILESDIR}"/${PN}-1.5.4-zhTW.patch |
192 |
- |
193 |
- # bug 275420 |
194 |
- sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!" |
195 |
+ default |
196 |
+ sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac |
197 |
|
198 |
- AT_NO_RECURSIVE=1 eautoreconf |
199 |
+ eautoreconf |
200 |
} |
201 |
|
202 |
src_configure() { |
203 |
- local myconf |
204 |
+ local myconf=( |
205 |
+ $(use_with X x) |
206 |
+ $(use_with canna) |
207 |
+ $(use_with curl) |
208 |
+ $(use_with eb) |
209 |
+ $(use_enable emacs) |
210 |
+ $(use_with emacs lispdir "${SITELISP}") |
211 |
+ $(use_with expat) |
212 |
+ $(use_with libedit) |
213 |
+ $(use_with libffi ffi) |
214 |
+ $(use_with gtk gtk2) |
215 |
+ $(use_with gtk3) |
216 |
+ $(use_with m17n-lib m17nlib) |
217 |
+ $(use_enable ncurses fep) |
218 |
+ $(use_enable nls) |
219 |
+ $(use_with qt4 qt4) |
220 |
+ $(use_with qt4 qt4-immodule) |
221 |
+ $(use_enable qt4 qt4-qt3support) |
222 |
+ $(use_with skk) |
223 |
+ $(use_with sqlite sqlite3) |
224 |
+ $(use_enable ssl openssl) |
225 |
+ $(use_enable static-libs static) |
226 |
+ $(use_with xft) |
227 |
+ --disable-gnome-applet |
228 |
+ --disable-gnome3-applet |
229 |
+ --disable-kde-applet |
230 |
+ --disable-kde4-applet |
231 |
+ --without-mana |
232 |
+ --without-prime |
233 |
+ ) |
234 |
|
235 |
- if (use gtk || use gtk3) && (use anthy || use canna) ; then |
236 |
- myconf="${myconf} --enable-dict" |
237 |
+ if use anthy; then |
238 |
+ if use unicode; then |
239 |
+ myconf+=( --with-anthy-utf8 ) |
240 |
+ else |
241 |
+ myconf+=( --with-anthy ) |
242 |
+ fi |
243 |
else |
244 |
- myconf="${myconf} --disable-dict" |
245 |
+ myconf+=( --without-anthy ) |
246 |
fi |
247 |
|
248 |
- if use gtk || use gtk3 || use qt4 ; then |
249 |
- myconf="${myconf} --enable-pref" |
250 |
+ if (use gtk || use gtk3) && (use anthy || use canna); then |
251 |
+ myconf+=( --enable-dict ) |
252 |
else |
253 |
- myconf="${myconf} --disable-pref" |
254 |
+ myconf+=( --disable-dict ) |
255 |
fi |
256 |
|
257 |
- if use anthy ; then |
258 |
- if use unicode ; then |
259 |
- myconf="${myconf} --with-anthy-utf8" |
260 |
- else |
261 |
- myconf="${myconf} --with-anthy" |
262 |
- fi |
263 |
- else |
264 |
- myconf="${myconf} --without-anthy" |
265 |
+ if use libnotify; then |
266 |
+ myconf+=( --enable-notify=libnotify ) |
267 |
fi |
268 |
|
269 |
- if use libnotify ; then |
270 |
- myconf="${myconf} --enable-notify=libnotify" |
271 |
+ if use gtk || use gtk3 || use qt4; then |
272 |
+ myconf+=( --enable-pref ) |
273 |
+ else |
274 |
+ myconf+=( --disable-pref ) |
275 |
fi |
276 |
|
277 |
- econf $(use_with X x) \ |
278 |
- $(use_with canna) \ |
279 |
- $(use_with curl) \ |
280 |
- $(use_with eb) \ |
281 |
- $(use_enable emacs) \ |
282 |
- $(use_with emacs lispdir "${SITELISP}") \ |
283 |
- $(use_with expat) \ |
284 |
- $(use_with libffi ffi) \ |
285 |
- --disable-gnome-applet \ |
286 |
- $(use_with gtk gtk2) \ |
287 |
- $(use_with gtk3) \ |
288 |
- $(use_with libedit) \ |
289 |
- --disable-kde-applet \ |
290 |
- --disable-kde4-applet \ |
291 |
- $(use_with m17n-lib m17nlib) \ |
292 |
- $(use_enable ncurses fep) \ |
293 |
- $(use_enable nls) \ |
294 |
- --without-qt \ |
295 |
- --without-qt-immodule \ |
296 |
- $(use_with qt4 qt4) \ |
297 |
- $(use_with qt4 qt4-immodule) \ |
298 |
- $(use_enable qt4 qt4-qt3support) \ |
299 |
- $(use_with skk) \ |
300 |
- $(use_with sqlite sqlite3) \ |
301 |
- $(use_enable ssl openssl) \ |
302 |
- $(use_enable static-libs static) \ |
303 |
- $(use_with xft) \ |
304 |
- ${myconf} |
305 |
+ econf "${myconf[@]}" |
306 |
} |
307 |
|
308 |
src_compile() { |
309 |
@@ -152,36 +161,31 @@ src_compile() { |
310 |
|
311 |
if use emacs; then |
312 |
cd emacs |
313 |
- elisp-compile *.el || die "elisp-compile failed!" |
314 |
+ elisp-compile *.el || die |
315 |
fi |
316 |
} |
317 |
|
318 |
src_install() { |
319 |
- # parallel make install b0rked, bug #222677 |
320 |
- emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install |
321 |
+ # bug #222677 |
322 |
+ emake -j1 DESTDIR="${D}" install |
323 |
+ einstalldocs |
324 |
|
325 |
- dodoc AUTHORS ChangeLog* NEWS README RELNOTE |
326 |
- if use emacs; then |
327 |
- elisp-install uim-el emacs/*.elc || die "elisp-install failed!" |
328 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ |
329 |
- || die "elisp-site-file-install failed!" |
330 |
- fi |
331 |
- |
332 |
- find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} + |
333 |
- use static-libs || find "${ED}" -name '*.la' -exec rm {} + |
334 |
+ find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die |
335 |
+ use static-libs || find "${ED}" -name '*.la' -delete || die |
336 |
|
337 |
- sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!" |
338 |
insinto /etc/X11/xinit/xinput.d |
339 |
- doins "${T}/uim.conf" |
340 |
+ sed \ |
341 |
+ -e "s:@EPREFIX@:${EPREFIX}:g" \ |
342 |
+ "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf |
343 |
+ doins "${T}"/${PN}.conf |
344 |
|
345 |
- # collision with dev-scheme/sigscheme, bug #330975 |
346 |
- # find "${ED}" -name '*gcroots*' -delete || die |
347 |
- |
348 |
- #rmdir "${ED}"/usr/share/doc/sigscheme || die |
349 |
+ if use emacs; then |
350 |
+ elisp-install ${PN}-el emacs/*.el{,c} |
351 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el |
352 |
+ fi |
353 |
} |
354 |
|
355 |
pkg_postinst() { |
356 |
- elog |
357 |
elog "New input method switcher has been introduced. You need to set" |
358 |
elog |
359 |
elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" |
360 |
@@ -194,12 +198,7 @@ pkg_postinst() { |
361 |
elog |
362 |
elog "All input methods can be found by running uim-im-switcher-gtk, " |
363 |
elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4." |
364 |
- elog |
365 |
- elog "If you upgrade from a version of uim older than 1.4.0," |
366 |
- elog "you should run revdep-rebuild." |
367 |
|
368 |
- use gtk && gnome2_query_immodules_gtk2 |
369 |
- use gtk3 && gnome2_query_immodules_gtk3 |
370 |
if use emacs; then |
371 |
elisp-site-regen |
372 |
echo |
373 |
@@ -209,10 +208,12 @@ pkg_postinst() { |
374 |
elog "Integration with LEIM is not done with this ebuild, please have" |
375 |
elog "a look at the documentation how to achieve this." |
376 |
fi |
377 |
+ use gtk && gnome2_query_immodules_gtk2 |
378 |
+ use gtk3 && gnome2_query_immodules_gtk3 |
379 |
} |
380 |
|
381 |
pkg_postrm() { |
382 |
+ use emacs && elisp-site-regen |
383 |
use gtk && gnome2_query_immodules_gtk2 |
384 |
use gtk3 && gnome2_query_immodules_gtk3 |
385 |
- use emacs && elisp-site-regen |
386 |
} |
387 |
|
388 |
diff --git a/app-i18n/uim/uim-1.8.6-r2.ebuild b/app-i18n/uim/uim-1.8.6-r2.ebuild |
389 |
index cac96b004b7..35e99a234b8 100644 |
390 |
--- a/app-i18n/uim/uim-1.8.6-r2.ebuild |
391 |
+++ b/app-i18n/uim/uim-1.8.6-r2.ebuild |
392 |
@@ -1,46 +1,49 @@ |
393 |
# Copyright 1999-2018 Gentoo Foundation |
394 |
# Distributed under the terms of the GNU General Public License v2 |
395 |
|
396 |
-EAPI="5" |
397 |
-inherit autotools eutils multilib elisp-common gnome2-utils |
398 |
+EAPI="6" |
399 |
|
400 |
-DESCRIPTION="Simple, secure and flexible input method library" |
401 |
-HOMEPAGE="https://github.com/uim/uim/" |
402 |
+inherit autotools elisp-common gnome2-utils |
403 |
+ |
404 |
+DESCRIPTION="A multilingual input method framework" |
405 |
+HOMEPAGE="https://github.com/uim/uim" |
406 |
SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2" |
407 |
|
408 |
LICENSE="BSD GPL-2 LGPL-2.1" |
409 |
SLOT="0" |
410 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
411 |
-IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 libedit libnotify libressl m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW" |
412 |
- |
413 |
+IUSE="X +anthy canna curl eb emacs expat libffi gtk gtk3 l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify libressl m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode xft" |
414 |
RESTRICT="test" |
415 |
+REQUIRED_USE="gtk? ( X ) |
416 |
+ gtk3? ( X ) |
417 |
+ qt4? ( X ) |
418 |
+ xft? ( X )" |
419 |
|
420 |
-REQUIRED_USE="gtk? ( X ) qt4? ( X )" |
421 |
- |
422 |
-RDEPEND="X? ( |
423 |
- x11-libs/libX11 |
424 |
- x11-libs/libXft |
425 |
- x11-libs/libXt |
426 |
+CDEPEND="!dev-scheme/sigscheme |
427 |
+ X? ( |
428 |
x11-libs/libICE |
429 |
x11-libs/libSM |
430 |
+ x11-libs/libX11 |
431 |
x11-libs/libXext |
432 |
+ x11-libs/libXft |
433 |
x11-libs/libXrender |
434 |
+ x11-libs/libXt |
435 |
) |
436 |
anthy? ( |
437 |
unicode? ( >=app-i18n/anthy-8622 ) |
438 |
!unicode? ( app-i18n/anthy ) |
439 |
) |
440 |
canna? ( app-i18n/canna ) |
441 |
- curl? ( >=net-misc/curl-7.16.4 ) |
442 |
+ curl? ( net-misc/curl ) |
443 |
eb? ( dev-libs/eb ) |
444 |
emacs? ( virtual/emacs ) |
445 |
expat? ( dev-libs/expat ) |
446 |
libffi? ( virtual/libffi ) |
447 |
- gtk? ( >=x11-libs/gtk+-2.4:2 ) |
448 |
+ gtk? ( x11-libs/gtk+:2 ) |
449 |
gtk3? ( x11-libs/gtk+:3 ) |
450 |
libedit? ( dev-libs/libedit ) |
451 |
- libnotify? ( >=x11-libs/libnotify-0.4 ) |
452 |
- m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) |
453 |
+ libnotify? ( x11-libs/libnotify ) |
454 |
+ m17n-lib? ( dev-libs/m17n-lib ) |
455 |
ncurses? ( sys-libs/ncurses:0= ) |
456 |
nls? ( virtual/libintl ) |
457 |
qt4? ( dev-qt/qtgui:4[qt3support] ) |
458 |
@@ -49,106 +52,112 @@ RDEPEND="X? ( |
459 |
ssl? ( |
460 |
!libressl? ( dev-libs/openssl:0= ) |
461 |
libressl? ( dev-libs/libressl:0= ) |
462 |
- ) |
463 |
- !dev-scheme/sigscheme" |
464 |
-# scim? ( >=app-i18n/scim-1.3.0 ) # broken |
465 |
-# wnn? ( app-i18n/wnn ) |
466 |
- |
467 |
-DEPEND="${RDEPEND} |
468 |
+ )" |
469 |
+DEPEND="${CDEPEND} |
470 |
dev-util/intltool |
471 |
+ sys-devel/gettext |
472 |
virtual/pkgconfig |
473 |
- >=sys-devel/gettext-0.15 |
474 |
X? ( x11-base/xorg-proto )" |
475 |
- |
476 |
-RDEPEND="${RDEPEND} |
477 |
+RDEPEND="${CDEPEND} |
478 |
X? ( |
479 |
media-fonts/font-sony-misc |
480 |
- l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) ) |
481 |
- l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) ) |
482 |
- l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) ) |
483 |
+ l10n_ja? ( |
484 |
+ || ( |
485 |
+ media-fonts/font-jis-misc |
486 |
+ media-fonts/intlfonts |
487 |
+ ) |
488 |
+ ) |
489 |
+ l10n_ko? ( |
490 |
+ || ( |
491 |
+ media-fonts/font-daewoo-misc |
492 |
+ media-fonts/intlfonts |
493 |
+ ) |
494 |
+ ) |
495 |
+ l10n_zh-CN? ( |
496 |
+ || ( |
497 |
+ media-fonts/font-isas-misc |
498 |
+ media-fonts/intlfonts |
499 |
+ ) |
500 |
+ ) |
501 |
l10n_zh-TW? ( media-fonts/intlfonts ) |
502 |
)" |
503 |
-# test? ( dev-scheme/gauche ) |
504 |
|
505 |
-SITEFILE=50${PN}-gentoo.el |
506 |
+PATCHES=( |
507 |
+ "${FILESDIR}"/${PN}-1.6.0-gentoo.patch |
508 |
+ "${FILESDIR}"/${PN}-1.5.4-zhTW.patch |
509 |
+ "${FILESDIR}"/${P}-libressl.patch |
510 |
+) |
511 |
+DOCS=( AUTHORS NEWS README RELNOTE ) |
512 |
|
513 |
-pkg_setup() { |
514 |
- strip-linguas fr ja ko |
515 |
- if [[ -z "${LINGUAS}" ]]; then |
516 |
- # no linguas set, using the default one |
517 |
- LINGUAS=" " |
518 |
- fi |
519 |
-} |
520 |
+AT_NO_RECURSIVE="yes" |
521 |
+SITEFILE="50${PN}-gentoo.el" |
522 |
|
523 |
src_prepare() { |
524 |
- epatch \ |
525 |
- "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \ |
526 |
- "${FILESDIR}"/${PN}-1.5.4-zhTW.patch \ |
527 |
- "${FILESDIR}"/${P}-libressl.patch |
528 |
- |
529 |
- # bug 275420 |
530 |
- sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!" |
531 |
+ default |
532 |
+ sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac |
533 |
|
534 |
- AT_NO_RECURSIVE=1 eautoreconf |
535 |
+ eautoreconf |
536 |
} |
537 |
|
538 |
src_configure() { |
539 |
- local myconf |
540 |
+ local myconf=( |
541 |
+ $(use_with X x) |
542 |
+ $(use_with canna) |
543 |
+ $(use_with curl) |
544 |
+ $(use_with eb) |
545 |
+ $(use_enable emacs) |
546 |
+ $(use_with emacs lispdir "${SITELISP}") |
547 |
+ $(use_with expat) |
548 |
+ $(use_with libedit) |
549 |
+ $(use_with libffi ffi) |
550 |
+ $(use_with gtk gtk2) |
551 |
+ $(use_with gtk3) |
552 |
+ $(use_with m17n-lib m17nlib) |
553 |
+ $(use_enable ncurses fep) |
554 |
+ $(use_enable nls) |
555 |
+ $(use_with qt4 qt4) |
556 |
+ $(use_with qt4 qt4-immodule) |
557 |
+ $(use_enable qt4 qt4-qt3support) |
558 |
+ $(use_with skk) |
559 |
+ $(use_with sqlite sqlite3) |
560 |
+ $(use_enable ssl openssl) |
561 |
+ $(use_enable static-libs static) |
562 |
+ $(use_with xft) |
563 |
+ --disable-gnome-applet |
564 |
+ --disable-gnome3-applet |
565 |
+ --disable-kde-applet |
566 |
+ --disable-kde4-applet |
567 |
+ --without-mana |
568 |
+ --without-prime |
569 |
+ ) |
570 |
|
571 |
- if (use gtk || use gtk3) && (use anthy || use canna) ; then |
572 |
- myconf="${myconf} --enable-dict" |
573 |
+ if use anthy; then |
574 |
+ if use unicode; then |
575 |
+ myconf+=( --with-anthy-utf8 ) |
576 |
+ else |
577 |
+ myconf+=( --with-anthy ) |
578 |
+ fi |
579 |
else |
580 |
- myconf="${myconf} --disable-dict" |
581 |
+ myconf+=( --without-anthy ) |
582 |
fi |
583 |
|
584 |
- if use gtk || use gtk3 || use qt4 ; then |
585 |
- myconf="${myconf} --enable-pref" |
586 |
+ if (use gtk || use gtk3) && (use anthy || use canna); then |
587 |
+ myconf+=( --enable-dict ) |
588 |
else |
589 |
- myconf="${myconf} --disable-pref" |
590 |
+ myconf+=( --disable-dict ) |
591 |
fi |
592 |
|
593 |
- if use anthy ; then |
594 |
- if use unicode ; then |
595 |
- myconf="${myconf} --with-anthy-utf8" |
596 |
- else |
597 |
- myconf="${myconf} --with-anthy" |
598 |
- fi |
599 |
- else |
600 |
- myconf="${myconf} --without-anthy" |
601 |
+ if use libnotify; then |
602 |
+ myconf+=( --enable-notify=libnotify ) |
603 |
fi |
604 |
|
605 |
- if use libnotify ; then |
606 |
- myconf="${myconf} --enable-notify=libnotify" |
607 |
+ if use gtk || use gtk3 || use qt4; then |
608 |
+ myconf+=( --enable-pref ) |
609 |
+ else |
610 |
+ myconf+=( --disable-pref ) |
611 |
fi |
612 |
|
613 |
- econf $(use_with X x) \ |
614 |
- $(use_with canna) \ |
615 |
- $(use_with curl) \ |
616 |
- $(use_with eb) \ |
617 |
- $(use_enable emacs) \ |
618 |
- $(use_with emacs lispdir "${SITELISP}") \ |
619 |
- $(use_with expat) \ |
620 |
- $(use_with libffi ffi) \ |
621 |
- --disable-gnome-applet \ |
622 |
- $(use_with gtk gtk2) \ |
623 |
- $(use_with gtk3) \ |
624 |
- $(use_with libedit) \ |
625 |
- --disable-kde-applet \ |
626 |
- --disable-kde4-applet \ |
627 |
- $(use_with m17n-lib m17nlib) \ |
628 |
- $(use_enable ncurses fep) \ |
629 |
- $(use_enable nls) \ |
630 |
- --without-qt \ |
631 |
- --without-qt-immodule \ |
632 |
- $(use_with qt4 qt4) \ |
633 |
- $(use_with qt4 qt4-immodule) \ |
634 |
- $(use_enable qt4 qt4-qt3support) \ |
635 |
- $(use_with skk) \ |
636 |
- $(use_with sqlite sqlite3) \ |
637 |
- $(use_enable ssl openssl) \ |
638 |
- $(use_enable static-libs static) \ |
639 |
- $(use_with xft) \ |
640 |
- ${myconf} |
641 |
+ econf "${myconf[@]}" |
642 |
} |
643 |
|
644 |
src_compile() { |
645 |
@@ -156,36 +165,31 @@ src_compile() { |
646 |
|
647 |
if use emacs; then |
648 |
cd emacs |
649 |
- elisp-compile *.el || die "elisp-compile failed!" |
650 |
+ elisp-compile *.el || die |
651 |
fi |
652 |
} |
653 |
|
654 |
src_install() { |
655 |
- # parallel make install b0rked, bug #222677 |
656 |
- emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install |
657 |
+ # bug #222677 |
658 |
+ emake -j1 DESTDIR="${D}" install |
659 |
+ einstalldocs |
660 |
|
661 |
- dodoc AUTHORS ChangeLog* NEWS README RELNOTE |
662 |
- if use emacs; then |
663 |
- elisp-install uim-el emacs/*.elc || die "elisp-install failed!" |
664 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ |
665 |
- || die "elisp-site-file-install failed!" |
666 |
- fi |
667 |
- |
668 |
- find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} + |
669 |
- use static-libs || find "${ED}" -name '*.la' -exec rm {} + |
670 |
+ find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die |
671 |
+ use static-libs || find "${ED}" -name '*.la' -delete || die |
672 |
|
673 |
- sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!" |
674 |
insinto /etc/X11/xinit/xinput.d |
675 |
- doins "${T}/uim.conf" |
676 |
+ sed \ |
677 |
+ -e "s:@EPREFIX@:${EPREFIX}:g" \ |
678 |
+ "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf |
679 |
+ doins "${T}"/${PN}.conf |
680 |
|
681 |
- # collision with dev-scheme/sigscheme, bug #330975 |
682 |
- # find "${ED}" -name '*gcroots*' -delete || die |
683 |
- |
684 |
- #rmdir "${ED}"/usr/share/doc/sigscheme || die |
685 |
+ if use emacs; then |
686 |
+ elisp-install ${PN}-el emacs/*.el{,c} |
687 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el |
688 |
+ fi |
689 |
} |
690 |
|
691 |
pkg_postinst() { |
692 |
- elog |
693 |
elog "New input method switcher has been introduced. You need to set" |
694 |
elog |
695 |
elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" |
696 |
@@ -198,12 +202,7 @@ pkg_postinst() { |
697 |
elog |
698 |
elog "All input methods can be found by running uim-im-switcher-gtk, " |
699 |
elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4." |
700 |
- elog |
701 |
- elog "If you upgrade from a version of uim older than 1.4.0," |
702 |
- elog "you should run revdep-rebuild." |
703 |
|
704 |
- use gtk && gnome2_query_immodules_gtk2 |
705 |
- use gtk3 && gnome2_query_immodules_gtk3 |
706 |
if use emacs; then |
707 |
elisp-site-regen |
708 |
echo |
709 |
@@ -213,10 +212,12 @@ pkg_postinst() { |
710 |
elog "Integration with LEIM is not done with this ebuild, please have" |
711 |
elog "a look at the documentation how to achieve this." |
712 |
fi |
713 |
+ use gtk && gnome2_query_immodules_gtk2 |
714 |
+ use gtk3 && gnome2_query_immodules_gtk3 |
715 |
} |
716 |
|
717 |
pkg_postrm() { |
718 |
+ use emacs && elisp-site-regen |
719 |
use gtk && gnome2_query_immodules_gtk2 |
720 |
use gtk3 && gnome2_query_immodules_gtk3 |
721 |
- use emacs && elisp-site-regen |
722 |
} |