commit:     2b064688a960a1992d0c78b386e325d9e2a5baa3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  2 05:33:45 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov  2 06:31:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b064688

dev-python/simsimd: Bump to 5.9.10

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

 dev-python/simsimd/Manifest              |  1 +
 dev-python/simsimd/simsimd-5.9.10.ebuild | 64 ++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/dev-python/simsimd/Manifest b/dev-python/simsimd/Manifest
index 6baa39b09e24..d318dcadb7c8 100644
--- a/dev-python/simsimd/Manifest
+++ b/dev-python/simsimd/Manifest
@@ -1,3 +1,4 @@
 DIST SimSIMD-5.8.0.gh.tar.gz 183559 BLAKE2B 
2df0eac6eff58bc6c460b37cb7c523eae5d7e77d516bc7182ef3b39d033a1028d40536aaf99ad8ec8c28b4908ff873079ff0ca3d74acd1f763b0faaa5d4e225e
 SHA512 
4e68050379dfe42e6c36a88a0defad0d941c873bda66cb4c65bd8367b07bca99a5c5d6eec7c8e39b15ad1b8e5bcc9dc7f43457d8552e9d72faefb88b03ad6f9b
+DIST SimSIMD-5.9.10.gh.tar.gz 204187 BLAKE2B 
fdfdd6bb1473a60fd878a819f9d848bf90e9d35625c6112407e5af064d0b2ac80dedf3f7f0762dd40cc7bf2e79ddaee5baa8c708ff99ae98c8dfa9eb90853491
 SHA512 
7b4693d6513e01d486496ce46edf1a342d3f28e64b72f29bc6a0a8489e7be53056122d17b2dd9df297f3eb317260eff102aea7c49f90ca3a52485f289452f9cd
 DIST SimSIMD-5.9.6.gh.tar.gz 201831 BLAKE2B 
4a3af9caf6eceb98faac93fa4bb5cea56b7bac3f128022c28f5f56504441c16326552c1ee22a1fbaad8740434060ff4c1c47dd18d83134fdff976897df83ede6
 SHA512 
1c149c622a71feca1dcef99d626fbb080cdaacac7c0b333362220d733a696bc58a5c1952025ad5d13c4bdc33060ebe3f00d9bf8da9ece283c148dac70d32d5a3
 DIST SimSIMD-5.9.9.gh.tar.gz 204054 BLAKE2B 
245c001d5e44a58b42034bf6c528744a652b49a033e6c59708baf4ead498d24662d6e4ee3bddcbdab427a7db1e8db9ffa52d4b6b6640ea57dd2b0593b61b7c72
 SHA512 
386513eeb2f1680d265c54fb69935503561e7b02c9a8c133f4d5da34f792956b3794b7033b648852e368356992ffd081858d1ca197da0274cd493512f4431042

diff --git a/dev-python/simsimd/simsimd-5.9.10.ebuild 
b/dev-python/simsimd/simsimd-5.9.10.ebuild
new file mode 100644
index 000000000000..3b7152ad7a71
--- /dev/null
+++ b/dev-python/simsimd/simsimd-5.9.10.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+inherit distutils-r1 toolchain-funcs
+
+MY_P=SimSIMD-${PV}
+DESCRIPTION="Fastest SIMD-Accelerated Vector Similarity Functions for x86 and 
Arm"
+HOMEPAGE="
+       https://github.com/ashvardanian/SimSIMD/
+       https://pypi.org/project/simsimd/
+"
+# no sdist, as of 4.3.1
+# https://github.com/ashvardanian/SimSIMD/issues/113
+SRC_URI="
+       https://github.com/ashvardanian/SimSIMD/archive/v${PV}.tar.gz
+               -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openmp"
+
+BDEPEND="
+       test? (
+               dev-python/pytest-repeat[${PYTHON_USEDEP}]
+               dev-python/tabulate[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+               tc-check-openmp
+       fi
+}
+
+pkg_setup() {
+       if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+               tc-check-openmp
+       fi
+}
+
+src_prepare() {
+       sed -i -e '/-O3/d' setup.py || die
+       if ! use openmp; then
+               sed -i -e '/-fopenmp/d' setup.py || die
+       fi
+
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -p repeat scripts/test.py
+}

Reply via email to