1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/security/py-pycrypto/Makefile
Kubilay Kocak bd3dda82bd security/py-pycrypto: Fix variable name typo
PR:		225198
Reported by:	sunpoet
2018-02-19 11:28:36 +00:00

43 lines
914 B
Makefile

# Created by: nbm
# $FreeBSD$
PORTNAME= pycrypto
PORTVERSION= 2.6.1
PORTREVISION= 3
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Python Cryptography Toolkit
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}pycryptodome-*
USES= python
USE_PYTHON= distutils autoplist
GNU_CONFIGURE= yes
OPTIONS_DEFINE= GMP
OPTIONS_DEFAULT= GMP
GMP_DESC= Use GMP for faster DSA/RSA operations
GMP_CONFIGURE_WITH= gmp
GMP_CPPFLAGS= -I${LOCALBASE}/include
GMP_LDFLAGS= -L${LOCALBASE}/lib
GMP_LIB_DEPENDS= libgmp.so:math/gmp
pre-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Crypto/*/*.so
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>