python3-jq: update to 1.6.0.

This commit is contained in:
RunningDroid 2024-01-10 17:32:53 -05:00 committed by Leah Neukirchen
parent c337b3b97b
commit f277fc5d1c
2 changed files with 5 additions and 27 deletions

View File

@ -1,24 +0,0 @@
--- a/setup.py.orig 2022-09-19 15:51:09 UTC
+++ b/setup.py
@@ -36,8 +36,6 @@ class jq_build_ext(build_ext):
def run(self):
if not os.path.exists(_dep_build_path(".")):
os.makedirs(_dep_build_path("."))
- self._build_oniguruma()
- self._build_libjq()
build_ext.run(self)
def _build_oniguruma(self):
@@ -87,11 +85,7 @@ jq_extension = Extension(
"jq",
sources=["jq.c"],
include_dirs=[os.path.join(jq_lib_dir, "src")],
- extra_link_args=["-lm"],
- extra_objects=[
- os.path.join(jq_lib_dir, ".libs/libjq.a"),
- os.path.join(oniguruma_lib_install_dir, "lib/libonig.a"),
- ],
+ extra_link_args=["-lm", "-ljq", "-lonig"],
)
setup(

View File

@ -1,7 +1,7 @@
# Template file for 'python3-jq'
pkgname=python3-jq
version=1.5.0
revision=2
version=1.6.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython0.29"
makedepends="python3-devel jq-devel oniguruma-devel"
@ -12,7 +12,9 @@ license="BSD-2-Clause"
homepage="https://pypi.org/project/jq/"
changelog="https://raw.githubusercontent.com/mwilliamson/jq.py/master/CHANGELOG.rst"
distfiles="https://github.com/mwilliamson/jq.py/archive/${version}.tar.gz"
checksum=d8ef4b16bc9c48f2d257c419454feb3ba629e2d34a9a288270d4c8aad38b8d83
checksum=a06131057b4b0794d871c0718e796b23b942b20a19acd4cba13f7cbbb07d0aab
export JQPY_USE_SYSTEM_LIBS=1
pre_build() {
cython -X language_level=3 jq.pyx