2021-05-22 12:18:21 +02:00
|
|
|
PORTNAME= jq
|
2022-09-23 22:04:40 +02:00
|
|
|
PORTVERSION= 1.3.0
|
2021-05-22 12:18:21 +02:00
|
|
|
CATEGORIES= textproc python
|
2023-01-11 16:47:15 +01:00
|
|
|
MASTER_SITES= PYPI LOCAL/mandree:mandree
|
2021-05-22 12:18:21 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2021-08-07 17:29:41 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} jq-1.2.1-tests${EXTRACT_SUFX}:mandree
|
2021-05-22 12:18:21 +02:00
|
|
|
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
|
|
COMMENT= jq.py: a lightweight and flexible JSON processor
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/mwilliamson/jq.py
|
2021-05-22 12:18:21 +02:00
|
|
|
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2021-08-07 17:29:41 +02:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2021-05-22 12:18:21 +02:00
|
|
|
LIB_DEPENDS= libjq.so:textproc/jq \
|
|
|
|
libonig.so:devel/oniguruma
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
|
2021-08-07 17:29:41 +02:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
2021-05-22 12:18:21 +02:00
|
|
|
|
2022-09-23 22:04:40 +02:00
|
|
|
USES= localbase python
|
2021-05-22 12:18:21 +02:00
|
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
|
2022-02-14 00:15:40 +01:00
|
|
|
post-extract:
|
|
|
|
# move tests into place - unchanged between 1.2.1 and 1.2.2
|
2022-09-23 22:04:40 +02:00
|
|
|
${MV} ${WRKDIR}/jq-1.2.1/* ${WRKSRC}
|
2022-02-14 00:15:40 +01:00
|
|
|
|
2021-05-22 12:18:21 +02:00
|
|
|
post-install:
|
2021-06-04 23:45:15 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jq*.so
|
2021-05-22 12:18:21 +02:00
|
|
|
|
2022-09-23 22:04:40 +02:00
|
|
|
.if defined(_MANDREE_FORCE_POUDRIERE_TEST_)
|
|
|
|
BUILD_DEPENDS+= ${TEST_DEPENDS}
|
|
|
|
pre-package:
|
|
|
|
${MAKE} test
|
|
|
|
.endif
|
|
|
|
|
2021-08-07 17:29:41 +02:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && ${SETENV} \
|
|
|
|
PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} \
|
|
|
|
${PYTHON_CMD} -m pytest -v tests/
|
|
|
|
|
2021-05-22 12:18:21 +02:00
|
|
|
.include <bsd.port.mk>
|