commit: 262ab1d954eda1c0557944c4a9ddb37c9d156db1
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Sat Sep 26 23:02:59 2020 +0000
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Sat Sep 26 23:02:59 2020 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=262ab1d9
dev-python/numba: fix use flag checks
found when doing compilations without tbb
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
dev-python/numba/numba-0.51.2.ebuild | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dev-python/numba/numba-0.51.2.ebuild
b/dev-python/numba/numba-0.51.2.ebuild
index 597d6ac54..9f9af4049 100644
--- a/dev-python/numba/numba-0.51.2.ebuild
+++ b/dev-python/numba/numba-0.51.2.ebuild
@@ -18,7 +18,7 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="openmp threads"
-DEPEND="
+RDEPEND="${PYTHON_DEPS}
>=dev-python/llvmlite-0.34.0[${PYTHON_USEDEP}]
<dev-python/llvmlite-0.35.0
dev-python/numpy[${PYTHON_USEDEP}]
@@ -26,9 +26,7 @@ DEPEND="
dev-python/scipy[${PYTHON_USEDEP}]
threads? ( dev-cpp/tbb )
"
-RDEPEND="${DEPEND}
- ${PYTHON_DEPS}
-"
+DEPEND="${RDEPEND}"
DISTUTILS_IN_SOURCE_BUILD=1
distutils_enable_tests unittest
@@ -39,12 +37,12 @@ PATCHES=(
)
pkg_setup() {
- if ! usex openmp; then
+ if ! use openmp; then
export NUMBA_DISABLE_OPENMP=1
else
unset NUMBA_DISABLE_OPENMP
fi
- if ! usex threads; then
+ if ! use threads; then
export NUMBA_DISABLE_TBB=1
else
unset NUMBA_DISABLE_TBB