Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/scim/
Date: Fri, 05 Jan 2018 06:49:11
Message-Id: 1515134933.0aba0a8b1c6bbf11347bfd58b19ce19d6bb2d760.heroxbd@gentoo
1 commit: 0aba0a8b1c6bbf11347bfd58b19ce19d6bb2d760
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 5 06:43:08 2018 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 5 06:48:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aba0a8b
7
8 app-i18n/scim: version bump.
9
10 Suggested-By: Juanjie Xi <strangemk3 <AT> gmail.com>
11 Closes: https://bugs.gentoo.org/626764
12 Closes: https://github.com/gentoo/gentoo/pull/6625
13 Bug: https://bugs.gentoo.org/638368
14
15 app-i18n/scim/Manifest | 1 +
16 app-i18n/scim/scim-1.4.18.ebuild | 98 ++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 99 insertions(+)
18
19 diff --git a/app-i18n/scim/Manifest b/app-i18n/scim/Manifest
20 index edea97ca641..2d0d87bb21a 100644
21 --- a/app-i18n/scim/Manifest
22 +++ b/app-i18n/scim/Manifest
23 @@ -1,3 +1,4 @@
24 DIST scim-1.4.14.tar.gz 1519287 BLAKE2B 6bd2f7328e9a75c392b0f8d1d096b09b55dc88489e4524213743a9be61b29b2d610d20394d59aa83001d17d7a210e30627ab06148a4677b02344a2872608babd SHA512 00fe7a1b40b69aae123c0a1e67eb3744ad1e6b1e66726bb011a7426bd28012c52b346c62f08c7ecf0977ac3e88ee416337c9fa89b39142d5eea338d99641f5df
25 DIST scim-1.4.16.tar.gz 1361105 BLAKE2B 669c0836cd0fc220a78d113214d948b0f3f961bf2910967e2f8b4ef62e2e23dc4d604656232bb4030219a826dfb4e2076151e43916ffe280c2451ed8f25f8eef SHA512 23fe60202d74dd8cba84da40f80b6998d96180b08a618b052dde54b4d16a65246608344f63d6dd9b3d8a98102adcfd4831d850d81348539074273a2062c133d8
26 DIST scim-1.4.17.tar.gz 1285383 BLAKE2B 95b9ecb0bb25a15876df8175ee0b9392c301e3b0c554ac6ccba6b863420828ce185d3454f2fef48c03e7451f01815020290be7611b8536d8a028153af3a3fe2b SHA512 a7e0696330bca6fdf929ec0565ab4af1b4d0e5f73592cf5cccf1af6412eb351cd5a5ec9a3e5b83b24d6abad89bbb38a375cbbb0fd978f2fa17f6d64b69da0e3a
27 +DIST scim-1.4.18.tar.gz 1288060 BLAKE2B c2f1ce5608423734899aa6698060245c4ee253048d04d32bf5e853b8c68255340a8d35c0ebaaa50871b07c23ee9018b6bac03b18fbd4fa4dbea0e67c32c9ae30 SHA512 9a6090fc1ab950905a9c54d6678ce3d2a44297d1a992a3e933b0466688638e6cf470c1682daa58a6fbb6de3216b649273faf7edff1ac0ecca1c2c77fc19108fb
28
29 diff --git a/app-i18n/scim/scim-1.4.18.ebuild b/app-i18n/scim/scim-1.4.18.ebuild
30 new file mode 100644
31 index 00000000000..fed4fdc5b77
32 --- /dev/null
33 +++ b/app-i18n/scim/scim-1.4.18.ebuild
34 @@ -0,0 +1,98 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +inherit eutils flag-o-matic multilib gnome2-utils autotools
40 +
41 +DESCRIPTION="Smart Common Input Method (SCIM) is an Input Method (IM) development platform"
42 +HOMEPAGE="https://sourceforge.net/projects/scim"
43 +SRC_URI="https://github.com/scim-im/scim/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
48 +IUSE="doc gtk3"
49 +
50 +RDEPEND="x11-libs/libX11
51 + dev-libs/glib:2
52 + gtk3? ( x11-libs/gtk+:3 )
53 + !gtk3? ( x11-libs/gtk+:2 )
54 + >=dev-libs/atk-1
55 + >=x11-libs/pango-1"
56 +DEPEND="${RDEPEND}
57 + doc? ( app-doc/doxygen
58 + >=app-text/docbook-xsl-stylesheets-1.73.1 )
59 + dev-lang/perl
60 + virtual/pkgconfig
61 + >=dev-util/intltool-0.33
62 + sys-devel/libtool"
63 +DOCS=(
64 + README
65 + AUTHORS
66 + ChangeLog
67 + docs/developers
68 + docs/scim.cfg
69 +)
70 +
71 +src_prepare() {
72 + default
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + # bug #83625
78 + filter-flags -fvisibility-inlines-hidden -fvisibility=hidden
79 + econf $(use_with doc doxygen) \
80 + --enable-ld-version-script \
81 + $(usex gtk3 --with-gtk-version={3,2})
82 +}
83 +
84 +src_compile() {
85 + default
86 + use doc && emake docs
87 +}
88 +
89 +src_install() {
90 + use doc && HTML_DOCS=( "${S}/docs/html/" )
91 + default
92 +
93 + sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
94 + insinto /etc/X11/xinit/xinput.d
95 + doins "${T}/${PN}.conf"
96 +}
97 +
98 +pkg_postinst() {
99 + elog
100 + elog "To use SCIM with both GTK and XIM, you should use the following"
101 + elog "in your user startup scripts such as .gnomerc or .xinitrc:"
102 + elog
103 + elog "LANG='your_language' scim -d"
104 + elog "export XMODIFIERS=@im=SCIM"
105 + elog "export GTK_IM_MODULE=\"scim\""
106 + elog "export QT_IM_MODULE=\"scim\""
107 + elog
108 + elog "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
109 + elog "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
110 + elog
111 + elog "To use Chinese input methods:"
112 + elog " # emerge app-i18n/scim-tables app-i18n/scim-pinyin"
113 + elog "To use Korean input methods:"
114 + elog " # emerge app-i18n/scim-hangul"
115 + elog "To use Japanese input methods:"
116 + elog " # emerge app-i18n/scim-anthy"
117 + elog "To use various input methods (more than 30 languages):"
118 + elog " # emerge app-i18n/scim-m17n"
119 + elog
120 + elog "Please modify ${EPREFIX}/etc/scim/global and add your UTF-8 locale to"
121 + elog "/SupportedUnicodeLocales entry."
122 + elog
123 + ewarn
124 + ewarn "If you upgraded from scim-1.2.x or scim-1.0.x, you should remerge all SCIM modules."
125 + ewarn
126 +
127 + gnome2_query_immodules_gtk2
128 +}
129 +
130 +pkg_postrm() {
131 + gnome2_query_immodules_gtk2
132 +}