From 1e503b035565b972e8d7785e9e290ed3eee651d9 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 13 May 2024 22:07:31 +0800 Subject: [PATCH] security/py-cryptography-legacy: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change --- security/py-cryptography-legacy/Makefile | 8 +++++--- .../py-cryptography-legacy/files/patch-pyproject.toml | 10 ++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 security/py-cryptography-legacy/files/patch-pyproject.toml diff --git a/security/py-cryptography-legacy/Makefile b/security/py-cryptography-legacy/Makefile index 0e9421c19323f..3ce9986827278 100644 --- a/security/py-cryptography-legacy/Makefile +++ b/security/py-cryptography-legacy/Makefile @@ -1,6 +1,6 @@ PORTNAME= cryptography PORTVERSION= 3.4.8 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= security python MASTER_SITES= PYPI @@ -16,7 +16,9 @@ LICENSE_COMB= dual LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.APACHE LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE.BSD -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.12:devel/py-cffi@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.12:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.12:devel/py-cffi@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography-vectors>=${PORTVERSION}:security/py-cryptography-vectors@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=1.11.4:devel/py-hypothesis@${PY_FLAVOR} \ @@ -29,7 +31,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography-vectors>=${PORTVERSION}:securi ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} USES= compiler:env cpe python ssl -USE_PYTHON= autoplist concurrent distutils pytest +USE_PYTHON= autoplist concurrent pep517 pytest CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} diff --git a/security/py-cryptography-legacy/files/patch-pyproject.toml b/security/py-cryptography-legacy/files/patch-pyproject.toml new file mode 100644 index 0000000000000..155640ff78c1b --- /dev/null +++ b/security/py-cryptography-legacy/files/patch-pyproject.toml @@ -0,0 +1,10 @@ +--- pyproject.toml.orig 2021-08-24 17:17:17 UTC ++++ pyproject.toml +@@ -6,7 +6,6 @@ requires = [ + "wheel", + # Must be kept in sync with the `setup_requirements` in `setup.py` + "cffi>=1.12; platform_python_implementation != 'PyPy'", +- "setuptools-rust>=0.11.4", + ] + build-backend = "setuptools.build_meta" +