This is a follow up to the commit 230fb2661c78, which updated some ports' dependencies on devel/py-lxml to devel/py-lxml5. It was an attempt to follow the dependency change of www/py-beautifulsoup. However, the switch was incomplete and broke some other ports. It has turned out that the ports depending on devel/py-lxml (at version 4.9.3) does not limit their dependencies' upper bound to 4.x except for one (devel/py-pymaven-patch). So updating them to devel/py-lxml5 (at version 5.4.0) should cause no harm. This commit switch dependencies of all the ports (except devel/py-pymaven-patch) to devel/py-lxml5 avoid potential conflicts. Co-authored-by: Daniel Engberg <diizzy@FreeBSD.org> PR: 287144, 288047 Reported by: makc (via ports-committers), vvd (PR 288047), diizzy (PR 287144) Approved by: portmgr (chase dependency change, unbreak build) Fixes: 230fb2661c78 (*/*: update dependency on devel/py-lxml to devel/py-lxml5)
47 lines
1.9 KiB
Makefile
47 lines
1.9 KiB
Makefile
PORTNAME= cyclonedx-python-lib
|
|
PORTVERSION= 10.4.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= PYPI \
|
|
https://github.com/CycloneDX/cyclonedx-python-lib/releases/download/v${PORTVERSION}/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= cyclonedx_python_lib-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Library for producing CycloneDX SBOM (Software Bill of Materials) files
|
|
WWW= https://github.com/CycloneDX/cyclonedx-python-lib
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}license-expression>=30<31:textproc/py-license-expression@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}packageurl-python>=0.11<2:textproc/py-packageurl-python@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}py-serializable>=2.0.0<3:devel/py-py-serializable@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.4.0<3:devel/py-sortedcontainers@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist concurrent pep517
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= JSON_VALIDATION VALIDATION XML_VALIDATION
|
|
JSON_VALIDATION_DESC= JSON validation
|
|
VALIDATION_DESC= JSON and XML validation
|
|
XML_VALIDATION_DESC= XML validation
|
|
|
|
JSON_VALIDATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.18<5:devel/py-jsonschema@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}referencing>=0.28.4:devel/py-referencing@${PY_FLAVOR}
|
|
VALIDATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.18<5:devel/py-jsonschema@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}lxml5>=4<7:devel/py-lxml5@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}referencing>=0.28.4:devel/py-referencing@${PY_FLAVOR}
|
|
XML_VALIDATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml5>=4<7:devel/py-lxml5@${PY_FLAVOR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 31300
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.6<5:devel/py-typing-extensions@${PY_FLAVOR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|