This commit is contained in:
ziggi
2020-05-22 06:01:24 +00:00
parent 2327488661
commit a8a418c011
37 changed files with 364 additions and 38 deletions

View File

@@ -1,8 +1,8 @@
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD: head/security/py-cryptography/Makefile 476488 2018-08-06 03:25:20Z koobs $
# $FreeBSD: head/security/py-cryptography/Makefile 496506 2019-03-21 19:41:59Z sunpoet $
PORTNAME= cryptography
PORTVERSION= 2.3
PORTVERSION= 2.6.1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,17 +10,15 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Cryptographic recipes and primitives for Python developers
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.7:python/py-cffi@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}idna>=2.1:python/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}asn1crypto>=0.21.0:python/py-asn1crypto@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.4.1:python/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cffi>=1.7:python/py-cffi@${PY_FLAVOR}
# ${PY_ENUM34} ${PY_IPADDRESS}
# Python 2.7, 3.4-3.6
USES= compiler:env python
USE_PYTHON= autoplist distutils
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8:python/py-cffi@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=0.21.0:python/py-asn1crypto@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cffi>=1.8:python/py-cffi@${PY_FLAVOR} \
# ${PY_ENUM34} \
# ${PY_IPADDRESS} \
${PYTHON_PKGNAMEPREFIX}six>=1.4.1:python/py-six@${PY_FLAVOR}
# Python 2.7, 3.4-3.7
USES= compiler:env python ssl
USE_PYTHON= autoplist concurrent distutils
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
@@ -29,11 +27,14 @@ LDFLAGS+= -L${OPENSSLLIB}
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
post-patch:
${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' \
@${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' \
${WRKSRC}/src/_cffi_src/build_openssl.py
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cryptography/hazmat/bindings/*.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
TIMESTAMP = 1532336711
SHA256 (cryptography-2.3.tar.gz) = c132bab45d4bd0fff1d3fe294d92b0a6eb8404e93337b3127bdec9f21de117e6
SIZE (cryptography-2.3.tar.gz) = 449464
TIMESTAMP = 1551354433
SHA256 (cryptography-2.6.1.tar.gz) = 26c821cbeb683facb966045e2064303029d572a87ee69ca5a1bf54bf55f93ca6
SIZE (cryptography-2.6.1.tar.gz) = 491580