Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= cryptography |
4 |
PORTNAME= cryptography |
5 |
PORTVERSION= 2.6.1 |
5 |
PORTVERSION= 2.9.2 |
6 |
CATEGORIES= security python |
6 |
CATEGORIES= security python |
7 |
MASTER_SITES= CHEESESHOP |
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 16-23
Link Here
|
16 |
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE.BSD |
16 |
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE.BSD |
17 |
|
17 |
|
18 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8:devel/py-cffi@${PY_FLAVOR} |
18 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8:devel/py-cffi@${PY_FLAVOR} |
19 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=0.21.0:devel/py-asn1crypto@${PY_FLAVOR} \ |
19 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8:devel/py-cffi@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}cffi>=1.8:devel/py-cffi@${PY_FLAVOR} \ |
|
|
21 |
${PY_ENUM34} \ |
20 |
${PY_ENUM34} \ |
22 |
${PY_IPADDRESS} \ |
21 |
${PY_IPADDRESS} \ |
23 |
${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six@${PY_FLAVOR} |
22 |
${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six@${PY_FLAVOR} |
Lines 28-34
Link Here
|
28 |
${PYTHON_PKGNAMEPREFIX}pytest>=3.6.0:devel/py-pytest@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}pytest>=3.6.0:devel/py-pytest@${PY_FLAVOR} \ |
29 |
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} |
28 |
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} |
30 |
|
29 |
|
31 |
# Python 2.7, 3.4-3.7 |
30 |
# Python 2.7, 3.5-3.8 |
32 |
USES= compiler:env python ssl |
31 |
USES= compiler:env python ssl |
33 |
USE_PYTHON= autoplist concurrent distutils |
32 |
USE_PYTHON= autoplist concurrent distutils |
34 |
|
33 |
|
Lines 37-42
Link Here
|
37 |
|
36 |
|
38 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
39 |
|
38 |
|
|
|
39 |
# OpenSSL 1.0.2t got some curve matching parameter code backported before it |
40 |
# has reached its End-of-Life and security/py-cryptography already had some |
41 |
# code to handle this case, but it assumed OpenSSL 1.1.0+ . |
42 |
# |
43 |
# This has been fixed in 3.0-23-g241f8450 of security/py-cryptography and to be |
44 |
# clear: It isn't a security fix but rather a workaround to handle unnamed but |
45 |
# really named curves with OpenSSL 1.0.2t/u . |
46 |
.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == "base" |
47 |
. if ${OSVERSION} >= 1103500 && ${OSVERSION} < 1200085 |
48 |
# 1103500 352193 2019-09-10 11.3-STABLE got OpenSSL 1.0.2t |
49 |
# 1200085 339270 2018-10-19 12.0-STABLE got OpenSSL 1.1.1 |
50 |
EXTRA_PATCHES= ${PATCHDIR}/openssl102u |
51 |
. endif |
52 |
.endif |
53 |
|
40 |
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42 |
54 |
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42 |
41 |
post-patch: |
55 |
post-patch: |
42 |
@${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' \ |
56 |
@${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' \ |
Lines 47-52
Link Here
|
47 |
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cryptography/hazmat/bindings/*.so |
61 |
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cryptography/hazmat/bindings/*.so |
48 |
|
62 |
|
49 |
do-test: |
63 |
do-test: |
50 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
64 |
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v |
|
|
65 |
#@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v |
51 |
|
66 |
|
52 |
.include <bsd.port.post.mk> |
67 |
.include <bsd.port.post.mk> |