1 |
commit: ce9226921522391615407350818b090fdf7b8732 |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 15:29:08 2022 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 15:29:08 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce922692 |
7 |
|
8 |
app-i18n/uim: new upstream release |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> |
12 |
|
13 |
app-i18n/uim/Manifest | 1 + |
14 |
app-i18n/uim/files/uim-zh-TW.patch | 11 ++ |
15 |
app-i18n/uim/uim-1.8.9.ebuild | 241 +++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 253 insertions(+) |
17 |
|
18 |
diff --git a/app-i18n/uim/Manifest b/app-i18n/uim/Manifest |
19 |
index b53e2ce400b5..372e31815111 100644 |
20 |
--- a/app-i18n/uim/Manifest |
21 |
+++ b/app-i18n/uim/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST sigscheme-0.9.1.tar.bz2 1140162 BLAKE2B a649ec1a5ff0899af14fa686ea7cf43140c226b1df68d4c9415c3b95c7f7ae32c539df820f0e9da7d7a809c88fa388e563549728c345017dfd62d418748be7e1 SHA512 b66b901e8a6bc6d9188112f78d3ba21a2a0776e1236aa9d2d83df27cf8111b8491f665062b493d14c2a9a1b4eb47ce2789b3ca7180225a085e94623329281e09 |
24 |
+DIST uim-1.8.9.tar.bz2 6233465 BLAKE2B 5fc57ffd43557cc685ca766d13e871a7b3ad3829fe3b3fcaa3ab76cba15350e82747952bcc77eda0093df0681ad5d3580cb30c96e2a707f0f3e2687a5bf96e19 SHA512 342bda32f27b9875bf1458adbfb3d3cdd92d98daf8068647e3cb01f9757fda6befbb44a7b9ba2b25b03e14b1de68c7e2d6b57362e84d6aae8bcff3959aaa12df |
25 |
DIST uim-1.8.9_pre20210103.tar.gz 4054622 BLAKE2B b50bafe9b0edbac1ab7e56afd5b654bdef793b606df3550ba7b8be467076005925bf2c5d221bbf3b3dbcdc5079bbb0e014ed29bef9b6a55c23384cb281411104 SHA512 39e046a8ee3bbc06ff0bab685e0ded8f63e9c474661ffecf7ed12e25cad3151498b2fecc7f14ca6f0c78974e55265df47d656a55bf158b41fe21a69071d02fe8 |
26 |
|
27 |
diff --git a/app-i18n/uim/files/uim-zh-TW.patch b/app-i18n/uim/files/uim-zh-TW.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..dce86724a27a |
30 |
--- /dev/null |
31 |
+++ b/app-i18n/uim/files/uim-zh-TW.patch |
32 |
@@ -0,0 +1,11 @@ |
33 |
+--- a/scm/im-custom.scm |
34 |
++++ b/scm/im-custom.scm |
35 |
+@@ -679,7 +679,7 @@ |
36 |
+ (define-custom 'uim-xim-fontset-zh-tw |
37 |
+ (string-join '( |
38 |
+ "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1" |
39 |
+- "-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0" |
40 |
++ "-eten-fixed-medium-r-normal--16-150-75-75-c-160-big5.eten-0" |
41 |
+ ) ",") |
42 |
+ '(xim xim-preedit) |
43 |
+ '(string ".*") |
44 |
|
45 |
diff --git a/app-i18n/uim/uim-1.8.9.ebuild b/app-i18n/uim/uim-1.8.9.ebuild |
46 |
new file mode 100644 |
47 |
index 000000000000..0fc2663179b2 |
48 |
--- /dev/null |
49 |
+++ b/app-i18n/uim/uim-1.8.9.ebuild |
50 |
@@ -0,0 +1,241 @@ |
51 |
+# Copyright 1999-2022 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI="8" |
55 |
+ |
56 |
+inherit autotools elisp-common flag-o-matic gnome2-utils qmake-utils |
57 |
+ |
58 |
+EGIT_COMMIT="d1ac9d9315ff8c57c713b502544fef9b3a83b3e5" |
59 |
+ |
60 |
+DESCRIPTION="A multilingual input method framework" |
61 |
+HOMEPAGE="https://github.com/uim/uim" |
62 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.bz2" |
63 |
+ |
64 |
+LICENSE="BSD GPL-2 LGPL-2.1" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~x86" |
67 |
+IUSE="X +anthy curl eb emacs expat libffi gtk gtk2 kde l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify m17n-lib ncurses nls qt5 skk sqlite ssl static-libs xft" |
68 |
+RESTRICT="test" |
69 |
+REQUIRED_USE="gtk? ( X ) |
70 |
+ gtk2? ( X ) |
71 |
+ qt5? ( X ) |
72 |
+ xft? ( X )" |
73 |
+ |
74 |
+CDEPEND="X? ( |
75 |
+ x11-libs/libICE |
76 |
+ x11-libs/libSM |
77 |
+ x11-libs/libX11 |
78 |
+ x11-libs/libXext |
79 |
+ x11-libs/libXft |
80 |
+ x11-libs/libXrender |
81 |
+ x11-libs/libXt |
82 |
+ ) |
83 |
+ anthy? ( app-i18n/anthy ) |
84 |
+ curl? ( net-misc/curl ) |
85 |
+ eb? ( dev-libs/eb ) |
86 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
87 |
+ expat? ( dev-libs/expat ) |
88 |
+ gtk? ( x11-libs/gtk+:3 ) |
89 |
+ gtk2? ( x11-libs/gtk+:2 ) |
90 |
+ kde? ( kde-frameworks/plasma:5 ) |
91 |
+ libedit? ( dev-libs/libedit ) |
92 |
+ libffi? ( dev-libs/libffi:= ) |
93 |
+ libnotify? ( x11-libs/libnotify ) |
94 |
+ m17n-lib? ( dev-libs/m17n-lib ) |
95 |
+ ncurses? ( sys-libs/ncurses:0= ) |
96 |
+ nls? ( virtual/libintl ) |
97 |
+ qt5? ( |
98 |
+ dev-qt/qtx11extras:5 |
99 |
+ dev-qt/qtwidgets:5 |
100 |
+ ) |
101 |
+ skk? ( app-i18n/skk-jisyo ) |
102 |
+ sqlite? ( dev-db/sqlite:3 ) |
103 |
+ ssl? ( dev-libs/openssl:0= )" |
104 |
+DEPEND="${CDEPEND} |
105 |
+ X? ( x11-base/xorg-proto )" |
106 |
+RDEPEND="${CDEPEND} |
107 |
+ !dev-scheme/sigscheme |
108 |
+ X? ( |
109 |
+ media-fonts/font-sony-misc |
110 |
+ l10n_ja? ( |
111 |
+ || ( |
112 |
+ media-fonts/font-jis-misc |
113 |
+ media-fonts/intlfonts |
114 |
+ ) |
115 |
+ ) |
116 |
+ l10n_ko? ( |
117 |
+ || ( |
118 |
+ media-fonts/font-daewoo-misc |
119 |
+ media-fonts/intlfonts |
120 |
+ ) |
121 |
+ ) |
122 |
+ l10n_zh-CN? ( |
123 |
+ || ( |
124 |
+ media-fonts/font-isas-misc |
125 |
+ media-fonts/intlfonts |
126 |
+ ) |
127 |
+ ) |
128 |
+ l10n_zh-TW? ( media-fonts/intlfonts ) |
129 |
+ )" |
130 |
+BDEPEND="gnome-base/librsvg |
131 |
+ sys-devel/gettext |
132 |
+ virtual/pkgconfig |
133 |
+ kde? ( dev-util/cmake ) |
134 |
+ nls? ( dev-util/intltool )" |
135 |
+ |
136 |
+PATCHES=( |
137 |
+ "${FILESDIR}"/${PN}-gentoo.patch |
138 |
+ "${FILESDIR}"/${PN}-kde.patch |
139 |
+ "${FILESDIR}"/${PN}-slibtool.patch |
140 |
+ "${FILESDIR}"/${PN}-tinfo.patch |
141 |
+ "${FILESDIR}"/${PN}-Wconversion.patch |
142 |
+ "${FILESDIR}"/${PN}-xkb.patch |
143 |
+ "${FILESDIR}"/${PN}-zh-TW.patch |
144 |
+) |
145 |
+DOCS=( AUTHORS NEWS README RELNOTE doc ) |
146 |
+ |
147 |
+AT_NO_RECURSIVE="yes" |
148 |
+SITEFILE="50${PN}-gentoo.el" |
149 |
+ |
150 |
+src_prepare() { |
151 |
+ default |
152 |
+ sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac |
153 |
+ use nls || sed -i "/^if .*USE_NLS/,/^fi/d" configure.ac |
154 |
+ # fix build with "-march=pentium4 -O2", bug #661806 |
155 |
+ use x86 && append-cflags $(test-flags-CC -fno-inline-small-functions) |
156 |
+ |
157 |
+ eautoreconf |
158 |
+} |
159 |
+ |
160 |
+src_configure() { |
161 |
+ local myconf=( |
162 |
+ $(use_with X x) |
163 |
+ $(use_with anthy anthy-utf8) |
164 |
+ $(use_with curl) |
165 |
+ $(use_with eb) |
166 |
+ $(use_enable emacs) |
167 |
+ $(use_with emacs lispdir "${SITELISP}") |
168 |
+ $(use_with expat) |
169 |
+ $(use_enable kde kde5-applet) |
170 |
+ $(use_with libedit) |
171 |
+ $(use_with libffi ffi) |
172 |
+ $(use_with gtk gtk3) |
173 |
+ $(use_with gtk2) |
174 |
+ $(use_with m17n-lib m17nlib) |
175 |
+ $(use_enable ncurses fep) |
176 |
+ $(use_enable nls) |
177 |
+ $(use_with qt5) |
178 |
+ $(use_with qt5 qt5-immodule) |
179 |
+ _QMAKE5=$(qt5_get_bindir)/qmake |
180 |
+ $(use_with skk) |
181 |
+ $(use_with sqlite sqlite3) |
182 |
+ $(use_enable ssl openssl) |
183 |
+ $(use_enable static-libs static) |
184 |
+ $(use_with xft) |
185 |
+ --without-anthy |
186 |
+ --without-canna |
187 |
+ --enable-default-toolkit=$(usex gtk gtk3 $(usex gtk2 gtk $(usex qt5 qt5))) |
188 |
+ --disable-gnome-applet |
189 |
+ --disable-gnome3-applet |
190 |
+ --disable-kde-applet |
191 |
+ --disable-kde4-applet |
192 |
+ --without-mana |
193 |
+ --enable-maintainer-mode |
194 |
+ --without-prime |
195 |
+ --disable-qt4-qt3support |
196 |
+ ) |
197 |
+ |
198 |
+ if (use gtk || use gtk2) && use anthy; then |
199 |
+ myconf+=( --enable-dict ) |
200 |
+ else |
201 |
+ myconf+=( --disable-dict ) |
202 |
+ fi |
203 |
+ |
204 |
+ if use libnotify; then |
205 |
+ myconf+=( --enable-notify=libnotify ) |
206 |
+ fi |
207 |
+ |
208 |
+ if use gtk || use gtk2 || use qt5; then |
209 |
+ myconf+=( --enable-pref ) |
210 |
+ else |
211 |
+ myconf+=( --disable-pref ) |
212 |
+ fi |
213 |
+ |
214 |
+ econf "${myconf[@]}" |
215 |
+} |
216 |
+ |
217 |
+src_compile() { |
218 |
+ default |
219 |
+ |
220 |
+ if use emacs; then |
221 |
+ cd emacs || die |
222 |
+ elisp-compile *.el || die |
223 |
+ cd - >/dev/null || die |
224 |
+ fi |
225 |
+} |
226 |
+ |
227 |
+src_install() { |
228 |
+ # bug #222677 |
229 |
+ emake -j1 DESTDIR="${D}" install |
230 |
+ rm -f doc/Makefile* |
231 |
+ einstalldocs |
232 |
+ |
233 |
+ find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die |
234 |
+ use static-libs || find "${ED}" -name '*.la' -delete || die |
235 |
+ |
236 |
+ insinto /etc/X11/xinit/xinput.d |
237 |
+ sed \ |
238 |
+ -e "s:@EPREFIX@:${EPREFIX}:g" \ |
239 |
+ "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf |
240 |
+ doins "${T}"/${PN}.conf |
241 |
+ |
242 |
+ if use X; then |
243 |
+ docinto xim |
244 |
+ dodoc xim/README* |
245 |
+ fi |
246 |
+ |
247 |
+ if use emacs; then |
248 |
+ elisp-install ${PN}-el emacs/*.el{,c} |
249 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el |
250 |
+ docinto emacs |
251 |
+ dodoc emacs/README* |
252 |
+ fi |
253 |
+ |
254 |
+ if use ncurses; then |
255 |
+ docinto fep |
256 |
+ dodoc fep/README* |
257 |
+ fi |
258 |
+} |
259 |
+ |
260 |
+pkg_postinst() { |
261 |
+ elog "New input method switcher has been introduced. You need to set" |
262 |
+ elog |
263 |
+ elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" |
264 |
+ elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE" |
265 |
+ elog "% XMODIFIERS=@im=uim ; export XMODIFIERS" |
266 |
+ elog |
267 |
+ elog "If you would like to use uim-anthy as default input method, put" |
268 |
+ elog "(define default-im-name 'anthy)" |
269 |
+ elog "to your ~/.uim." |
270 |
+ elog |
271 |
+ elog "All input methods can be found by running uim-im-switcher-gtk, " |
272 |
+ elog "uim-im-switcher-gtk3 or uim-im-switcher-qt5." |
273 |
+ |
274 |
+ if use emacs; then |
275 |
+ elisp-site-regen |
276 |
+ elog |
277 |
+ elog "uim is autoloaded with Emacs with a minimal set of features:" |
278 |
+ elog "There is no keybinding defined to call it directly, so please" |
279 |
+ elog "create one yourself and choose an input method." |
280 |
+ elog "Integration with LEIM is not done with this ebuild, please have" |
281 |
+ elog "a look at the documentation how to achieve this." |
282 |
+ fi |
283 |
+ use gtk && gnome2_query_immodules_gtk3 |
284 |
+ use gtk2 && gnome2_query_immodules_gtk2 |
285 |
+} |
286 |
+ |
287 |
+pkg_postrm() { |
288 |
+ use emacs && elisp-site-regen |
289 |
+ use gtk && gnome2_query_immodules_gtk3 |
290 |
+ use gtk2 && gnome2_query_immodules_gtk2 |
291 |
+} |