Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cangjie/
Date: Fri, 10 Mar 2017 12:43:32
Message-Id: 1489149772.a28313adbdf5e0b12f692bb713f7b58e875d6b24.soap@gentoo
1 commit: a28313adbdf5e0b12f692bb713f7b58e875d6b24
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 10 11:35:50 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 10 12:42:52 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a28313ad
7
8 dev-python/cangjie: Port to EAPI 6
9
10 * Add py3.5 and 3.6 support
11
12 Package-Manager: Portage-2.3.4, Repoman-2.3.2
13
14 dev-python/cangjie/cangjie-1.2-r1.ebuild | 56 ++++++++++++++++++++++++++++++++
15 1 file changed, 56 insertions(+)
16
17 diff --git a/dev-python/cangjie/cangjie-1.2-r1.ebuild b/dev-python/cangjie/cangjie-1.2-r1.ebuild
18 new file mode 100644
19 index 00000000000..d3daf09ed18
20 --- /dev/null
21 +++ b/dev-python/cangjie/cangjie-1.2-r1.ebuild
22 @@ -0,0 +1,56 @@
23 +# Copyright 1999-2017 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +PYTHON_COMPAT=( python{3_4,3_5,3_6} )
29 +
30 +inherit autotools python-r1
31 +
32 +DESCRIPTION="The Python bindings to libcangjie"
33 +HOMEPAGE="http://cangjians.github.io"
34 +SRC_URI="https://github.com/Cangjians/pycangjie/releases/download/v${PV}/cangjie-${PV}.tar.xz"
35 +
36 +LICENSE="LGPL-3+"
37 +SLOT="0"
38 +KEYWORDS="amd64 x86"
39 +IUSE=""
40 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
41 +
42 +RDEPEND="
43 + app-i18n/libcangjie
44 + ${PYTHON_DEPS}"
45 +DEPEND="
46 + ${RDEPEND}
47 + dev-python/cython[${PYTHON_USEDEP}]
48 + virtual/pkgconfig"
49 +
50 +PATCHES=( "${FILESDIR}/${P}-cython-022.patch" )
51 +
52 +src_prepare() {
53 + default
54 + eautoreconf
55 +}
56 +
57 +src_configure() {
58 + myeconf() {
59 + ECONF_SOURCE="${S}" econf PYTHON="${PYTHON}"
60 + }
61 + python_foreach_impl run_in_build_dir myeconf
62 +}
63 +
64 +src_compile() {
65 + python_foreach_impl run_in_build_dir default
66 +}
67 +
68 +src_test() {
69 + python_foreach_impl run_in_build_dir default
70 +}
71 +
72 +src_install() {
73 + python_foreach_impl run_in_build_dir default
74 + einstalldocs
75 +
76 + # package only installs python modules
77 + find "${D}" -name '*.la' -delete || die
78 +}