mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-11 11:01:18 +02:00
create bsd12 branch
This commit is contained in:
39
python/py-cryptography/Makefile
Normal file
39
python/py-cryptography/Makefile
Normal file
@@ -0,0 +1,39 @@
|
||||
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
||||
# $FreeBSD: head/security/py-cryptography/Makefile 476488 2018-08-06 03:25:20Z koobs $
|
||||
|
||||
PORTNAME= cryptography
|
||||
PORTVERSION= 2.3
|
||||
CATEGORIES= security python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
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
|
||||
|
||||
CFLAGS+= -I${OPENSSLINC}
|
||||
LDFLAGS+= -L${OPENSSLLIB}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
|
||||
post-patch:
|
||||
${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
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
3
python/py-cryptography/distinfo
Normal file
3
python/py-cryptography/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1532336711
|
||||
SHA256 (cryptography-2.3.tar.gz) = c132bab45d4bd0fff1d3fe294d92b0a6eb8404e93337b3127bdec9f21de117e6
|
||||
SIZE (cryptography-2.3.tar.gz) = 449464
|
||||
9
python/py-cryptography/pkg-descr
Normal file
9
python/py-cryptography/pkg-descr
Normal file
@@ -0,0 +1,9 @@
|
||||
cryptography is a package designed to expose cryptographic recipes and
|
||||
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||
standard library".
|
||||
|
||||
cryptography includes both high level recipes, and low level interfaces to
|
||||
common cryptographic algorithms such as symmetric ciphers, message digests
|
||||
and key derivation functions.
|
||||
|
||||
WWW: https://github.com/pyca/cryptography/
|
||||
Reference in New Issue
Block a user