Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyFFTW/
Date: Wed, 03 Nov 2021 19:27:44
Message-Id: 1635967648.8034c924f5f2ee668d33cc06162d50a276fa3814.arthurzam@gentoo
1 commit: 8034c924f5f2ee668d33cc06162d50a276fa3814
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 3 19:07:29 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 3 19:27:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8034c924
7
8 dev-python/pyFFTW: update live version
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pyFFTW/pyFFTW-9999.ebuild | 31 ++++++++++++++++++++++---------
13 1 file changed, 22 insertions(+), 9 deletions(-)
14
15 diff --git a/dev-python/pyFFTW/pyFFTW-9999.ebuild b/dev-python/pyFFTW/pyFFTW-9999.ebuild
16 index c667ef6827f..8ec87a34fe6 100644
17 --- a/dev-python/pyFFTW/pyFFTW-9999.ebuild
18 +++ b/dev-python/pyFFTW/pyFFTW-9999.ebuild
19 @@ -3,7 +3,7 @@
20
21 EAPI=7
22
23 -PYTHON_COMPAT=( python3_{7,8,9} )
24 +PYTHON_COMPAT=( python3_{8..9} )
25 inherit distutils-r1
26
27 DESCRIPTION="A pythonic python wrapper around FFTW"
28 @@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/pyFFTW/pyFFTW"
29
30 LICENSE="BSD"
31 SLOT="0"
32 -if [ "${PV}" = "9999" ]; then
33 +if [[ "${PV}" = "9999" ]]; then
34 inherit git-r3
35 EGIT_REPO_URI="https://github.com/pyFFTW/pyFFTW.git"
36 else
37 @@ -19,11 +19,24 @@ else
38 SRC_URI="https://github.com/pyFFTW/pyFFTW/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 fi
40
41 -IUSE=""
42 +DEPEND="
43 + dev-python/numpy[${PYTHON_USEDEP}]
44 + >=sci-libs/fftw-3.3:3.0=[threads]
45 +"
46 +RDEPEND="${DEPEND}"
47 +BDEPEND="
48 + dev-python/cython[${PYTHON_USEDEP}]
49 + test? (
50 + dev-python/dask[${PYTHON_USEDEP}]
51 + dev-python/scipy[${PYTHON_USEDEP}]
52 + )
53 +"
54
55 -DEPEND="dev-python/numpy[${PYTHON_USEDEP}]
56 - >=sci-libs/fftw-3.3:3.0=[threads]"
57 -RDEPEND="${DEPEND}
58 - ${PYTHON_DEPS}"
59 -BDEPEND="${PYTHON_DEPS}
60 - dev-python/cython[${PYTHON_USEDEP}]"
61 +distutils_enable_tests unittest
62 +
63 +python_test() {
64 + cp -r -l -n test/ "${BUILD_DIR}/lib" || die
65 + cd "${BUILD_DIR}/lib" || die
66 + eunittest
67 + rm -r test/ || die
68 +}