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/xsunpinyin/
Date: Wed, 02 Sep 2020 14:23:41
Message-Id: 1599056587.13283ffdd7580d48a65387a3fe38b8e3ddea4d8b.floppym@gentoo
1 commit: 13283ffdd7580d48a65387a3fe38b8e3ddea4d8b
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Wed Sep 2 01: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=13283ffd
7
8 app-i18n/xsunpinyin: 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/xsunpinyin/Manifest | 1 +
16 .../xsunpinyin-2.0.4_pre20200306162733.ebuild | 74 ++++++++++++++++++++++
17 2 files changed, 75 insertions(+)
18
19 diff --git a/app-i18n/xsunpinyin/Manifest b/app-i18n/xsunpinyin/Manifest
20 index 016fef2a715..91033393128 100644
21 --- a/app-i18n/xsunpinyin/Manifest
22 +++ b/app-i18n/xsunpinyin/Manifest
23 @@ -1 +1,2 @@
24 +DIST sunpinyin-2.0.4_pre20200306162733.tar.gz 547519 BLAKE2B 6e0e4457217d7b85221cab15173f588a5c7c039208a8f6cd48ed5fb21c5b5eae2f4616d6fddbf6eff8a006193097de26c866d5385d4602f41059ee8d7e52a2d5 SHA512 e8cf73aeca8dcbc7dd6f51f034a9a0363201bc14a814800e071c987933935b0e8039aa84178a6bd1cba1c7dee4b25b2d5546e78ea683e68e8981afea48fdab33
25 DIST sunpinyin-3.0.0_rc1.tar.gz 547138 BLAKE2B 682e733241d690d1fef8ce452c497a894c5ab61bf5298c1f292ce3a25a681d594744db43ebd51b3e59274cce0e47a1bce15a793f2c20e2998915c3432f2a7c32 SHA512 c9d4936de5835a7f02e52c5b32bf1a42d76bf7588449aaa813f3df7ab2d72f3ca0f4e18f74a60be4860f0724b5e05cbe567c67e6f3150b0e71b23b3a9002fc5e
26
27 diff --git a/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20200306162733.ebuild b/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20200306162733.ebuild
28 new file mode 100644
29 index 00000000000..995dffb32e0
30 --- /dev/null
31 +++ b/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20200306162733.ebuild
32 @@ -0,0 +1,74 @@
33 +# Copyright 2011-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +PYTHON_COMPAT=(python{3_6,3_7,3_8})
38 +
39 +inherit python-any-r1 scons-utils toolchain-funcs
40 +
41 +MY_PN="sunpinyin"
42 +MY_P="${MY_PN}-${PV}"
43 +
44 +if [[ "${PV}" == "9999" ]]; then
45 + inherit git-r3
46 +
47 + EGIT_REPO_URI="https://github.com/sunpinyin/sunpinyin"
48 +elif [[ "${PV}" == *_pre* ]]; then
49 + SUNPINYIN_GIT_REVISION="f39c195db08661e894017507842991a1ef70bedf"
50 +fi
51 +
52 +DESCRIPTION="Standalone XIM server for SunPinyin"
53 +HOMEPAGE="https://github.com/sunpinyin/sunpinyin"
54 +if [[ "${PV}" == "9999" ]]; then
55 + SRC_URI=""
56 +elif [[ "${PV}" == *_pre* ]]; then
57 + SRC_URI="https://github.com/sunpinyin/${MY_PN}/archive/${SUNPINYIN_GIT_REVISION}.tar.gz -> ${MY_P}.tar.gz"
58 +else
59 + SRC_URI="https://github.com/sunpinyin/${MY_PN}/archive/v${PV/_/-}.tar.gz -> ${MY_P}.tar.gz"
60 +fi
61 +
62 +LICENSE="|| ( CDDL LGPL-2.1 )"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~x86"
65 +IUSE=""
66 +
67 +BDEPEND="${PYTHON_DEPS}
68 + virtual/pkgconfig"
69 +DEPEND="~app-i18n/sunpinyin-${PV}
70 + dev-libs/glib:2
71 + x11-libs/cairo
72 + x11-libs/gdk-pixbuf:2
73 + x11-libs/gtk+:2
74 + x11-libs/libX11
75 + x11-libs/pango"
76 +RDEPEND="${DEPEND}
77 + app-i18n/sunpinyin-data"
78 +
79 +if [[ "${PV}" == *_pre* ]]; then
80 + S="${WORKDIR}/${MY_PN}-${SUNPINYIN_GIT_REVISION}"
81 +elif [[ "${PV}" != "9999" ]]; then
82 + S="${WORKDIR}/${MY_PN}-${PV/_/-}"
83 +fi
84 +
85 +src_prepare() {
86 + default
87 +
88 + # https://github.com/sunpinyin/sunpinyin/pull/101
89 + sed -e "/^[[:space:]]*print /s/print \(.*\)/print(\1)/" -i wrapper/xim/SConstruct || die
90 +
91 + # https://github.com/sunpinyin/sunpinyin/issues/110
92 + sed -e "s/^\( *\)('CXX', 'CXX'),/&\n\1('AR', 'AR'),\n\1('RANLIB', 'RANLIB'),/" -i wrapper/xim/SConstruct || die
93 +}
94 +
95 +src_configure() {
96 + tc-export AR CC CXX RANLIB
97 +}
98 +
99 +src_compile() {
100 + escons -C wrapper/xim \
101 + --prefix="${EPREFIX}/usr"
102 +}
103 +
104 +src_install() {
105 + escons -C wrapper/xim --install-sandbox="${D}" install
106 +}