Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/traits/
Date: Sun, 03 Jan 2021 03:38:27
Message-Id: 1609645082.a46c4413e84ced35887a9c412473726b321df4e7.chymera@gentoo
1 commit: a46c4413e84ced35887a9c412473726b321df4e7
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Sun Jan 3 03:37:51 2021 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Sun Jan 3 03:38:02 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a46c4413
7
8 dev-python/traits: keeping second version 6.0.0
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
12
13 dev-python/traits/traits-6.0.0.ebuild | 43 +++++++++++++++++++++++++++++++++++
14 1 file changed, 43 insertions(+)
15
16 diff --git a/dev-python/traits/traits-6.0.0.ebuild b/dev-python/traits/traits-6.0.0.ebuild
17 new file mode 100644
18 index 000000000..ba9a4980b
19 --- /dev/null
20 +++ b/dev-python/traits/traits-6.0.0.ebuild
21 @@ -0,0 +1,43 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python3_{6,7,8,9} )
28 +
29 +inherit distutils-r1 virtualx
30 +
31 +DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python"
32 +HOMEPAGE="http://docs.enthought.com/traits/
33 + https://github.com/enthought/traits
34 + https://pypi.org/project/traits/"
35 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
36 +
37 +LICENSE="BSD"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
40 +IUSE="test"
41 +
42 +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
43 +
44 +DEPEND="
45 + dev-python/setuptools[${PYTHON_USEDEP}]
46 + test? (
47 + dev-python/nose[${PYTHON_USEDEP}]
48 + ${RDEPEND}
49 + )"
50 +
51 +python_prepare_all() {
52 + sed -i -e "s/'-O3'//g" setup.py || die
53 + distutils-r1_python_prepare_all
54 +}
55 +
56 +python_compile() {
57 + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
58 + distutils-r1_python_compile
59 +}
60 +
61 +python_test() {
62 + cd "${BUILD_DIR}"/lib || die
63 + ${EPYTHON} -m unittest discover || die
64 +}