Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/uim/, app-i18n/uim/files/
Date: Sat, 23 May 2020 08:27:10
Message-Id: 1590222417.5a0fe893c03264f1b77b02bd6c5113d1dba9e525.asturm@gentoo
1 commit: 5a0fe893c03264f1b77b02bd6c5113d1dba9e525
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 22 21:20:23 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 08:26:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a0fe893
7
8 app-i18n/uim: Drop 1.8.6-r1 and 1.8.6-r2
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-i18n/uim/Manifest | 1 -
14 app-i18n/uim/files/uim-1.8.6-gentoo.patch | 28 ----
15 app-i18n/uim/files/uim-1.8.6-libressl.patch | 79 -----------
16 app-i18n/uim/files/uim-1.8.6-qt.patch | 16 ---
17 app-i18n/uim/files/uim-1.8.6-tinfo.patch | 65 ---------
18 app-i18n/uim/uim-1.8.6-r1.ebuild | 209 ---------------------------
19 app-i18n/uim/uim-1.8.6-r2.ebuild | 213 ----------------------------
20 7 files changed, 611 deletions(-)
21
22 diff --git a/app-i18n/uim/Manifest b/app-i18n/uim/Manifest
23 index 0e626d08dac..593def9c836 100644
24 --- a/app-i18n/uim/Manifest
25 +++ b/app-i18n/uim/Manifest
26 @@ -1,2 +1 @@
27 -DIST uim-1.8.6.tar.bz2 6500739 BLAKE2B 78623c015cafafa1fbaf32542535de1f0207f8452a422d929a15f4421e4c9926192d0d3b761a7865a38affdf616dc5477e083c0fd8655261ff80ca817fd37029 SHA512 26a95d3b51ef7a99108234b9af30ee7b74141cb3af13d092d4cdbf0749f630934cfd67f74b09dacc3adcdce4a390104489d68a4e2419ec07418645a9b4e5715b
28 DIST uim-1.8.8.tar.bz2 6228743 BLAKE2B 8fc44b61239f766ba3d9ebf3201c11471b3a844e082237f5ec97dd0fa6fbb04a0a588df5c0479a0aa4bcb4d9c4edcc93c36ec68618701c8aa88fa30732fdce28 SHA512 2257ae48f4f2b79039a5f6be0fc740e218d5609e004dad9a5a1aa5d4066587ee59d0be06bc23c7d567a48901466227fedc4778b480f7184d84b0b3b4dddac9a3
29
30 diff --git a/app-i18n/uim/files/uim-1.8.6-gentoo.patch b/app-i18n/uim/files/uim-1.8.6-gentoo.patch
31 deleted file mode 100644
32 index 0feee5a7099..00000000000
33 --- a/app-i18n/uim/files/uim-1.8.6-gentoo.patch
34 +++ /dev/null
35 @@ -1,28 +0,0 @@
36 ---- a/configure.ac
37 -+++ b/configure.ac
38 -@@ -36,6 +36,7 @@
39 - AC_PATH_PROGS(SHA1, sha1 sha1sum)
40 - AC_PATH_PROGS(SED, sed gsed)
41 - AX_PATH_QMAKE4
42 -+PKG_PROG_PKG_CONFIG
43 -
44 - AM_MAINTAINER_MODE
45 -
46 -@@ -1792,7 +1793,7 @@
47 - fi
48 - AX_LANG_WNOERROR # end AC_LANG_WERROR
49 -
50 -- QT_CONFIG_OPTS="debug"
51 -+ QT_CONFIG_OPTS="debug nostrip"
52 - else
53 - CFLAGS="$CFLAGS -DNDEBUG"
54 - CXXFLAGS="$CXXFLAGS -DNDEBUG"
55 -@@ -1810,7 +1811,7 @@
56 - AX_CFLAGS_GCC_OPTION([-Wno-unused-variable], [SCIM_CFLAGS])
57 - AX_LANG_WNOERROR # end AC_LANG_WERROR
58 -
59 -- QT_CONFIG_OPTS="release"
60 -+ QT_CONFIG_OPTS="release nostrip"
61 - fi
62 -
63 - AC_ARG_ENABLE(warnings-into-error,
64
65 diff --git a/app-i18n/uim/files/uim-1.8.6-libressl.patch b/app-i18n/uim/files/uim-1.8.6-libressl.patch
66 deleted file mode 100644
67 index b14de58433a..00000000000
68 --- a/app-i18n/uim/files/uim-1.8.6-libressl.patch
69 +++ /dev/null
70 @@ -1,79 +0,0 @@
71 -From 7a281b1131399f04627986e6f9a54499b08e239d Mon Sep 17 00:00:00 2001
72 -From: Felix Janda <felix.janda@××××××.de>
73 -Date: Thu, 21 Apr 2016 23:12:10 +0200
74 -Subject: [PATCH] Make openssl SSLv2 and SSLv3 support optional
75 -
76 -Fixes compilation with libressl
77 ----
78 - uim/openssl.c | 30 ++++++++++++++++++++++++++++++
79 - 1 file changed, 30 insertions(+)
80 -
81 -diff --git a/uim/openssl.c b/uim/openssl.c
82 -index ba1b238..35ca1ca 100644
83 ---- a/uim/openssl.c
84 -+++ b/uim/openssl.c
85 -@@ -208,34 +208,64 @@ c_SSL_write(uim_lisp s_, uim_lisp buf_)
86 - static uim_lisp
87 - c_SSLv2_method(void)
88 - {
89 -+#ifndef OPENSSL_NO_SSL2
90 - return MAKE_PTR(SSLv2_method());
91 -+#else
92 -+ uim_notify_fatal(N_("uim-openssl: SSLv2_method() is not supported on this system"));
93 -+ return uim_scm_f();
94 -+#endif
95 - }
96 - static uim_lisp
97 - c_SSLv2_server_method(void)
98 - {
99 -+#ifndef OPENSSL_NO_SSL2
100 - return MAKE_PTR(SSLv2_server_method());
101 -+#else
102 -+ uim_notify_fatal(N_("uim-openssl: SSLv2_server_method() is not supported on this system"));
103 -+ return uim_scm_f();
104 -+#endif
105 - }
106 - static uim_lisp
107 - c_SSLv2_client_method(void)
108 - {
109 -+#ifndef OPENSSL_NO_SSL2
110 - return MAKE_PTR(SSLv2_client_method());
111 -+#else
112 -+ uim_notify_fatal(N_("uim-openssl: SSLv2_client_method() is not supported on this system"));
113 -+ return uim_scm_f();
114 -+#endif
115 - }
116 -
117 - /* SSLv3 */
118 - static uim_lisp
119 - c_SSLv3_method(void)
120 - {
121 -+#ifndef OPENSSL_NO_SSL3
122 - return MAKE_PTR(SSLv3_method());
123 -+#else
124 -+ uim_notify_fatal(N_("uim-openssl: SSLv3_method() is not supported on this system"));
125 -+ return uim_scm_f();
126 -+#endif
127 - }
128 - static uim_lisp
129 - c_SSLv3_server_method(void)
130 - {
131 -+#ifndef OPENSSL_NO_SSL3
132 - return MAKE_PTR(SSLv3_server_method());
133 -+#else
134 -+ uim_notify_fatal(N_("uim-openssl: SSLv3_server_method() is not supported on this system"));
135 -+ return uim_scm_f();
136 -+#endif
137 - }
138 - static uim_lisp
139 - c_SSLv3_client_method(void)
140 - {
141 -+#ifndef OPENSSL_NO_SSL3
142 - return MAKE_PTR(SSLv3_client_method());
143 -+#else
144 -+ uim_notify_fatal(N_("uim-openssl: SSLv3_client_method() is not supported on this system"));
145 -+ return uim_scm_f();
146 -+#endif
147 - }
148 -
149 - /* SSLv3 but can rollback to v2 */
150
151 diff --git a/app-i18n/uim/files/uim-1.8.6-qt.patch b/app-i18n/uim/files/uim-1.8.6-qt.patch
152 deleted file mode 100644
153 index 6c0cb7eee66..00000000000
154 --- a/app-i18n/uim/files/uim-1.8.6-qt.patch
155 +++ /dev/null
156 @@ -1,16 +0,0 @@
157 ---- a/m4/ax_path_qmake4.m4
158 -+++ b/m4/ax_path_qmake4.m4
159 -@@ -23,10 +23,10 @@
160 - # the copyright notice and this notice are preserved.
161 -
162 - AC_DEFUN([AX_PATH_QMAKE4], [
163 -- ax_guessed_qt4_dirs="/usr/lib/qt4/bin:/usr/local/lib/qt4/bin:/usr/qt4/bin:/usr/local/qt4/bin:${QT4DIR}/bin:${QTDIR}/bin"
164 -+ ax_guessed_qt4_dirs="${QT4DIR}/bin:${QTDIR}/bin"
165 - AC_PROG_EGREP
166 -- AC_PATH_PROGS(_QMAKE4, [qmake-qt4 qmake4], [], ["$PATH:$ax_guessed_qt4_dirs"])
167 -- AC_PATH_PROGS(_QMAKE, [qmake], [], ["$PATH:$ax_guessed_qt4_dirs"])
168 -+ AC_PATH_PROGS(_QMAKE4, [qmake-qt4 qmake4], [], ["$ax_guessed_qt4_dirs:$PATH"])
169 -+ AC_PATH_PROGS(_QMAKE, [qmake], [], ["$ax_guessed_qt4_dirs:$PATH"])
170 -
171 - AC_CACHE_CHECK([for Qt4 version of qmake], ax_cv_path_QMAKE4, [
172 - ax_cv_path_QMAKE4=no
173
174 diff --git a/app-i18n/uim/files/uim-1.8.6-tinfo.patch b/app-i18n/uim/files/uim-1.8.6-tinfo.patch
175 deleted file mode 100644
176 index 51105c909f5..00000000000
177 --- a/app-i18n/uim/files/uim-1.8.6-tinfo.patch
178 +++ /dev/null
179 @@ -1,65 +0,0 @@
180 ---- a/configure.ac
181 -+++ b/configure.ac
182 -@@ -1058,27 +1058,25 @@
183 - ;;
184 - yes|*)
185 - use_uim_fep="yes"
186 -- AC_CHECK_LIB(curses, setupterm, FEP_LIBADD="-lcurses $FEP_LIBADD",
187 -- [AC_CHECK_LIB(ncurses, setupterm, FEP_LIBADD="-lncurses $FEP_LIBADD",
188 -- AC_MSG_WARN([fep needs setupterm in libcurses or libncurses. disabled...]);use_uim_fep="no")])
189 -- AC_CHECK_FUNCS(forkpty)
190 -- if test $ac_cv_func_forkpty = no; then
191 -- AC_CHECK_LIB(util, forkpty, [AC_DEFINE(HAVE_FORKPTY) FEP_LIBADD="-lutil $FEP_LIBADD"])
192 -- fi
193 -- AC_SUBST(FEP_LIBADD)
194 - ;;
195 - esac
196 - ],
197 -- [ use_uim_fep="yes"
198 -- AC_CHECK_LIB(curses, setupterm, FEP_LIBADD="-lcurses $FEP_LIBADD",
199 -- [AC_CHECK_LIB(ncurses, setupterm, FEP_LIBADD="-lncurses $FEP_LIBADD",
200 -- AC_MSG_WARN([fep needs setupterm in libcurses or libncurses. disabled...]);use_uim_fep="no")])
201 -- AC_CHECK_FUNCS(forkpty)
202 -- if test $ac_cv_func_forkpty = no; then
203 -- AC_CHECK_LIB(util, forkpty, [AC_DEFINE(HAVE_FORKPTY) FEP_LIBADD="-lutil $FEP_LIBADD"])
204 -- fi
205 -- AC_SUBST(FEP_LIBADD)
206 -- ])
207 -+ [use_uim_fep="yes"])
208 -+
209 -+if test "x$use_uim_fep" != "xno"; then
210 -+ PKG_CHECK_MODULES(CURSES, ncurses,
211 -+ [FEP_LIBADD="$CURSES_LIBS $FEP_LIBADD"],
212 -+ [
213 -+ AC_CHECK_LIB(curses, setupterm, FEP_LIBADD="-lcurses $FEP_LIBADD",
214 -+ [AC_CHECK_LIB(ncurses, setupterm, FEP_LIBADD="-lncurses $FEP_LIBADD",
215 -+ AC_MSG_WARN([fep needs setupterm in libcurses or libncurses. disabled...]);use_uim_fep="no")])
216 -+ ])
217 -+ AC_CHECK_FUNCS(forkpty)
218 -+ if test $ac_cv_func_forkpty = no; then
219 -+ AC_CHECK_LIB(util, forkpty, [AC_DEFINE(HAVE_FORKPTY) FEP_LIBADD="-lutil $FEP_LIBADD"])
220 -+ fi
221 -+ AC_SUBST(FEP_LIBADD)
222 -+fi
223 -
224 - AC_ARG_ENABLE(emacs,
225 - AC_HELP_STRING([--disable-emacs],
226 -@@ -1210,10 +1208,14 @@
227 - saved_LDFLAGS=$LDFLAGS
228 - CPPFLAGS="${CPPFLAGS} -I$libedit_path/include"
229 - LDFLAGS="${LDFLAGS} -L$libedit_path/lib"
230 -- AC_CHECK_LIB(curses, tgetent, LIBEDIT_LIBS="-lcurses",
231 -- [AC_CHECK_LIB(ncurses, tgetent, LIBEDIT_LIBS="-lncurses",
232 -- AC_MSG_WARN("libedit needs libcurses or libncurses. disabled...")
233 -- use_libedit="no")])
234 -+ PKG_CHECK_MODULES(CURSES, ncurses,
235 -+ [LIBEDIT_LIBS="$CURSES_LIBS"],
236 -+ [
237 -+ AC_CHECK_LIB(curses, tgetent, LIBEDIT_LIBS="-lcurses",
238 -+ [AC_CHECK_LIB(ncurses, tgetent, LIBEDIT_LIBS="-lncurses",
239 -+ AC_MSG_WARN("libedit needs libcurses or libncurses. disabled...")
240 -+ use_libedit="no")])
241 -+ ])
242 - if test "x$use_libedit" != "xno"; then
243 - AC_CHECK_LIB(edit, el_init,
244 - [LIBEDIT_LIBS="-ledit $LIBEDIT_LIBS -L$libedit_path/lib"
245
246 diff --git a/app-i18n/uim/uim-1.8.6-r1.ebuild b/app-i18n/uim/uim-1.8.6-r1.ebuild
247 deleted file mode 100644
248 index 5b032d6a9ea..00000000000
249 --- a/app-i18n/uim/uim-1.8.6-r1.ebuild
250 +++ /dev/null
251 @@ -1,209 +0,0 @@
252 -# Copyright 1999-2020 Gentoo Authors
253 -# Distributed under the terms of the GNU General Public License v2
254 -
255 -EAPI="6"
256 -
257 -inherit autotools elisp-common gnome2-utils qmake-utils
258 -
259 -DESCRIPTION="A multilingual input method framework"
260 -HOMEPAGE="https://github.com/uim/uim"
261 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2"
262 -
263 -LICENSE="BSD GPL-2 LGPL-2.1"
264 -SLOT="0"
265 -KEYWORDS="amd64 ~arm ~hppa ppc ppc64 x86"
266 -IUSE="X +anthy canna curl eb emacs expat libffi gtk gtk2 l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify m17n-lib ncurses nls skk sqlite ssl static-libs xft"
267 -RESTRICT="test"
268 -REQUIRED_USE="gtk? ( X )
269 - gtk2? ( X )
270 - xft? ( X )"
271 -
272 -CDEPEND="!dev-scheme/sigscheme
273 - X? (
274 - x11-libs/libICE
275 - x11-libs/libSM
276 - x11-libs/libX11
277 - x11-libs/libXext
278 - x11-libs/libXft
279 - x11-libs/libXrender
280 - x11-libs/libXt
281 - )
282 - anthy? ( app-i18n/anthy )
283 - canna? ( app-i18n/canna )
284 - curl? ( net-misc/curl )
285 - eb? ( dev-libs/eb )
286 - emacs? ( >=app-editors/emacs-23.1:* )
287 - expat? ( dev-libs/expat )
288 - libffi? ( virtual/libffi )
289 - gtk? ( x11-libs/gtk+:3 )
290 - gtk2? ( x11-libs/gtk+:2 )
291 - libedit? ( dev-libs/libedit )
292 - libnotify? ( x11-libs/libnotify )
293 - m17n-lib? ( dev-libs/m17n-lib )
294 - ncurses? ( sys-libs/ncurses:0= )
295 - nls? ( virtual/libintl )
296 - skk? ( app-i18n/skk-jisyo )
297 - sqlite? ( dev-db/sqlite:3 )
298 - ssl? ( dev-libs/openssl:0 )"
299 -DEPEND="${CDEPEND}
300 - dev-util/intltool
301 - sys-devel/gettext
302 - virtual/pkgconfig
303 - X? ( x11-base/xorg-proto )"
304 -RDEPEND="${CDEPEND}
305 - X? (
306 - media-fonts/font-sony-misc
307 - l10n_ja? (
308 - || (
309 - media-fonts/font-jis-misc
310 - media-fonts/intlfonts
311 - )
312 - )
313 - l10n_ko? (
314 - || (
315 - media-fonts/font-daewoo-misc
316 - media-fonts/intlfonts
317 - )
318 - )
319 - l10n_zh-CN? (
320 - || (
321 - media-fonts/font-isas-misc
322 - media-fonts/intlfonts
323 - )
324 - )
325 - l10n_zh-TW? ( media-fonts/intlfonts )
326 - )"
327 -
328 -PATCHES=(
329 - "${FILESDIR}"/${P}-gentoo.patch
330 - "${FILESDIR}"/${P}-qt.patch
331 - "${FILESDIR}"/${P}-tinfo.patch
332 - "${FILESDIR}"/${PN}-zh-TW.patch
333 -)
334 -DOCS=( AUTHORS NEWS README RELNOTE )
335 -
336 -AT_NO_RECURSIVE="yes"
337 -SITEFILE="50${PN}-gentoo.el"
338 -
339 -src_prepare() {
340 - default
341 - sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac
342 -
343 - eautoreconf
344 -}
345 -
346 -src_configure() {
347 - local myconf=(
348 - $(use_with X x)
349 - $(use_with anthy anthy-utf8)
350 - $(use_with canna)
351 - $(use_with curl)
352 - $(use_with eb)
353 - $(use_enable emacs)
354 - $(use_with emacs lispdir "${SITELISP}")
355 - $(use_with expat)
356 - $(use_with libedit)
357 - $(use_with libffi ffi)
358 - $(use_with gtk gtk3)
359 - $(use_with gtk2)
360 - $(use_with m17n-lib m17nlib)
361 - $(use_enable ncurses fep)
362 - $(use_enable nls)
363 - --without-qt4
364 - --without-qt4-immodule
365 - --disable-qt4-qt3support
366 - $(use_with skk)
367 - $(use_with sqlite sqlite3)
368 - $(use_enable ssl openssl)
369 - $(use_enable static-libs static)
370 - $(use_with xft)
371 - --without-anthy
372 - --enable-default-toolkit=$(usex gtk gtk3 $(usex gtk2 gtk))
373 - --disable-gnome-applet
374 - --disable-gnome3-applet
375 - --disable-kde-applet
376 - --disable-kde4-applet
377 - --without-mana
378 - --without-prime
379 - )
380 -
381 - if (use gtk || use gtk2) && (use anthy || use canna); then
382 - myconf+=( --enable-dict )
383 - else
384 - myconf+=( --disable-dict )
385 - fi
386 -
387 - if use libnotify; then
388 - myconf+=( --enable-notify=libnotify )
389 - fi
390 -
391 - if use gtk || use gtk2; then
392 - myconf+=( --enable-pref )
393 - else
394 - myconf+=( --disable-pref )
395 - fi
396 -
397 - econf "${myconf[@]}"
398 -}
399 -
400 -src_compile() {
401 - default
402 -
403 - if use emacs; then
404 - cd emacs
405 - elisp-compile *.el || die
406 - fi
407 -}
408 -
409 -src_install() {
410 - # bug #222677
411 - emake -j1 DESTDIR="${D}" install
412 - einstalldocs
413 -
414 - find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die
415 - use static-libs || find "${ED}" -name '*.la' -delete || die
416 -
417 - insinto /etc/X11/xinit/xinput.d
418 - sed \
419 - -e "s:@EPREFIX@:${EPREFIX}:g" \
420 - "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf
421 - doins "${T}"/${PN}.conf
422 -
423 - if use emacs; then
424 - elisp-install ${PN}-el emacs/*.el{,c}
425 - elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el
426 - fi
427 -}
428 -
429 -pkg_postinst() {
430 - elog "New input method switcher has been introduced. You need to set"
431 - elog
432 - elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
433 - elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
434 - elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
435 - elog
436 - elog "If you would like to use uim-anthy as default input method, put"
437 - elog "(define default-im-name 'anthy)"
438 - elog "to your ~/.uim."
439 - elog
440 - elog "All input methods can be found by running uim-im-switcher-gtk, "
441 - elog "uim-im-switcher-gtk3."
442 -
443 - if use emacs; then
444 - elisp-site-regen
445 - echo
446 - elog "uim is autoloaded with Emacs with a minimal set of features:"
447 - elog "There is no keybinding defined to call it directly, so please"
448 - elog "create one yourself and choose an input method."
449 - elog "Integration with LEIM is not done with this ebuild, please have"
450 - elog "a look at the documentation how to achieve this."
451 - fi
452 - use gtk && gnome2_query_immodules_gtk3
453 - use gtk2 && gnome2_query_immodules_gtk2
454 -}
455 -
456 -pkg_postrm() {
457 - use emacs && elisp-site-regen
458 - use gtk && gnome2_query_immodules_gtk3
459 - use gtk2 && gnome2_query_immodules_gtk2
460 -}
461
462 diff --git a/app-i18n/uim/uim-1.8.6-r2.ebuild b/app-i18n/uim/uim-1.8.6-r2.ebuild
463 deleted file mode 100644
464 index 153a4f27242..00000000000
465 --- a/app-i18n/uim/uim-1.8.6-r2.ebuild
466 +++ /dev/null
467 @@ -1,213 +0,0 @@
468 -# Copyright 1999-2019 Gentoo Authors
469 -# Distributed under the terms of the GNU General Public License v2
470 -
471 -EAPI="6"
472 -
473 -inherit autotools elisp-common gnome2-utils qmake-utils
474 -
475 -DESCRIPTION="A multilingual input method framework"
476 -HOMEPAGE="https://github.com/uim/uim"
477 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2"
478 -
479 -LICENSE="BSD GPL-2 LGPL-2.1"
480 -SLOT="0"
481 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
482 -IUSE="X +anthy canna curl eb emacs expat libffi gtk gtk2 l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify libressl m17n-lib ncurses nls skk sqlite ssl static-libs xft"
483 -RESTRICT="test"
484 -REQUIRED_USE="gtk? ( X )
485 - gtk2? ( X )
486 - xft? ( X )"
487 -
488 -CDEPEND="!dev-scheme/sigscheme
489 - X? (
490 - x11-libs/libICE
491 - x11-libs/libSM
492 - x11-libs/libX11
493 - x11-libs/libXext
494 - x11-libs/libXft
495 - x11-libs/libXrender
496 - x11-libs/libXt
497 - )
498 - anthy? ( app-i18n/anthy )
499 - canna? ( app-i18n/canna )
500 - curl? ( net-misc/curl )
501 - eb? ( dev-libs/eb )
502 - emacs? ( >=app-editors/emacs-23.1:* )
503 - expat? ( dev-libs/expat )
504 - libffi? ( virtual/libffi )
505 - gtk? ( x11-libs/gtk+:3 )
506 - gtk2? ( x11-libs/gtk+:2 )
507 - libedit? ( dev-libs/libedit )
508 - libnotify? ( x11-libs/libnotify )
509 - m17n-lib? ( dev-libs/m17n-lib )
510 - ncurses? ( sys-libs/ncurses:0= )
511 - nls? ( virtual/libintl )
512 - skk? ( app-i18n/skk-jisyo )
513 - sqlite? ( dev-db/sqlite:3 )
514 - ssl? (
515 - !libressl? ( dev-libs/openssl:0= )
516 - libressl? ( dev-libs/libressl:0= )
517 - )"
518 -DEPEND="${CDEPEND}
519 - dev-util/intltool
520 - sys-devel/gettext
521 - virtual/pkgconfig
522 - X? ( x11-base/xorg-proto )"
523 -RDEPEND="${CDEPEND}
524 - X? (
525 - media-fonts/font-sony-misc
526 - l10n_ja? (
527 - || (
528 - media-fonts/font-jis-misc
529 - media-fonts/intlfonts
530 - )
531 - )
532 - l10n_ko? (
533 - || (
534 - media-fonts/font-daewoo-misc
535 - media-fonts/intlfonts
536 - )
537 - )
538 - l10n_zh-CN? (
539 - || (
540 - media-fonts/font-isas-misc
541 - media-fonts/intlfonts
542 - )
543 - )
544 - l10n_zh-TW? ( media-fonts/intlfonts )
545 - )"
546 -
547 -PATCHES=(
548 - "${FILESDIR}"/${P}-gentoo.patch
549 - "${FILESDIR}"/${P}-libressl.patch
550 - "${FILESDIR}"/${P}-qt.patch
551 - "${FILESDIR}"/${P}-tinfo.patch
552 - "${FILESDIR}"/${PN}-zh-TW.patch
553 -)
554 -DOCS=( AUTHORS NEWS README RELNOTE )
555 -
556 -AT_NO_RECURSIVE="yes"
557 -SITEFILE="50${PN}-gentoo.el"
558 -
559 -src_prepare() {
560 - default
561 - sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac
562 -
563 - eautoreconf
564 -}
565 -
566 -src_configure() {
567 - local myconf=(
568 - $(use_with X x)
569 - $(use_with anthy anthy-utf8)
570 - $(use_with canna)
571 - $(use_with curl)
572 - $(use_with eb)
573 - $(use_enable emacs)
574 - $(use_with emacs lispdir "${SITELISP}")
575 - $(use_with expat)
576 - $(use_with libedit)
577 - $(use_with libffi ffi)
578 - $(use_with gtk gtk3)
579 - $(use_with gtk2)
580 - $(use_with m17n-lib m17nlib)
581 - $(use_enable ncurses fep)
582 - $(use_enable nls)
583 - --without-qt4
584 - --without-qt4-immodule
585 - --disable-qt4-qt3support
586 - $(use_with skk)
587 - $(use_with sqlite sqlite3)
588 - $(use_enable ssl openssl)
589 - $(use_enable static-libs static)
590 - $(use_with xft)
591 - --without-anthy
592 - --enable-default-toolkit=$(usex gtk gtk3 $(usex gtk2 gtk))
593 - --disable-gnome-applet
594 - --disable-gnome3-applet
595 - --disable-kde-applet
596 - --disable-kde4-applet
597 - --without-mana
598 - --without-prime
599 - )
600 -
601 - if (use gtk || use gtk2) && (use anthy || use canna); then
602 - myconf+=( --enable-dict )
603 - else
604 - myconf+=( --disable-dict )
605 - fi
606 -
607 - if use libnotify; then
608 - myconf+=( --enable-notify=libnotify )
609 - fi
610 -
611 - if use gtk || use gtk2; then
612 - myconf+=( --enable-pref )
613 - else
614 - myconf+=( --disable-pref )
615 - fi
616 -
617 - econf "${myconf[@]}"
618 -}
619 -
620 -src_compile() {
621 - default
622 -
623 - if use emacs; then
624 - cd emacs
625 - elisp-compile *.el || die
626 - fi
627 -}
628 -
629 -src_install() {
630 - # bug #222677
631 - emake -j1 DESTDIR="${D}" install
632 - einstalldocs
633 -
634 - find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die
635 - use static-libs || find "${ED}" -name '*.la' -delete || die
636 -
637 - insinto /etc/X11/xinit/xinput.d
638 - sed \
639 - -e "s:@EPREFIX@:${EPREFIX}:g" \
640 - "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf
641 - doins "${T}"/${PN}.conf
642 -
643 - if use emacs; then
644 - elisp-install ${PN}-el emacs/*.el{,c}
645 - elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el
646 - fi
647 -}
648 -
649 -pkg_postinst() {
650 - elog "New input method switcher has been introduced. You need to set"
651 - elog
652 - elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
653 - elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
654 - elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
655 - elog
656 - elog "If you would like to use uim-anthy as default input method, put"
657 - elog "(define default-im-name 'anthy)"
658 - elog "to your ~/.uim."
659 - elog
660 - elog "All input methods can be found by running uim-im-switcher-gtk, "
661 - elog "uim-im-switcher-gtk3."
662 -
663 - if use emacs; then
664 - elisp-site-regen
665 - echo
666 - elog "uim is autoloaded with Emacs with a minimal set of features:"
667 - elog "There is no keybinding defined to call it directly, so please"
668 - elog "create one yourself and choose an input method."
669 - elog "Integration with LEIM is not done with this ebuild, please have"
670 - elog "a look at the documentation how to achieve this."
671 - fi
672 - use gtk && gnome2_query_immodules_gtk3
673 - use gtk2 && gnome2_query_immodules_gtk2
674 -}
675 -
676 -pkg_postrm() {
677 - use emacs && elisp-site-regen
678 - use gtk && gnome2_query_immodules_gtk3
679 - use gtk2 && gnome2_query_immodules_gtk2
680 -}