summaryrefslogtreecommitdiff
path: root/dev-python/jq
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-09 10:40:04 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-09 10:40:04 +0100
commitb426a5cef3f0ebe3389686a1c145a834d3a1e120 (patch)
treeeee77f741af6979f620416c573e5203eab81c9c3 /dev-python/jq
parent97b176c73aa78bd33234884388e3978f520161c3 (diff)
gentoo auto-resync : 09:09:2022 - 10:40:04
Diffstat (limited to 'dev-python/jq')
-rw-r--r--dev-python/jq/Manifest2
-rw-r--r--dev-python/jq/jq-1.2.3.ebuild39
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/jq/Manifest b/dev-python/jq/Manifest
index b8b760117a8c..a73062c60e31 100644
--- a/dev-python/jq/Manifest
+++ b/dev-python/jq/Manifest
@@ -1,7 +1,9 @@
DIST jq-1.2.1.gh.tar.gz 10321 BLAKE2B 8bc2c88ae553dd53137c11d4f599e01398d21811a02b4f33f81aeeafa9009f58a56074c0bcadcc6382d86d2c7ada792d442f9c660787e131d0e85c95fb7cab32 SHA512 0b6dda04c0b3c63a5bf41f8a73dedc3cd889683f3e89c99cbf258c839f35f66d19a6da5cf4096148cd17a3fb1a58ba0e10d052ce46a1a18af845910e00ff5d86
DIST jq-1.2.2.gh.tar.gz 10436 BLAKE2B 09514ce3a9afa8df4e61b29fc17f0d875db046ddc98332f13d702defd443e4e2ac1c612042eab82e620298d236a548625f5578d04dbeb681858bc10243c878a1 SHA512 632c5ebaf2607cc609ee4cfbdc0d68dff96e6daff916d77381f1596f3b1ca494c962cc56127376ef21fb931ab1333b666b01a599b97eab8a94416d1caec65248
+DIST jq-1.2.3.gh.tar.gz 10457 BLAKE2B 72ebe4137d21bfd06dce337da1c7bcbfaa10ea55d06d128c901daa605557d7f6bd3bc219242127dfd36908089f312a6120306028bccb66e03274194e179175ee SHA512 c942c6cd6a49d677bc9095c8192819c40bf7751e6dff4e9bde5af97398dd1ddc62e3492ab936cbe458d7cffbfab3b421d5db7654c5d02af48bffbac99e7c159b
DIST jq-1.6.tar.gz 1750584 BLAKE2B c9be1314e9d027247de63492ee362e996ef85faf45a47ee421cad95ebde9188bff8d3fc7db64e717ab922e1052f3b1c1500f5589fc5b2199ab66effb000e442d SHA512 5da71f53c325257f1f546a2520fe47828b495c953270df25ea0e37741463fdda72f0ba4d5b05b25114ec30f27a559344c2b024bacabf610759f4e3e9efadb480
DIST onig-6.9.4.tar.gz 908702 BLAKE2B e6e9939f284569408ba01b8551960bc939bbfdca425f8470499f5bb83ead7b6b09898f6f6a09d5d8c26d74d5416f6e5e9e2f00fbe7aa9eb820edb8aa4a3050cc SHA512 ed8f42f6893966c0ee3c168b4fdbcb04b2286ad69ecab43a754c1dbc8fc4656e01319991d776d7144b6a3f90d050781b321432278d83c74c9565c2743851c85b
EBUILD jq-1.2.1.ebuild 1178 BLAKE2B e5a7d35888f68eb74b78023372c5077b56ab9628c54af0643f8ba11d8cb45b9dcefdb2256b83981e60fdc4d54d58d99252c965b09fc44091479400b80b22bfac SHA512 2a4403d945073c6adbfc81e4fa4ddfe5da88e25e1cf98c6eb67e3a8b0dce4308cf10e9824fe090211b7f1a21829bbbc9e774126d1ba29b47b78ec7d577e6d679
EBUILD jq-1.2.2.ebuild 1213 BLAKE2B 24d10d394951555098d0cb151e079f90799dd034d267c4a9b59f91b567e511938317a1ccaabbc8ea0ea086f88a09f104827965d22dd87379c3556cfc970a18a1 SHA512 d7adccf6013e3bb96ed19c60a3a9dc8672e629758338349fc45d11e067714bf9d3cba0034e7b41d05a5db1f1690156d77aa9e3a6ba4ce890cef36a2b0bb66fd2
+EBUILD jq-1.2.3.ebuild 1215 BLAKE2B 0f5795fef7fdbc635420af0fcd0065b758c2f423eb26b93cc94caf02c1e0baab86e0e41ffc02e0453d04b7a5b214c3638d6f1e6f086bd594ebf63f5e1ad4ee40 SHA512 444b8006face7363293034821ff285a373c9a8ca7971f905111164e2bdc12dcb45545268ea1c354fa15201433a8e702a8bce05e92ff0cc8a97ab675844f7f6eb
MISC metadata.xml 367 BLAKE2B b17eb2d9c460774d98ba18faf8a09d1c9c711433d0dfcff08df4f769411db66fdb2241d12ebc706664cdef98d9dbeb290614446112f53ecede571f77aa085174 SHA512 399b63613673deaef747fd380d6bdc086a4e4b57c5509b15fd6e031ea613ccf59641c95064fc7dbbf61f8d879fe03faf7e8298e4e8792a8a0b7a2bb3225e77c9
diff --git a/dev-python/jq/jq-1.2.3.ebuild b/dev-python/jq/jq-1.2.3.ebuild
new file mode 100644
index 000000000000..5eb065efdf5f
--- /dev/null
+++ b/dev-python/jq/jq-1.2.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for jq"
+HOMEPAGE="https://github.com/mwilliamson/jq.py"
+SRC_URI="
+ https://github.com/mwilliamson/jq.py/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
+ https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz
+ https://github.com/kkos/oniguruma/releases/download/v6.9.4/onig-6.9.4.tar.gz"
+S="${WORKDIR}/jq.py-${PV}"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ sed -e 's|import requests|#\0|' \
+ -e 's|urlretrieve(source_url, tarball_path)|shutil.copyfile(source_url, tarball_path)|' \
+ -e "s|source_url=.*kkos/oniguruma.*|source_url=\"${DISTDIR}/onig-6.9.4.tar.gz\",|" \
+ -e "s|source_url=.*stedolan/jq.*|source_url=\"${DISTDIR}/jq-1.6.tar.gz\",|" \
+ -i setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ # Cython compilation isn't part of setup.py, so do it manually
+ "${EPYTHON}" -m cython -3 jq.pyx -o jq.c || die
+ distutils-r1_python_compile
+}