mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Update to 2.0
- Add gmp dependency on FreeBSD 5.x PR: ports/72172 Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
This commit is contained in:
parent
f46f0c2d7c
commit
81bbe8d04e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118673
@ -6,16 +6,25 @@
|
||||
#
|
||||
|
||||
PORTNAME= pycrypto
|
||||
PORTVERSION= 1.9.a6
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.amk.ca/files/python/crypto/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION:S@.a@a@}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= The Python Cryptography Toolkit
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS=yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500000
|
||||
LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (pycrypto-1.9a6.tar.gz) = cdcebdfd63e74754f57b9e9b0db4ea20
|
||||
SIZE (pycrypto-1.9a6.tar.gz) = 158801
|
||||
MD5 (pycrypto-2.0.tar.gz) = 55f9875c554ede75ad605d2c7504d94f
|
||||
SIZE (pycrypto-2.0.tar.gz) = 164682
|
||||
|
20
security/py-pycrypto/files/patch-setup.py
Normal file
20
security/py-pycrypto/files/patch-setup.py
Normal file
@ -0,0 +1,20 @@
|
||||
--- setup.py.orig Sat Aug 14 01:44:47 2004
|
||||
+++ setup.py Fri Oct 1 21:21:45 2004
|
||||
@@ -116,13 +116,14 @@
|
||||
build_ext.build_extensions(self)
|
||||
|
||||
def detect_modules (self):
|
||||
- lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
|
||||
- inc_dirs = self.compiler.include_dirs + ['/usr/include']
|
||||
+ lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib', '%%LOCALBASE%%/lib']
|
||||
+ inc_dirs = self.compiler.include_dirs + ['/usr/include', '%%LOCALBASE%%/include']
|
||||
exts = []
|
||||
if (self.compiler.find_library_file(lib_dirs, 'gmp')):
|
||||
exts.append(Extension("Crypto.PublicKey._fastmath",
|
||||
- include_dirs=['src/'],
|
||||
+ include_dirs=['src/', '%%LOCALBASE%%/include'],
|
||||
libraries=['gmp'],
|
||||
+ library_dirs=['%%LOCALBASE%%/lib'],
|
||||
sources=["src/_fastmath.c"]))
|
||||
self.extensions += exts
|
||||
|
@ -23,6 +23,7 @@ lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/RIPEMD.so
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/SHA.py
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/SHA.pyc
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/SHA.pyo
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/SHA256.so
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/__init__.py
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/__init__.pyc
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Hash/__init__.pyo
|
||||
@ -53,6 +54,7 @@ lib/%%PYTHON_VERSION%%/site-packages/Crypto/PublicKey/pubkey.pyo
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/PublicKey/qNEW.py
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/PublicKey/qNEW.pyc
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/PublicKey/qNEW.pyo
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/PublicKey/_fastmath.so
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Util/RFC1751.py
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Util/RFC1751.pyc
|
||||
lib/%%PYTHON_VERSION%%/site-packages/Crypto/Util/RFC1751.pyo
|
||||
|
Loading…
Reference in New Issue
Block a user