1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

security/py-pycrypto: Strip shared libraries

- Strip shared libraries
- Use GNU_CONFIGURE over HAS_CONFIGURE and USE_AUTOTOOLS
- Give in and strip leading "The" in COMMENT
- Tweak regression-test target
- Update pkg-descr WWW: URL
This commit is contained in:
Kubilay Kocak 2014-12-23 04:52:07 +00:00
parent 89c64b4445
commit a47e542de5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375311
2 changed files with 8 additions and 6 deletions

View File

@ -3,24 +3,23 @@
PORTNAME= pycrypto PORTNAME= pycrypto
PORTVERSION= 2.6.1 PORTVERSION= 2.6.1
PORTREVISION= 1
CATEGORIES= security python CATEGORIES= security python
MASTER_SITES= CHEESESHOP MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org MAINTAINER= koobs@FreeBSD.org
COMMENT= The Python Cryptography Toolkit COMMENT= Python Cryptography Toolkit
USES= python USES= python
USE_PYTHON= distutils autoplist USE_PYTHON= distutils autoplist
HAS_CONFIGURE= yes GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf
OPTIONS_DEFINE= GMP OPTIONS_DEFINE= GMP
OPTIONS_DEFAULT= GMP OPTIONS_DEFAULT= GMP
GMP_DESC= Use GMP for faster DSA/RSA operations GMP_DESC= Use GMP for faster DSA/RSA operations
GMP_CONFIGURE_WITH= gmp GMP_CONFIGURE_WITH= gmp
GMP_CPPFLAGS= -I${LOCALBASE}/include GMP_CPPFLAGS= -I${LOCALBASE}/include
GMP_LDFLAGS= -L${LOCALBASE}/lib GMP_LDFLAGS= -L${LOCALBASE}/lib
@ -29,7 +28,10 @@ GMP_LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
pre-patch: pre-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Crypto/*/*.so
regression-test: build regression-test: build
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -4,4 +4,4 @@ This is a collection of both secure hash functions (such as MD5 and
SHA), and various encryption algorithms (AES, DES, ElGamal, etc.) for SHA), and various encryption algorithms (AES, DES, ElGamal, etc.) for
Python. Python.
WWW: http://pycrypto.org WWW: https://pycrypto.org