From 81bbe8d04e58ac160f652119177969a6dff241ab Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 11 Oct 2004 23:24:07 +0000 Subject: - Update to 2.0 - Add gmp dependency on FreeBSD 5.x PR: ports/72172 Submitted by: Marcus Grando --- security/py-pycrypto/files/patch-setup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 security/py-pycrypto/files/patch-setup.py (limited to 'security/py-pycrypto/files/patch-setup.py') 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 + -- cgit v1.2.3