Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus-libpinyin/
Date: Thu, 23 Jun 2022 23:13:13
Message-Id: 1656025969.d53d3e23b353806cc69433674efae755be17a720.dlan@gentoo
1 commit: d53d3e23b353806cc69433674efae755be17a720
2 Author: Christian Tietz <christian.tietz <AT> mailbox <DOT> org>
3 AuthorDate: Wed Jun 15 14:55:21 2022 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 23 23:12:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d53d3e23
7
8 app-i18n/ibus-libpinyin: Bump to 1.12.1, enable py3.10
9
10 Closes: https://github.com/gentoo/gentoo/pull/25910
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Christian Tietz <christian.tietz <AT> mailbox.org>
13 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
14
15 app-i18n/ibus-libpinyin/Manifest | 1 +
16 .../ibus-libpinyin/ibus-libpinyin-1.12.1.ebuild | 69 ++++++++++++++++++++++
17 2 files changed, 70 insertions(+)
18
19 diff --git a/app-i18n/ibus-libpinyin/Manifest b/app-i18n/ibus-libpinyin/Manifest
20 index 4e4bf9ae6f8d..49e8d1e5a765 100644
21 --- a/app-i18n/ibus-libpinyin/Manifest
22 +++ b/app-i18n/ibus-libpinyin/Manifest
23 @@ -1 +1,2 @@
24 DIST ibus-libpinyin-1.11.92.tar.gz 1730065 BLAKE2B 376bec6fa7616364c8ed4dc5b269edabda892ba4759ff03e93b4099c99440925126800ea3bf11eef91ea62c558fa7dbf05f3d68be5e25e701aaaeb37618b90a8 SHA512 b875b2fed6875806971b91e2abc62cdab1f70baef78840915f89466a7bcf3d1dfc70438ba85e7580bba92dec0ade50a2b05955fe6cd148bffd3888fa69f1c851
25 +DIST ibus-libpinyin-1.12.1.tar.gz 1766803 BLAKE2B 1de8a51b52688dede32c572b39bd379296480ab2b0f909357465370e346bdf50f4cade5ab3f105f62a74e59cf2dc5e8d5235aedde7571b70d3c5dcee86d2e36b SHA512 ad6e7507bdb468d506071135449383e5bd4fc878bcffda4be6e4e7915b79dbaf919d2fa941b92b177dc7790bd895eaa9a6d04a2610f85e1e80e8eb50f188211d
26
27 diff --git a/app-i18n/ibus-libpinyin/ibus-libpinyin-1.12.1.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.12.1.ebuild
28 new file mode 100644
29 index 000000000000..7f8fdf0ab762
30 --- /dev/null
31 +++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.12.1.ebuild
32 @@ -0,0 +1,69 @@
33 +# Copyright 2015-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +LUA_COMPAT=( lua5-{1..3} )
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +
40 +inherit autotools gnome2-utils lua-single python-single-r1
41 +
42 +DESCRIPTION="Intelligent Pinyin and Bopomofo input methods based on LibPinyin for IBus"
43 +HOMEPAGE="https://github.com/libpinyin/ibus-libpinyin https://sourceforge.net/projects/libpinyin/"
44 +SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="boost lua opencc"
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
51 + lua? ( ${LUA_REQUIRED_USE} )"
52 +
53 +BDEPEND="dev-db/sqlite:3
54 + virtual/pkgconfig"
55 +
56 +DEPEND="${PYTHON_DEPS}
57 + >=app-i18n/libpinyin-2.2.1:=
58 + dev-db/sqlite:3
59 + dev-libs/glib:2
60 + virtual/libintl
61 + $(python_gen_cond_dep '
62 + app-i18n/ibus[python(+),${PYTHON_USEDEP}]
63 + dev-python/pygobject:3[${PYTHON_USEDEP}]
64 + ')
65 + boost? ( dev-libs/boost:= )
66 + lua? ( ${LUA_DEPS} )
67 + opencc? ( app-i18n/opencc:= )"
68 +
69 +RDEPEND="${DEPEND}"
70 +
71 +pkg_setup() {
72 + python-single-r1_pkg_setup
73 +
74 + if use lua; then
75 + lua-single_pkg_setup
76 + fi
77 +}
78 +
79 +src_prepare() {
80 + sed -i \
81 + -e "/^appdatadir/s:/appdata:/metainfo:" \
82 + data/Makefile.am || die
83 + default
84 + eautoreconf
85 +}
86 +
87 +src_configure() {
88 + econf \
89 + --enable-english-input-mode \
90 + $(use_enable boost) \
91 + $(use_enable lua lua-extension) \
92 + $(use_enable opencc)
93 +}
94 +
95 +pkg_postinst() {
96 + gnome2_schemas_update
97 +}
98 +
99 +pkg_postrm() {
100 + gnome2_schemas_update
101 +}