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/libpinyin/
Date: Thu, 23 Jun 2022 23:13:13
Message-Id: 1656025966.dea44f266071c764bb32b49d220ec12d6c730dba.dlan@gentoo
1 commit: dea44f266071c764bb32b49d220ec12d6c730dba
2 Author: Christian Tietz <christian.tietz <AT> mailbox <DOT> org>
3 AuthorDate: Wed Jun 15 14:53:31 2022 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 23 23:12:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dea44f26
7
8 app-i18n/libpinyin: Bump to 2.6.2
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Christian Tietz <christian.tietz <AT> mailbox.org>
12 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
13
14 app-i18n/libpinyin/Manifest | 1 +
15 app-i18n/libpinyin/libpinyin-2.6.2.ebuild | 61 +++++++++++++++++++++++++++++++
16 2 files changed, 62 insertions(+)
17
18 diff --git a/app-i18n/libpinyin/Manifest b/app-i18n/libpinyin/Manifest
19 index a254d6b1f598..96633388429e 100644
20 --- a/app-i18n/libpinyin/Manifest
21 +++ b/app-i18n/libpinyin/Manifest
22 @@ -1,3 +1,4 @@
23 DIST libpinyin-2.3.0.tar.gz 256549 BLAKE2B 621176ab14dfe8fb3c32e3ae0b727b8070b5fdcc3a79f8f3c646538151601c7fefe0b2778a54c50faabaf3026d9c029eaa52a0e04144d37f347ca571fd532908 SHA512 5cfe2d70c15dc532fa970a28b70da403f2d848747501bdbdf43c481f8165d6290cb1de086d2ef7af653edfe3fb164d4e8d9cf655302e2aa759709e6031b117b2
24 +DIST libpinyin-2.6.2.tar.gz 260101 BLAKE2B 7ba61c5bfe68991866112bbb63383bd7062164f92d63150b42c30f39d383f62a339a13eafa1596d1988d8e308c93ccc0f45cceeb557ce329788da507eed3e2ab SHA512 839907bed9bc796185fbe7d7b30ab84bc9bd45212797c75081475791aa62ad3465509ecc5fabe6ea27d02be9d2ca61764a472684b011b0c211bd5f4f26a0f9ca
25 DIST libpinyin-model17.text.tar.gz 20278815 BLAKE2B d02a587ab29e1115843d8c2318ef70cf7c2318d5c60ef8135860c611935285fa0f061a21d7e85dd87f6efe957742e21e34a77a7b245b58945cdd478759b0e19f SHA512 d0bf8d476a63e33e292046754161316f00bfea71ebd06fca85b3845fe535431f01458282f505380cae018050aa6a08b14a7bc0684ba372dc79ee14391f47e8a1
26 DIST libpinyin-model19.text.tar.gz 20279012 BLAKE2B d8721d106235ef6fb99ad8dd4f4911bb23bf66f0259b01c39fd8ee829f0a63f326894802d62e51531a10f453dff1f4bb6e3e1648cf4aeac8213dccd10fc8ca4d SHA512 93c70423ba14faa3402bce775f82769dd4ee3a49083beddc540825f88facbd847328e9d01d99473adb7cf26de0f853e2b2e14fe849b1c49531134d1ca4ed2ef2
27
28 diff --git a/app-i18n/libpinyin/libpinyin-2.6.2.ebuild b/app-i18n/libpinyin/libpinyin-2.6.2.ebuild
29 new file mode 100644
30 index 000000000000..e156b7a81667
31 --- /dev/null
32 +++ b/app-i18n/libpinyin/libpinyin-2.6.2.ebuild
33 @@ -0,0 +1,61 @@
34 +# Copyright 2012-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit autotools
40 +
41 +if [[ "${PV}" == "9999" ]]; then
42 + inherit git-r3
43 +
44 + EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
45 +fi
46 +
47 +LIBPINYIN_MODEL_VERSION="19"
48 +
49 +DESCRIPTION="Libraries for handling of Hanyu Pinyin and Zhuyin Fuhao"
50 +HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
51 +if [[ "${PV}" == "9999" ]]; then
52 + SRC_URI=""
53 +else
54 + SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
55 +fi
56 +SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
57 +
58 +LICENSE="GPL-3+"
59 +SLOT="0/13"
60 +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
61 +IUSE=""
62 +
63 +BDEPEND="virtual/pkgconfig"
64 +DEPEND="dev-libs/glib:2
65 + sys-libs/db:="
66 +RDEPEND="${DEPEND}"
67 +
68 +src_unpack() {
69 + if [[ "${PV}" == "9999" ]]; then
70 + git-r3_src_unpack
71 + else
72 + unpack ${P}.tar.gz
73 + fi
74 +}
75 +
76 +src_prepare() {
77 + default
78 +
79 + sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
80 + ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
81 +
82 + eautoreconf
83 +}
84 +
85 +src_configure() {
86 + econf \
87 + --enable-libzhuyin \
88 + --disable-static
89 +}
90 +
91 +src_install() {
92 + default
93 + find "${D}" -name "*.la" -delete || die
94 +}