summaryrefslogtreecommitdiff
path: root/security/py-pycrypto/files/patch-setup.py
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-10-11 23:24:07 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-10-11 23:24:07 +0000
commit81bbe8d04e58ac160f652119177969a6dff241ab (patch)
tree303331b07d462f58c311f07b5631c8e2542dc89a /security/py-pycrypto/files/patch-setup.py
parent- update to version 2.2.17 (diff)
- Update to 2.0
- Add gmp dependency on FreeBSD 5.x PR: ports/72172 Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
Notes
Notes: svn path=/head/; revision=118673
Diffstat (limited to 'security/py-pycrypto/files/patch-setup.py')
-rw-r--r--security/py-pycrypto/files/patch-setup.py20
1 files changed, 20 insertions, 0 deletions
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
+