git: be626dd64568 - main - textproc/py-jq: update to 1.3.0

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Fri, 23 Sep 2022 20:06:23 UTC
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=be626dd64568a84be0234dc44f6acace02d8fca4

commit be626dd64568a84be0234dc44f6acace02d8fca4
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2022-09-23 20:04:40 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2022-09-23 20:06:21 +0000

    textproc/py-jq: update to 1.3.0
    
    Supports Python 3.11. It would include oniguruma and jq libs in its
    sources, but let's continue using our separate ports for now.
    
    Add support for forcing self-tests under poudriere, masked
    by a variable that I can set from /usr/local/etc/poudriere.d/make.conf.
---
 textproc/py-jq/Makefile             | 12 +++++++++---
 textproc/py-jq/distinfo             |  6 +++---
 textproc/py-jq/files/patch-setup.py | 10 +++++-----
 3 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/textproc/py-jq/Makefile b/textproc/py-jq/Makefile
index 05f8e0f6bb1d..383b0888bc2b 100644
--- a/textproc/py-jq/Makefile
+++ b/textproc/py-jq/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	jq
-PORTVERSION=	1.2.2
+PORTVERSION=	1.3.0
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP LOCAL/mandree:mandree
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -22,16 +22,22 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR}
 		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 
-USES=		localbase python:3.7-3.10
+USES=		localbase python
 USE_PYTHON=	autoplist distutils
 
 post-extract:
 		# move tests into place - unchanged between 1.2.1 and 1.2.2
-		${MV} ${WRKDIR}/jq-1.2.1/* ${WRKDIR}/jq-1.2.2/
+		${MV} ${WRKDIR}/jq-1.2.1/* ${WRKSRC}
 
 post-install:
 		${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jq*.so
 
+.if defined(_MANDREE_FORCE_POUDRIERE_TEST_)
+BUILD_DEPENDS+=	${TEST_DEPENDS}
+pre-package:
+		${MAKE} test
+.endif
+
 do-test:
 		cd ${WRKSRC} && ${SETENV} \
 			PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} \
diff --git a/textproc/py-jq/distinfo b/textproc/py-jq/distinfo
index 068a64d9cdfc..873578994f30 100644
--- a/textproc/py-jq/distinfo
+++ b/textproc/py-jq/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1644792897
-SHA256 (jq-1.2.2.tar.gz) = 86ace2c43f17b5a64a38887ede72c7b8ce2ab0bcfa81ee28ff6434e935010abe
-SIZE (jq-1.2.2.tar.gz) = 72440
+TIMESTAMP = 1663888297
+SHA256 (jq-1.3.0.tar.gz) = 96b66f41a91c9794f8051cc32d8fd3206c6409693f0076b22eacb4faa0bc504f
+SIZE (jq-1.3.0.tar.gz) = 2710829
 SHA256 (jq-1.2.1-tests.tar.gz) = 7648084f434896eda31bb5e09a4f6d32ebb561660c95655e08346c33be9b3ece
 SIZE (jq-1.2.1-tests.tar.gz) = 2856
diff --git a/textproc/py-jq/files/patch-setup.py b/textproc/py-jq/files/patch-setup.py
index a2237eb148a5..650d559096ed 100644
--- a/textproc/py-jq/files/patch-setup.py
+++ b/textproc/py-jq/files/patch-setup.py
@@ -1,15 +1,15 @@
---- setup.py.orig	2021-05-03 13:00:29 UTC
+--- setup.py.orig	2022-09-19 15:51:09 UTC
 +++ setup.py
-@@ -43,8 +43,6 @@ class jq_build_ext(build_ext):
+@@ -36,8 +36,6 @@ class jq_build_ext(build_ext):
      def run(self):
-         if not os.path.exists(dependency_path(".")):
-             os.makedirs(dependency_path("."))
+         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):
-@@ -103,11 +101,7 @@ jq_extension = Extension(
+@@ -87,11 +85,7 @@ jq_extension = Extension(
      "jq",
      sources=["jq.c"],
      include_dirs=[os.path.join(jq_lib_dir, "src")],