diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-11 23:24:07 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-11 23:24:07 +0000 |
commit | 81bbe8d04e58ac160f652119177969a6dff241ab (patch) | |
tree | 303331b07d462f58c311f07b5631c8e2542dc89a /security/py-pycrypto | |
parent | f46f0c2d7c59b56f251e7d57f354eb3002011412 (diff) | |
download | ports-81bbe8d04e58ac160f652119177969a6dff241ab.tar.gz ports-81bbe8d04e58ac160f652119177969a6dff241ab.zip |
Notes
Diffstat (limited to 'security/py-pycrypto')
-rw-r--r-- | security/py-pycrypto/Makefile | 15 | ||||
-rw-r--r-- | security/py-pycrypto/distinfo | 4 | ||||
-rw-r--r-- | security/py-pycrypto/files/patch-setup.py | 20 | ||||
-rw-r--r-- | security/py-pycrypto/pkg-plist | 2 |
4 files changed, 36 insertions, 5 deletions
diff --git a/security/py-pycrypto/Makefile b/security/py-pycrypto/Makefile index 1854de013ce8..d7bdfe70cd36 100644 --- a/security/py-pycrypto/Makefile +++ b/security/py-pycrypto/Makefile @@ -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> diff --git a/security/py-pycrypto/distinfo b/security/py-pycrypto/distinfo index 9d908422aa84..5b6e157d081e 100644 --- a/security/py-pycrypto/distinfo +++ b/security/py-pycrypto/distinfo @@ -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 diff --git a/security/py-pycrypto/files/patch-setup.py b/security/py-pycrypto/files/patch-setup.py new file mode 100644 index 000000000000..8c89fdc14df6 --- /dev/null +++ b/security/py-pycrypto/files/patch-setup.py @@ -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 + diff --git a/security/py-pycrypto/pkg-plist b/security/py-pycrypto/pkg-plist index 3f828881e484..14832b9514fb 100644 --- a/security/py-pycrypto/pkg-plist +++ b/security/py-pycrypto/pkg-plist @@ -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 |