Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/greenlet/
Date: Wed, 27 Nov 2019 07:58:44
Message-Id: 1574841469.a2fe5b7ff098c8b7e7444a89badc40977ab2e0ba.chutzpah@gentoo
1 commit: a2fe5b7ff098c8b7e7444a89badc40977ab2e0ba
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Nov 27 05:47:28 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 07:57:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2fe5b7f
7
8 dev-python/greenlet-0.4.15-41: revbump, cleanups, py38
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.79, Repoman-2.3.18
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/greenlet/greenlet-0.4.15-r1.ebuild | 37 +++++++++++++++++++++++++++
15 1 file changed, 37 insertions(+)
16
17 diff --git a/dev-python/greenlet/greenlet-0.4.15-r1.ebuild b/dev-python/greenlet/greenlet-0.4.15-r1.ebuild
18 new file mode 100644
19 index 00000000000..e123a0d5fe0
20 --- /dev/null
21 +++ b/dev-python/greenlet/greenlet-0.4.15-r1.ebuild
22 @@ -0,0 +1,37 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +# Note: greenlet is built-in in pypy
29 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
30 +
31 +inherit distutils-r1 flag-o-matic
32 +
33 +DESCRIPTION="Lightweight in-process concurrent programming"
34 +HOMEPAGE="https://pypi.org/project/greenlet/"
35 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
40 +IUSE="doc"
41 +
42 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
43 +
44 +DISTUTILS_IN_SOURCE_BUILD=1
45 +
46 +distutils_enable_sphinx doc
47 +
48 +python_compile() {
49 + if ! python_is_python3; then
50 + local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
51 + append-flags -fno-strict-aliasing
52 + fi
53 +
54 + distutils-r1_python_compile
55 +}
56 +
57 +python_test() {
58 + "${PYTHON}" run-tests.py -n || die "Tests fail with ${EPYTHON}"
59 +}