Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/sunpinyin/
Date: Wed, 02 Sep 2020 14:23:40
Message-Id: 1599056587.6b2d7786fb3f2960c18d12f4ef4963c205436a5b.floppym@gentoo
1 commit: 6b2d7786fb3f2960c18d12f4ef4963c205436a5b
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Wed Sep 2 00:00:00 2020 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 14:23:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b2d7786
7
8 app-i18n/sunpinyin: Version bump (2.0.4_pre20200306162733).
9
10 Bug: https://bugs.gentoo.org/695010
11 Bug: https://bugs.gentoo.org/695022
12 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
13 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
14
15 app-i18n/sunpinyin/Manifest | 1 +
16 .../sunpinyin-2.0.4_pre20200306162733.ebuild | 64 ++++++++++++++++++++++
17 2 files changed, 65 insertions(+)
18
19 diff --git a/app-i18n/sunpinyin/Manifest b/app-i18n/sunpinyin/Manifest
20 index 07104dfbfad..a9b7dd0fb6c 100644
21 --- a/app-i18n/sunpinyin/Manifest
22 +++ b/app-i18n/sunpinyin/Manifest
23 @@ -1,2 +1,3 @@
24 DIST sunpinyin-2.0.4_pre20130108.tar.xz 964764 BLAKE2B 2c9d2e3fc02009ad10784c9408434c6806d1403026fb27629701650fe0e8a69c5580050846cf5c3b870215b8bfd68fe9c52d8bdaf83c41e523224463af9cf530 SHA512 7c1dd7db8b800e9d436746a560a16de2c6777576868f2e7e28f6dcb767b91ccd62b974f9d4ce6bd6ce80d30e1ee83887c3ee03c227e7e9fa59c01db4867465b2
25 +DIST sunpinyin-2.0.4_pre20200306162733.tar.gz 547519 BLAKE2B 6e0e4457217d7b85221cab15173f588a5c7c039208a8f6cd48ed5fb21c5b5eae2f4616d6fddbf6eff8a006193097de26c866d5385d4602f41059ee8d7e52a2d5 SHA512 e8cf73aeca8dcbc7dd6f51f034a9a0363201bc14a814800e071c987933935b0e8039aa84178a6bd1cba1c7dee4b25b2d5546e78ea683e68e8981afea48fdab33
26 DIST sunpinyin-3.0.0_rc1.tar.gz 547138 BLAKE2B 682e733241d690d1fef8ce452c497a894c5ab61bf5298c1f292ce3a25a681d594744db43ebd51b3e59274cce0e47a1bce15a793f2c20e2998915c3432f2a7c32 SHA512 c9d4936de5835a7f02e52c5b32bf1a42d76bf7588449aaa813f3df7ab2d72f3ca0f4e18f74a60be4860f0724b5e05cbe567c67e6f3150b0e71b23b3a9002fc5e
27
28 diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20200306162733.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20200306162733.ebuild
29 new file mode 100644
30 index 00000000000..4af6264fbb9
31 --- /dev/null
32 +++ b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20200306162733.ebuild
33 @@ -0,0 +1,64 @@
34 +# Copyright 2009-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +PYTHON_COMPAT=(python{3_6,3_7,3_8})
39 +
40 +inherit python-any-r1 scons-utils toolchain-funcs
41 +
42 +if [[ "${PV}" == "9999" ]]; then
43 + inherit git-r3
44 +
45 + EGIT_REPO_URI="https://github.com/sunpinyin/sunpinyin"
46 +elif [[ "${PV}" == *_pre* ]]; then
47 + SUNPINYIN_GIT_REVISION="f39c195db08661e894017507842991a1ef70bedf"
48 +fi
49 +
50 +DESCRIPTION="Statistical Language Model (SLM) based Chinese input method library"
51 +HOMEPAGE="https://github.com/sunpinyin/sunpinyin"
52 +if [[ "${PV}" == "9999" ]]; then
53 + SRC_URI=""
54 +elif [[ "${PV}" == *_pre* ]]; then
55 + SRC_URI="https://github.com/sunpinyin/${PN}/archive/${SUNPINYIN_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
56 +else
57 + SRC_URI="https://github.com/sunpinyin/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
58 +fi
59 +
60 +LICENSE="|| ( CDDL LGPL-2.1 )"
61 +SLOT="0/3"
62 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
63 +IUSE=""
64 +
65 +BDEPEND="${PYTHON_DEPS}
66 + dev-lang/perl
67 + virtual/pkgconfig"
68 +DEPEND="dev-db/sqlite:3"
69 +RDEPEND="${DEPEND}"
70 +
71 +if [[ "${PV}" == *_pre* ]]; then
72 + S="${WORKDIR}/${PN}-${SUNPINYIN_GIT_REVISION}"
73 +elif [[ "${PV}" != "9999" ]]; then
74 + S="${WORKDIR}/${PN}-${PV/_/-}"
75 +fi
76 +
77 +src_prepare() {
78 + default
79 + sed -e "/^docdir =/s:/sunpinyin:/${PF}:" -i SConstruct || die
80 +
81 + # https://github.com/sunpinyin/sunpinyin/issues/109
82 + sed -e "/^Requires: sqlite3$/s/^Requires:/Requires.private:/" -i sunpinyin-2.0.pc.in || die
83 +}
84 +
85 +src_configure() {
86 + tc-export CXX
87 +}
88 +
89 +src_compile() {
90 + escons \
91 + --prefix="${EPREFIX}/usr" \
92 + --libdir="${EPREFIX}/usr/$(get_libdir)"
93 +}
94 +
95 +src_install() {
96 + escons --install-sandbox="${D}" install
97 +}