1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/security/py-pycrypto/Makefile
Kubilay Kocak 0d1c6f534d security/py-pycrypto: Modernise: STAGE, AUTOPLIST and more
- Enable STAGE support
- Enable AUTOPLIST, delete pkg-plist
- Modernise LIB_DEPENDS
- Trim MASTER_SITES to PyPI only
- Deprecate OPTIONSFILE override
- Use OPTIONS helpers
- Remove test: target, leaving regression-test:
- Whitespace alignment in OPTIONS
2014-02-01 14:31:40 +00:00

37 lines
760 B
Makefile

# Created by: nbm
# $FreeBSD$
PORTNAME= pycrypto
PORTVERSION= 2.6.1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= The Python Cryptography Toolkit
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
HAS_CONFIGURE= yes
USE_AUTOTOOLS= autoconf
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:${PORTSDIR}/math/gmp
pre-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
regression-test: build
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.mk>