Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cangjie/
Date: Tue, 04 Sep 2018 12:33:53
Message-Id: 1536064405.54add5b98f160f47a21c1470084ebed759a0324f.hattya@gentoo
1 commit: 54add5b98f160f47a21c1470084ebed759a0324f
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 4 12:33:25 2018 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 4 12:33:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54add5b9
7
8 dev-python/cangjie: new upstream release
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-python/cangjie/Manifest | 1 +
13 dev-python/cangjie/cangjie-1.3.ebuild | 50 +++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-python/cangjie/Manifest b/dev-python/cangjie/Manifest
17 index 9f8d21a5a54..7b9869e0eac 100644
18 --- a/dev-python/cangjie/Manifest
19 +++ b/dev-python/cangjie/Manifest
20 @@ -1 +1,2 @@
21 DIST cangjie-1.2.tar.xz 221524 BLAKE2B 149d10c6d1806b08e1de852d7e48807bd027986188555caac1b9c1495573230341e611466563f8fc3072b2cbd6a4913646c44408c91816ce9fa0d67655796bb2 SHA512 4cc3e0e4a77b671c93fe39f17c970d458d6d935c1efa33f9d8de0a0311ed6c3a444fd41431d553f70f3e96065f8136801128d8b16c86d0340c78ab560bd9e63f
22 +DIST cangjie-1.3.tar.xz 237156 BLAKE2B a94f51df82136edddeeeecb729737a7be1cf4677c86df153ba86b436a404615156e6fe43d6efbb6ae602982763a4cd8ea09850882942a70a3a3737075bde0c01 SHA512 633b0040740105573fe72811c2f763756b67784330520ecadd5e0b24fc51e414f54a71f03444940f20c8a4943a14b65e2f1d18339696e2ea5cf659de8592df2a
23
24 diff --git a/dev-python/cangjie/cangjie-1.3.ebuild b/dev-python/cangjie/cangjie-1.3.ebuild
25 new file mode 100644
26 index 00000000000..08b958d139c
27 --- /dev/null
28 +++ b/dev-python/cangjie/cangjie-1.3.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="6"
34 +PYTHON_COMPAT=( python{3_4,3_5,3_6} )
35 +
36 +inherit autotools python-r1
37 +
38 +DESCRIPTION="Python wrapper for libcangjie"
39 +HOMEPAGE="http://cangjians.github.io/"
40 +SRC_URI="https://github.com/Cangjians/py${PN}/releases/download/v${PV}/${P#py}.tar.xz"
41 +
42 +LICENSE="LGPL-3+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE=""
46 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
47 +
48 +RDEPEND="${PYTHON_DEPS}
49 + app-i18n/libcangjie"
50 +DEPEND="${RDEPEND}
51 + dev-python/cython[${PYTHON_USEDEP}]
52 + virtual/pkgconfig"
53 +
54 +src_prepare() {
55 + default
56 + eautoreconf
57 +}
58 +
59 +src_configure() {
60 + python_configure() {
61 + ECONF_SOURCE="${S}" econf
62 + }
63 + python_foreach_impl run_in_build_dir python_configure
64 +}
65 +
66 +src_compile() {
67 + python_foreach_impl run_in_build_dir default
68 +}
69 +
70 +src_test() {
71 + python_foreach_impl run_in_build_dir default
72 +}
73 +
74 +src_install() {
75 + python_foreach_impl run_in_build_dir default
76 + einstalldocs
77 +
78 + find "${D}" -name '*.la' -delete || die
79 +}