diff options
Diffstat (limited to 'dev-python/rapidfuzz')
-rw-r--r-- | dev-python/rapidfuzz/Manifest | 2 | ||||
-rw-r--r-- | dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild | 50 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/rapidfuzz/Manifest b/dev-python/rapidfuzz/Manifest index b369f56ef675..c358264abece 100644 --- a/dev-python/rapidfuzz/Manifest +++ b/dev-python/rapidfuzz/Manifest @@ -3,9 +3,11 @@ DIST rapidfuzz-3.1.2.tar.gz 1280133 BLAKE2B 5f1d3175bc5ded1900f31c73d0e9fdfd6035 DIST rapidfuzz-3.2.0.tar.gz 1472554 BLAKE2B 7946f6139aec1ca9ccc623750bd09601e04171f3030bb7cfeac5cedf9ec1a639c444e9fd3394efde199e447a6834dce46be20dfb8be33232a324e4dea23b9cf1 SHA512 0ea0ecc62e2493519a302edd090521ed7efeae35e73812aeadaca2e2369362b57b1a095a09296edfa8db07b6bf58de4451dc71e96e6c215ebbe96dc1f8e7e995 DIST rapidfuzz-3.3.0.tar.gz 1507179 BLAKE2B 59f45a3a2551d4ccc1e3c077abbd2ce2e569be51dd72b0378a2744557d65588d9a98c53048471fe8f1b4600f3b997e26477d65bac983954ae9d8331aea4dc5c3 SHA512 ee3a362f7c9bf4c54cff93a8c3d830541f07ed67628469b1406261fca086bd15eb4a418ece56fa3e4f25e0c6b859080d19582f5eea90547541a39d35ec70ea19 DIST rapidfuzz-3.3.1.tar.gz 1507246 BLAKE2B 66964d155d682704266a32ce6632d91db4c0fdcf82722c6d58e7c305b0c4a341890b3c57d9936cc0f019b4aa5658279fc6d2f8885c17096ed8cb1721e2c633d3 SHA512 13f32818bdf1e71a30610c252afa1685ad64b858bff5b4309b5dfeca5f281096fc9fcd0683ed543bca0cee00db96df1c4fb6e0b76408c3694b508a9735d6cffc +DIST rapidfuzz-3.4.0.tar.gz 1490201 BLAKE2B c82d72d2ef807f236ab9f0807de466f3434fbfc143cbe2128520003f8d300a6bed3a5967ee7bc48a354be4c549557e85a05c4d2d45d294b8a9b93cef71f2d7ff SHA512 b90ef939d53b9ae775422ded53d9523da49c09a4e78aefeb19e2b47f365de00ae0e6d5729171aa28057011551308ae240114edaab7876687983aaed53176f3dd EBUILD rapidfuzz-3.1.1.ebuild 1142 BLAKE2B 3b40fe069a5fafbdca34c9280be10b59d8cfadcb74aecb74dff5ed4a8746342a65bdd9b186746a17edfca492e824037d291694ce61c359621a3e9dbf3cabd02b SHA512 30cb62c353237f9e9c03bab362195fbb24f01cbf9bff6e0d3ed1765bdd2402f5f324de7c62fd5117b06eb0a87b194ee476df6a2da1ad778521218e785dfbbcd8 EBUILD rapidfuzz-3.1.2.ebuild 1212 BLAKE2B 34efa40553e76336f3cd31ed176d9f1ded6c137ced880e63fb3c1644068d6129a5ef11908357be8510f4dbdddcb781aad8a8b184787e5dc6f134309bca68cf41 SHA512 76c49ee7537e3f25d1a252712058919b3311805bf2039aa5876a6cde6b17bd0b4a386062d722c18661272a097d5c14f50eaffce0e2d67a5a6e6c580be086e941 EBUILD rapidfuzz-3.2.0.ebuild 1225 BLAKE2B 0c1d62dde943fbce8322234df770b2befdd184bf3e8bfd50eea7a105255a53ff577bf61689264fe46584af3f7a21f942c33f2c1c706fd9dac688dddd41a82b0a SHA512 f3ae71a9f9d360345ca050527a9d4bc6ad78177c64cc5cbb30cb4130cbc04d6d24cc2a7d146762cdb9b52df1389b09856cd37e434920e93e0c253c3d8e3fcca7 EBUILD rapidfuzz-3.3.0.ebuild 1219 BLAKE2B a6944b7b3b0c25a8a56a10a33b19d882a43bc659f59975fb3b1645ed53cf270bf40968a09eb183e754e0693b84c2e39994ab648aadf47cf0386a41e8645e641f SHA512 08a2271491eebd3896d1971d0812699d1eeea7ff348e5c536405d76bf469ab60530fde2ab3df96aa387c46928ddddef7f340bf41805edf5d4f04a9e7834e049c EBUILD rapidfuzz-3.3.1.ebuild 1225 BLAKE2B 0c1d62dde943fbce8322234df770b2befdd184bf3e8bfd50eea7a105255a53ff577bf61689264fe46584af3f7a21f942c33f2c1c706fd9dac688dddd41a82b0a SHA512 f3ae71a9f9d360345ca050527a9d4bc6ad78177c64cc5cbb30cb4130cbc04d6d24cc2a7d146762cdb9b52df1389b09856cd37e434920e93e0c253c3d8e3fcca7 +EBUILD rapidfuzz-3.4.0.ebuild 1225 BLAKE2B c0fa149bf273c9a8d51e47d72e38d1304d68c6b0ab1400c757b4fe4cfdac8310a58bf5a399507afacc73fc7d2138044d12a9dabb909e44d756a4df56e583021e SHA512 78d01ae760be9c8a0b4b58d8fe698e46ced9dfe1dc8bc081fd6459a37152a63c70c3fb06b5ecf6be43345e245d064a59fc970af24645b40c818b2cc91ca26e78 MISC metadata.xml 374 BLAKE2B e6ee89a9850276b8c22c9bc851ebea2cde2ea696d122d70c6465e09a9371c59f81d1976b3253e8ee90afae5e3e30e993481b402058bac0c58ec01f71a0b7c3b4 SHA512 9a39c4bcf8e8de0a6d6a356a9aeb415f8f49667caf5716eee50bf251f1fd53bb076e817fac0b15bf64e65c1b9625c78810da61a5d96b273a20b2669a18084d6e diff --git a/dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild b/dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild new file mode 100644 index 000000000000..c8d2f8c7faa4 --- /dev/null +++ b/dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +# custom wrapper over setuptools +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Rapid fuzzy string matching in Python using various string metrics" +HOMEPAGE=" + https://github.com/maxbachmann/RapidFuzz/ + https://pypi.org/project/rapidfuzz/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# all these are header-only libraries +DEPEND=" + >=dev-cpp/taskflow-3.0.0 + >=dev-cpp/rapidfuzz-cpp-2.1.1 + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/rapidfuzz-capi[${PYTHON_USEDEP}] + >=dev-python/scikit-build-0.16.2[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # sterilize build flags + sed -i -e '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt || die + # remove bundled libraries + rm -r extern || die + + distutils-r1_src_prepare + + # TODO: re-cythonnize when we can reliably dep on Cython >= 3 + export RAPIDFUZZ_BUILD_EXTENSION=1 +} |