2021-05-22 12:18:21 +02:00
|
|
|
PORTNAME= jq
|
2022-02-14 00:15:40 +01:00
|
|
|
PORTVERSION= 1.2.2
|
2021-05-22 12:18:21 +02:00
|
|
|
CATEGORIES= textproc python
|
2021-08-07 17:29:41 +02:00
|
|
|
MASTER_SITES= CHEESESHOP 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
|
|
|
|
|
|
|
|
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-02-14 00:15:40 +01:00
|
|
|
USES= localbase python:3.7-3.10
|
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
|
|
|
|
${MV} ${WRKDIR}/jq-1.2.1/* ${WRKDIR}/jq-1.2.2/
|
|
|
|
|
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
|
|
|
|
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>
|