2013-04-20 13:31:42 +02:00
|
|
|
# Created by: nbm
|
2003-01-20 14:44:35 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pycrypto
|
2012-06-25 18:06:47 +02:00
|
|
|
PORTVERSION= 2.6
|
2012-10-04 18:45:41 +02:00
|
|
|
PORTREVISION= 1
|
2005-10-12 13:31:11 +02:00
|
|
|
CATEGORIES= security python
|
2012-07-02 18:32:38 +02:00
|
|
|
MASTER_SITES= CHEESESHOP \
|
|
|
|
https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
|
2003-01-20 14:44:35 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2013-04-20 13:31:42 +02:00
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The Python Cryptography Toolkit
|
2003-01-20 14:44:35 +01:00
|
|
|
|
2012-10-04 18:45:41 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2012-06-25 18:06:47 +02:00
|
|
|
|
2011-12-08 12:18:08 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_AUTOTOOLS= autoconf
|
2003-01-20 14:44:35 +01:00
|
|
|
|
2012-10-04 18:45:41 +02:00
|
|
|
OPTIONS_DEFINE= GMP
|
|
|
|
OPTIONS_DEFAULT= GMP
|
|
|
|
GMP_DESC= Use GMP for faster DSA/RSA operations
|
|
|
|
|
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGMP}
|
|
|
|
LIB_DEPENDS+= gmp:${PORTSDIR}/math/gmp
|
|
|
|
CONFIGURE_ARGS+= --with-gmp
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PLIST_SUB+= GMP=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gmp
|
|
|
|
PLIST_SUB+= GMP="@comment "
|
|
|
|
.endif
|
2004-10-12 01:24:07 +02:00
|
|
|
|
2010-01-01 05:47:56 +01:00
|
|
|
pre-patch:
|
2004-10-12 01:24:07 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
|
|
|
|
|
2012-10-04 18:45:41 +02:00
|
|
|
test: build
|
|
|
|
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
|
|
|
|
|
|
|
regression-test: test
|
|
|
|
|
2010-01-01 05:47:56 +01:00
|
|
|
.include <bsd.port.mk>
|