1 |
commit: d61c9a27a391ffe31d95c7655eb34336b0bfa26f |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 28 15:12:24 2018 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 28 15:12:24 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d61c9a27 |
7 |
|
8 |
app-i18n/uim: new upstream release |
9 |
|
10 |
Closes: https://bugs.gentoo.org/644898 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
app-i18n/uim/Manifest | 1 + |
14 |
app-i18n/uim/files/uim-gentoo.patch | 28 +++++ |
15 |
app-i18n/uim/files/uim-tinfo.patch | 38 ++++++ |
16 |
app-i18n/uim/uim-1.8.8.ebuild | 226 ++++++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 293 insertions(+) |
18 |
|
19 |
diff --git a/app-i18n/uim/Manifest b/app-i18n/uim/Manifest |
20 |
index fb64efc7829..0e626d08dac 100644 |
21 |
--- a/app-i18n/uim/Manifest |
22 |
+++ b/app-i18n/uim/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST uim-1.8.6.tar.bz2 6500739 BLAKE2B 78623c015cafafa1fbaf32542535de1f0207f8452a422d929a15f4421e4c9926192d0d3b761a7865a38affdf616dc5477e083c0fd8655261ff80ca817fd37029 SHA512 26a95d3b51ef7a99108234b9af30ee7b74141cb3af13d092d4cdbf0749f630934cfd67f74b09dacc3adcdce4a390104489d68a4e2419ec07418645a9b4e5715b |
25 |
+DIST uim-1.8.8.tar.bz2 6228743 BLAKE2B 8fc44b61239f766ba3d9ebf3201c11471b3a844e082237f5ec97dd0fa6fbb04a0a588df5c0479a0aa4bcb4d9c4edcc93c36ec68618701c8aa88fa30732fdce28 SHA512 2257ae48f4f2b79039a5f6be0fc740e218d5609e004dad9a5a1aa5d4066587ee59d0be06bc23c7d567a48901466227fedc4778b480f7184d84b0b3b4dddac9a3 |
26 |
|
27 |
diff --git a/app-i18n/uim/files/uim-gentoo.patch b/app-i18n/uim/files/uim-gentoo.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..de498b754d8 |
30 |
--- /dev/null |
31 |
+++ b/app-i18n/uim/files/uim-gentoo.patch |
32 |
@@ -0,0 +1,28 @@ |
33 |
+--- a/configure.ac |
34 |
++++ b/configure.ac |
35 |
+@@ -38,6 +38,7 @@ |
36 |
+ AC_PATH_PROGS(SED, sed gsed) |
37 |
+ AX_PATH_QMAKE4 |
38 |
+ AX_PATH_QMAKE5 |
39 |
++PKG_PROG_PKG_CONFIG |
40 |
+ |
41 |
+ AM_MAINTAINER_MODE |
42 |
+ |
43 |
+@@ -1618,7 +1619,7 @@ |
44 |
+ fi |
45 |
+ AX_LANG_WNOERROR # end AC_LANG_WERROR |
46 |
+ |
47 |
+- QT_CONFIG_OPTS="debug" |
48 |
++ QT_CONFIG_OPTS="debug nostrip" |
49 |
+ else |
50 |
+ CFLAGS="$CFLAGS -DNDEBUG" |
51 |
+ CXXFLAGS="$CXXFLAGS -DNDEBUG" |
52 |
+@@ -1629,7 +1630,7 @@ |
53 |
+ AX_CFLAGS_GCC_OPTION([-Wno-unused-function], [UIM_SCM_CFLAGS]) |
54 |
+ AX_LANG_WNOERROR # end AC_LANG_WERROR |
55 |
+ |
56 |
+- QT_CONFIG_OPTS="release" |
57 |
++ QT_CONFIG_OPTS="release nostrip" |
58 |
+ fi |
59 |
+ |
60 |
+ AC_ARG_ENABLE(warnings-into-error, |
61 |
|
62 |
diff --git a/app-i18n/uim/files/uim-tinfo.patch b/app-i18n/uim/files/uim-tinfo.patch |
63 |
new file mode 100644 |
64 |
index 00000000000..e2fcfceb315 |
65 |
--- /dev/null |
66 |
+++ b/app-i18n/uim/files/uim-tinfo.patch |
67 |
@@ -0,0 +1,38 @@ |
68 |
+--- a/configure.ac |
69 |
++++ b/configure.ac |
70 |
+@@ -1180,9 +1180,13 @@ |
71 |
+ |
72 |
+ if test "x$enable_fep" != xno; then |
73 |
+ enable_fep=yes |
74 |
+- AC_CHECK_LIB(curses, setupterm, FEP_LIBADD="-lcurses $FEP_LIBADD", |
75 |
+- [AC_CHECK_LIB(ncurses, setupterm, FEP_LIBADD="-lncurses $FEP_LIBADD", |
76 |
+- AC_MSG_WARN([fep needs setupterm in libcurses or libncurses. disabled...]);enable_fep=no)]) |
77 |
++ PKG_CHECK_MODULES(CURSES, ncurses, |
78 |
++ [FEP_LIBADD="$CURSES_LIBS $FEP_LIBADD"], |
79 |
++ [ |
80 |
++ AC_CHECK_LIB(curses, setupterm, FEP_LIBADD="-lcurses $FEP_LIBADD", |
81 |
++ [AC_CHECK_LIB(ncurses, setupterm, FEP_LIBADD="-lncurses $FEP_LIBADD", |
82 |
++ AC_MSG_WARN([fep needs setupterm in libcurses or libncurses. disabled...]);enable_fep=no)]) |
83 |
++ ]) |
84 |
+ AC_CHECK_FUNCS(forkpty) |
85 |
+ if test "x$ac_cv_func_forkpty" = xno; then |
86 |
+ AC_CHECK_LIB(util, forkpty, |
87 |
+@@ -1319,10 +1323,14 @@ |
88 |
+ saved_LDFLAGS=$LDFLAGS |
89 |
+ CPPFLAGS="${CPPFLAGS} -I$libedit_path/include" |
90 |
+ LDFLAGS="${LDFLAGS} -L$libedit_path/lib" |
91 |
+- AC_CHECK_LIB(curses, tgetent, LIBEDIT_LIBS="-lcurses", |
92 |
+- [AC_CHECK_LIB(ncurses, tgetent, LIBEDIT_LIBS="-lncurses", |
93 |
+- AC_MSG_WARN("libedit needs libcurses or libncurses. disabled...") |
94 |
+- with_libedit=no)]) |
95 |
++ PKG_CHECK_MODULES(CURSES, ncurses, |
96 |
++ [LIBEDIT_LIBS="$CURSES_LIBS"], |
97 |
++ [ |
98 |
++ AC_CHECK_LIB(curses, tgetent, LIBEDIT_LIBS="-lcurses", |
99 |
++ [AC_CHECK_LIB(ncurses, tgetent, LIBEDIT_LIBS="-lncurses", |
100 |
++ AC_MSG_WARN("libedit needs libcurses or libncurses. disabled...") |
101 |
++ with_libedit=no)]) |
102 |
++ ]) |
103 |
+ |
104 |
+ if test "x$with_libedit" != xno; then |
105 |
+ AC_CHECK_LIB(edit, el_init, |
106 |
|
107 |
diff --git a/app-i18n/uim/uim-1.8.8.ebuild b/app-i18n/uim/uim-1.8.8.ebuild |
108 |
new file mode 100644 |
109 |
index 00000000000..b77ac271174 |
110 |
--- /dev/null |
111 |
+++ b/app-i18n/uim/uim-1.8.8.ebuild |
112 |
@@ -0,0 +1,226 @@ |
113 |
+# Copyright 1999-2018 Gentoo Foundation |
114 |
+# Distributed under the terms of the GNU General Public License v2 |
115 |
+ |
116 |
+EAPI="6" |
117 |
+ |
118 |
+inherit autotools elisp-common gnome2-utils |
119 |
+ |
120 |
+DESCRIPTION="A multilingual input method framework" |
121 |
+HOMEPAGE="https://github.com/uim/uim" |
122 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.bz2" |
123 |
+ |
124 |
+LICENSE="BSD GPL-2 LGPL-2.1" |
125 |
+SLOT="0" |
126 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
127 |
+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 qt5 skk sqlite ssl static-libs xft" |
128 |
+RESTRICT="test" |
129 |
+REQUIRED_USE="gtk? ( X ) |
130 |
+ gtk2? ( X ) |
131 |
+ qt5? ( X ) |
132 |
+ xft? ( X )" |
133 |
+ |
134 |
+CDEPEND="!dev-scheme/sigscheme |
135 |
+ X? ( |
136 |
+ x11-libs/libICE |
137 |
+ x11-libs/libSM |
138 |
+ x11-libs/libX11 |
139 |
+ x11-libs/libXext |
140 |
+ x11-libs/libXft |
141 |
+ x11-libs/libXrender |
142 |
+ x11-libs/libXt |
143 |
+ ) |
144 |
+ anthy? ( app-i18n/anthy ) |
145 |
+ canna? ( app-i18n/canna ) |
146 |
+ curl? ( net-misc/curl ) |
147 |
+ eb? ( dev-libs/eb ) |
148 |
+ emacs? ( virtual/emacs ) |
149 |
+ expat? ( dev-libs/expat ) |
150 |
+ libffi? ( virtual/libffi ) |
151 |
+ gtk? ( x11-libs/gtk+:3 ) |
152 |
+ gtk2? ( x11-libs/gtk+:2 ) |
153 |
+ libedit? ( dev-libs/libedit ) |
154 |
+ libnotify? ( x11-libs/libnotify ) |
155 |
+ m17n-lib? ( dev-libs/m17n-lib ) |
156 |
+ ncurses? ( sys-libs/ncurses:0= ) |
157 |
+ nls? ( virtual/libintl ) |
158 |
+ qt5? ( dev-qt/qtx11extras:5 ) |
159 |
+ skk? ( app-i18n/skk-jisyo ) |
160 |
+ sqlite? ( dev-db/sqlite:3 ) |
161 |
+ ssl? ( |
162 |
+ !libressl? ( dev-libs/openssl:0= ) |
163 |
+ libressl? ( dev-libs/libressl:0= ) |
164 |
+ )" |
165 |
+DEPEND="${CDEPEND} |
166 |
+ dev-util/intltool |
167 |
+ sys-devel/gettext |
168 |
+ virtual/pkgconfig |
169 |
+ X? ( x11-base/xorg-proto )" |
170 |
+RDEPEND="${CDEPEND} |
171 |
+ X? ( |
172 |
+ media-fonts/font-sony-misc |
173 |
+ l10n_ja? ( |
174 |
+ || ( |
175 |
+ media-fonts/font-jis-misc |
176 |
+ media-fonts/intlfonts |
177 |
+ ) |
178 |
+ ) |
179 |
+ l10n_ko? ( |
180 |
+ || ( |
181 |
+ media-fonts/font-daewoo-misc |
182 |
+ media-fonts/intlfonts |
183 |
+ ) |
184 |
+ ) |
185 |
+ l10n_zh-CN? ( |
186 |
+ || ( |
187 |
+ media-fonts/font-isas-misc |
188 |
+ media-fonts/intlfonts |
189 |
+ ) |
190 |
+ ) |
191 |
+ l10n_zh-TW? ( media-fonts/intlfonts ) |
192 |
+ )" |
193 |
+ |
194 |
+PATCHES=( |
195 |
+ "${FILESDIR}"/${PN}-gentoo.patch |
196 |
+ "${FILESDIR}"/${PN}-tinfo.patch |
197 |
+ "${FILESDIR}"/${PN}-zh-TW.patch |
198 |
+) |
199 |
+DOCS=( AUTHORS NEWS README RELNOTE doc ) |
200 |
+ |
201 |
+AT_NO_RECURSIVE="yes" |
202 |
+SITEFILE="50${PN}-gentoo.el" |
203 |
+ |
204 |
+src_prepare() { |
205 |
+ default |
206 |
+ sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac |
207 |
+ |
208 |
+ eautoreconf |
209 |
+} |
210 |
+ |
211 |
+src_configure() { |
212 |
+ local myconf=( |
213 |
+ $(use_with X x) |
214 |
+ $(use_with anthy anthy-utf8) |
215 |
+ $(use_with canna) |
216 |
+ $(use_with curl) |
217 |
+ $(use_with eb) |
218 |
+ $(use_enable emacs) |
219 |
+ $(use_with emacs lispdir "${SITELISP}") |
220 |
+ $(use_with expat) |
221 |
+ $(use_with libedit) |
222 |
+ $(use_with libffi ffi) |
223 |
+ $(use_with gtk gtk3) |
224 |
+ $(use_with gtk2) |
225 |
+ $(use_with m17n-lib m17nlib) |
226 |
+ $(use_enable ncurses fep) |
227 |
+ $(use_enable nls) |
228 |
+ $(use_with qt5) |
229 |
+ $(use_with qt5 qt5-immodule) |
230 |
+ $(use_with skk) |
231 |
+ $(use_with sqlite sqlite3) |
232 |
+ $(use_enable ssl openssl) |
233 |
+ $(use_enable static-libs static) |
234 |
+ $(use_with xft) |
235 |
+ --without-anthy |
236 |
+ --enable-default-toolkit=$(usex gtk gtk3 $(usex gtk2 gtk $(usex qt5 qt5))) |
237 |
+ --disable-gnome-applet |
238 |
+ --disable-gnome3-applet |
239 |
+ --disable-kde-applet |
240 |
+ --disable-kde4-applet |
241 |
+ --without-mana |
242 |
+ --without-prime |
243 |
+ --disable-qt4-qt3support |
244 |
+ ) |
245 |
+ |
246 |
+ if (use gtk || use gtk2) && (use anthy || use canna); then |
247 |
+ myconf+=( --enable-dict ) |
248 |
+ else |
249 |
+ myconf+=( --disable-dict ) |
250 |
+ fi |
251 |
+ |
252 |
+ if use libnotify; then |
253 |
+ myconf+=( --enable-notify=libnotify ) |
254 |
+ fi |
255 |
+ |
256 |
+ if use gtk || use gtk2 || use qt5; then |
257 |
+ myconf+=( --enable-pref ) |
258 |
+ else |
259 |
+ myconf+=( --disable-pref ) |
260 |
+ fi |
261 |
+ |
262 |
+ econf "${myconf[@]}" |
263 |
+} |
264 |
+ |
265 |
+src_compile() { |
266 |
+ default |
267 |
+ |
268 |
+ if use emacs; then |
269 |
+ cd emacs |
270 |
+ elisp-compile *.el || die |
271 |
+ fi |
272 |
+} |
273 |
+ |
274 |
+src_install() { |
275 |
+ # bug #222677 |
276 |
+ emake -j1 DESTDIR="${D}" install |
277 |
+ rm -f doc/Makefile* |
278 |
+ einstalldocs |
279 |
+ |
280 |
+ find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die |
281 |
+ use static-libs || find "${ED}" -name '*.la' -delete || die |
282 |
+ |
283 |
+ insinto /etc/X11/xinit/xinput.d |
284 |
+ sed \ |
285 |
+ -e "s:@EPREFIX@:${EPREFIX}:g" \ |
286 |
+ "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf |
287 |
+ doins "${T}"/${PN}.conf |
288 |
+ |
289 |
+ if use X; then |
290 |
+ docinto xim |
291 |
+ dodoc xim/README* |
292 |
+ fi |
293 |
+ |
294 |
+ if use emacs; then |
295 |
+ elisp-install ${PN}-el emacs/*.el{,c} |
296 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el |
297 |
+ docinto emacs |
298 |
+ dodoc emacs/README* |
299 |
+ fi |
300 |
+ |
301 |
+ if use ncurses; then |
302 |
+ docinto fep |
303 |
+ dodoc fep/README* |
304 |
+ fi |
305 |
+} |
306 |
+ |
307 |
+pkg_postinst() { |
308 |
+ elog "New input method switcher has been introduced. You need to set" |
309 |
+ elog |
310 |
+ elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" |
311 |
+ elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE" |
312 |
+ elog "% XMODIFIERS=@im=uim ; export XMODIFIERS" |
313 |
+ elog |
314 |
+ elog "If you would like to use uim-anthy as default input method, put" |
315 |
+ elog "(define default-im-name 'anthy)" |
316 |
+ elog "to your ~/.uim." |
317 |
+ elog |
318 |
+ elog "All input methods can be found by running uim-im-switcher-gtk, " |
319 |
+ elog "uim-im-switcher-gtk3 or uim-im-switcher-qt5." |
320 |
+ |
321 |
+ if use emacs; then |
322 |
+ elisp-site-regen |
323 |
+ echo |
324 |
+ elog "uim is autoloaded with Emacs with a minimal set of features:" |
325 |
+ elog "There is no keybinding defined to call it directly, so please" |
326 |
+ elog "create one yourself and choose an input method." |
327 |
+ elog "Integration with LEIM is not done with this ebuild, please have" |
328 |
+ elog "a look at the documentation how to achieve this." |
329 |
+ fi |
330 |
+ use gtk && gnome2_query_immodules_gtk3 |
331 |
+ use gtk2 && gnome2_query_immodules_gtk2 |
332 |
+} |
333 |
+ |
334 |
+pkg_postrm() { |
335 |
+ use emacs && elisp-site-regen |
336 |
+ use gtk && gnome2_query_immodules_gtk3 |
337 |
+ use gtk2 && gnome2_query_immodules_gtk2 |
338 |
+} |