diff options
Diffstat (limited to 'dev-python/pysimdjson')
-rw-r--r-- | dev-python/pysimdjson/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pysimdjson/files/pysimdjson-5.0.2-system-lib.patch | 72 | ||||
-rw-r--r-- | dev-python/pysimdjson/files/pysimdjson-5.0.2-tests.patch | 13 | ||||
-rw-r--r-- | dev-python/pysimdjson/pysimdjson-5.0.2-r1.ebuild | 59 |
4 files changed, 0 insertions, 148 deletions
diff --git a/dev-python/pysimdjson/Manifest b/dev-python/pysimdjson/Manifest index bdf359e31741..cfbb0c99cca4 100644 --- a/dev-python/pysimdjson/Manifest +++ b/dev-python/pysimdjson/Manifest @@ -1,8 +1,4 @@ -AUX pysimdjson-5.0.2-system-lib.patch 2037 BLAKE2B 318344e7f95cb29612e53a075abc835ee7d3741fb47f4555bf4fc9bfdc9548f8be9b4cb726290e9296d27db45fcfe86440af93a22f9527e72dc2656c19ba28fa SHA512 01a70c4b1ee1979ba6b2e3f83eeb0da31ee8bc4fb3c727c79e35a4eebf34201aff14f2b7e5a90d0bf349d1f46d90e43d7b01159cb0637a868d99c5158d719b22 -AUX pysimdjson-5.0.2-tests.patch 599 BLAKE2B e9fad71abd78fe5c55525dc7bc579c0aaa5b59af07168ff600763768d2765928ee8692be480bef044b026abd4346293785b10c8afcaacc3351a2d3140b318b17 SHA512 4920f6e5186249e1f68829fc6619224e3ecdc872c4d47eb2069f9e76b39a45d704aae455038ff8fde741890b0c0cf8fa153a31a728b82b8e471bb29e79efaae3 AUX pysimdjson-6.0.2-system-lib.patch 564 BLAKE2B 8d1a4391ce73312552801b34fe1550ac3459dd586da3399b22648f672d2fe284ffaff3bdcda4841ad062bcdcea7698f74050319496cee1e6e65d4d1d07478866 SHA512 348d7b2bb8837b6718cbd103e2f3bc70c049b9f6f9eaac0bb39d44b009e7964f4554c6fa3861bb3f66bd1fbf6a914b1d630b3b5aefae8e4d3b4620df8962aaba -DIST pysimdjson-5.0.2.gh.tar.gz 3828487 BLAKE2B 6197fa9adaa353df82def9f56f821e8b7f9ec955769e9ac28d990542fc0661f3afbe9cd8f7abfc55cdce8eac94c0e5fc78dba9102c7dcfc4e3c4307d0a6fc5bf SHA512 bd7ba4d6f95967f3cd086077406a2c65b895016c9baf16fa9be6dbf77d31487ad5c40e9e3dd2496070605ef37c6a1dc75f3c1b4c96ddc8465132fbcdbde77fd3 DIST pysimdjson-6.0.2.gh.tar.gz 4493696 BLAKE2B 18f107fa5db762813e90dbf788d54ee24f823e177d2529f5311ef2b35320a45fd698ef6f8863c45ffad96c116ad5240eaf5a6724a3030578f89111cc40f24897 SHA512 ef8856dd137780a4345539b1604af34757b58a4b4d11854e420ad2e855f3e3f251b2ba6296c04d1bf2b71f095ca95fe95e9076e8740e98c7c4404a57df3617ba -EBUILD pysimdjson-5.0.2-r1.ebuild 1212 BLAKE2B 66fe11879d3032bf0f5be65c10229d9dd4585969e4a428f60dcfe277e4ca5de249d74ac93e2ed758cc77af96351a38ce798c2684a1845f28885e928a7fd2f086 SHA512 502ea0657231a5f61c665e7c4c9fa12dcbfc310abb07ca022bf6b17b4961d5c64eb685cb2385ac4a80c26899614f6bc53d67d5a4374a758e0dc48d2bcdd451fd EBUILD pysimdjson-6.0.2.ebuild 1075 BLAKE2B f909b19c119dc699bd293e0cba777369e2e5ed269bad7d682713ede025542f54596ddd37f1cbb9b4a189a17601bbcffb8444c16cf07eb3a55b14ff742ef041e8 SHA512 3a227bf4fb3313efd87e6c5ef175ef7105a4748ef8ec3c4ff453782d0d55ea265f97f9f3025ebcd7d61cef887f1ac8325fa0876412e48b29792676264ccbfa3f MISC metadata.xml 481 BLAKE2B 003dcb11f0a4855cd8dd86dad350442af6d410e7e1a9eb73ed986f970f12296c9fb48534c15b838a782eef814c2525e26cebf1de3e8cc31fc985d0d7d266d985 SHA512 4bfb851c32fbe0691f89e9fe18e03a96d54bb165e6853b75cef1c03645d562c8ebd33bf220966fe3e645d807cc68944a7d9732f363eb9e8fc686e9056c33c4d7 diff --git a/dev-python/pysimdjson/files/pysimdjson-5.0.2-system-lib.patch b/dev-python/pysimdjson/files/pysimdjson-5.0.2-system-lib.patch deleted file mode 100644 index 0a419e5dbc40..000000000000 --- a/dev-python/pysimdjson/files/pysimdjson-5.0.2-system-lib.patch +++ /dev/null @@ -1,72 +0,0 @@ -diff --git a/setup.py b/setup.py -index 865544d..24fdc36 100644 ---- a/setup.py -+++ b/setup.py -@@ -1,5 +1,6 @@ - import os.path - import platform -+import itertools - - from setuptools import setup, find_packages, Extension - -@@ -17,11 +18,18 @@ with open(os.path.join(root, 'README.md'), 'rb') as readme: - - system = platform.system() - -+libraries = [] -+extra_sources = [] - extra_compile_args = [] - - if system == 'Darwin': - extra_compile_args.append('-std=c++11') - -+if os.getenv('BUILD_WITH_SYSTEM_LIB'): -+ libraries.append('simdjson') -+else: -+ extra_sources.append('simdjson/simdjson.cpp') -+ - if os.getenv('BUILD_WITH_CYTHON') and not CYTHON_AVAILABLE: - print( - 'BUILD_WITH_CYTHON environment variable is set, but cython' -@@ -49,12 +57,15 @@ if os.getenv('BUILD_WITH_CYTHON') and CYTHON_AVAILABLE: - extensions = cythonize([ - Extension( - 'csimdjson', -- [ -- 'simdjson/simdjson.cpp', -- 'simdjson/util.cpp', -- 'simdjson/csimdjson.pyx' -- ], -+ list(itertools.chain( -+ [ -+ 'simdjson/util.cpp', -+ 'simdjson/csimdjson.pyx' -+ ], -+ extra_sources -+ )), - define_macros=macros, -+ libraries=libraries, - extra_compile_args=extra_compile_args - ) - ], compiler_directives=compiler_directives, force=force) -@@ -62,12 +73,15 @@ else: - extensions = [ - Extension( - 'csimdjson', -- [ -- 'simdjson/simdjson.cpp', -- 'simdjson/util.cpp', -- 'simdjson/csimdjson.cpp' -- ], -+ list(itertools.chain( -+ [ -+ 'simdjson/util.cpp', -+ 'simdjson/csimdjson.cpp' -+ ], -+ extra_sources -+ )), - extra_compile_args=extra_compile_args, -+ libraries=libraries, - language='c++' - ) - ] diff --git a/dev-python/pysimdjson/files/pysimdjson-5.0.2-tests.patch b/dev-python/pysimdjson/files/pysimdjson-5.0.2-tests.patch deleted file mode 100644 index a70143b134f6..000000000000 --- a/dev-python/pysimdjson/files/pysimdjson-5.0.2-tests.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/simdjson/csimdjson.pyx b/simdjson/csimdjson.pyx -index 57c5f35..91182fc 100644 ---- a/simdjson/csimdjson.pyx -+++ b/simdjson/csimdjson.pyx -@@ -480,7 +480,7 @@ cdef class Parser: - # a stride in the next step will cause a (potentially - # confusing) IndexError. This isn't a very good error message, - # but it's identical to the one simdjson would have raised. -- raise ValueError('Empty: no JSON found') -+ raise ValueError('EMPTY: no JSON found') - - return element_to_primitive( - self, diff --git a/dev-python/pysimdjson/pysimdjson-5.0.2-r1.ebuild b/dev-python/pysimdjson/pysimdjson-5.0.2-r1.ebuild deleted file mode 100644 index 18c2cdbf0cf6..000000000000 --- a/dev-python/pysimdjson/pysimdjson-5.0.2-r1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 2020-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) -DISTUTILS_EXT=1 -inherit distutils-r1 - -DESCRIPTION="Python bindings for simdjson" -HOMEPAGE=" - https://github.com/TkTech/pysimdjson/ - https://pypi.org/project/pysimdjson/ -" -SRC_URI=" - https://github.com/TkTech/${PN}/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND=" - >=dev-libs/simdjson-2.0.1:= - test? ( dev-libs/simdjson[all-impls(-)] ) -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] -" - -PATCHES=( - "${FILESDIR}/pysimdjson-5.0.2-system-lib.patch" - "${FILESDIR}/pysimdjson-5.0.2-tests.patch" -) - -distutils_enable_tests pytest - -src_prepare() { - # benchmarks aren't run - sed -i -e 's:pytest-benchmark:: ; /license_file/ d' setup.cfg || die - # force regen - rm simdjson/csimdjson.cpp || die - # unbundle - > simdjson/simdjson.cpp || die - echo "#include_next <simdjson.h>" > simdjson/simdjson.h || die - - distutils-r1_src_prepare - - export BUILD_WITH_CYTHON=1 BUILD_WITH_SYSTEM_LIB=1 -} - -python_compile() { - distutils-r1_python_compile --libraries simdjson -} |