diff options
author | pav <pav@FreeBSD.org> | 2004-10-12 07:24:07 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-10-12 07:24:07 +0800 |
commit | a5808b2a6686626b29f10a7bb7b88a2edfae383c (patch) | |
tree | c0c0ec8f1b7ba3c4170f64cf9a5e0ce13bd662ee | |
parent | fb8a8c363d2cfdd5989c623adc35865ad92af140 (diff) | |
download | freebsd-ports-gnome-a5808b2a6686626b29f10a7bb7b88a2edfae383c.tar.gz freebsd-ports-gnome-a5808b2a6686626b29f10a7bb7b88a2edfae383c.tar.zst freebsd-ports-gnome-a5808b2a6686626b29f10a7bb7b88a2edfae383c.zip |
- Update to 2.0
- Add gmp dependency on FreeBSD 5.x
PR: ports/72172
Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
-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 |