summaryrefslogtreecommitdiff
path: root/security/py-m2crypto/Makefile
blob: 2d809ad987bf74c7b1f7aa7a927755f65df28b6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PORTNAME=	m2crypto
PORTVERSION=	0.45.0
CATEGORIES=	security python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Crypto and SSL toolkit for Python
WWW=		https://m2crypto.readthedocs.io/en/latest/ \
		https://gitlab.com/m2crypto/m2crypto

LICENSE=	BSD2CLAUSE

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
		swig>=4.0:devel/swig

USES=		cpe python ssl
USE_PYTHON=	autoplist concurrent pep517

CPE_VENDOR=	m2crypto_project

post-install:
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

.include <bsd.port.mk>