commit:     4493d895ba1c48054673fa1f68fda190da0565b3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  2 07:25:39 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec  2 08:12:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4493d895

dev-python/numexpr: Bump to 2.8.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/numexpr/Manifest             |  1 +
 dev-python/numexpr/numexpr-2.8.0.ebuild | 48 +++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-python/numexpr/Manifest b/dev-python/numexpr/Manifest
index 4233994bb5b2..21f5a340b447 100644
--- a/dev-python/numexpr/Manifest
+++ b/dev-python/numexpr/Manifest
@@ -1 +1,2 @@
 DIST numexpr-2.7.3.tar.gz 114113 BLAKE2B 
95dca4fbd3148bbf198f82827a63fac3e9de29f677457f2ad45040e24a38bb05e4e09738efa0cac793970e18bdcd252e2744da96062217fd35b4054b10112989
 SHA512 
8234a65ce96ea0a2f20cce7dce3de652362a9edc86af2e7a333cdd8ecd87866f75970859ff39b04d529acc062b806cc8c64f262c318edd2897200d7e54b429e7
+DIST numexpr-2.8.0.tar.gz 111765 BLAKE2B 
20b56ce6b5c83a72c317c1b03c1084f64a2438deaeaf73a97afc8ab75abe0d3aa3721df8e7921568ff14c36fc0737e87be82951d1911f2eedee8f0e9fcad2fb8
 SHA512 
33f54eed99cab552c868cc5091ea76e13da12367507161713304f48b322289a01aeabe750f13501cc5654c6068c7e6220c6adeb8703fef174a445860f142614f

diff --git a/dev-python/numexpr/numexpr-2.8.0.ebuild 
b/dev-python/numexpr/numexpr-2.8.0.ebuild
new file mode 100644
index 000000000000..fd9a606a6675
--- /dev/null
+++ b/dev-python/numexpr/numexpr-2.8.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy"
+HOMEPAGE="https://github.com/pydata/numexpr";
+SRC_URI="https://github.com/pydata/numexpr/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="mkl"
+
+RDEPEND="
+       >=dev-python/numpy-1.6[${PYTHON_USEDEP}]
+       mkl? ( sci-libs/mkl )
+"
+
+python_prepare_all() {
+       # TODO: mkl can be used but it fails for me
+       # only works with mkl in tree. newer mkl will use pkgconfig
+       if use mkl; then
+               use amd64 && local ext="_lp64"
+               cat > site.cfg <<- _EOF_ || die
+                       [mkl]
+                       library_dirs = ${MKLROOT}/lib/em64t
+                       include_dirs = ${MKLROOT}/include
+                       mkl_libs = mkl_solver${ext}, mkl_intel${ext}, \
+                       mkl_intel_thread, mkl_core, iomp5
+               _EOF_
+       fi
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       pushd "${BUILD_DIR}"/lib >/dev/null || die
+       "${EPYTHON}" \
+               -c "import sys,numexpr; sys.exit(0 if 
numexpr.test().wasSuccessful() else 1)" \
+               || die
+       pushd >/dev/null || die
+}

Reply via email to