summaryrefslogtreecommitdiff
path: root/packages/python/python-m2crypto/install.patch
diff options
context:
space:
mode:
authorJohn Lee <john_lee@openmoko.org>2008-02-29 10:18:28 +0000
committerOpenmoko anonymizer key <devel@lists.openmoko.org>2008-02-29 10:18:28 +0000
commit022ac4bfbd6d85f4accbd23f18138a10b2e9f0de (patch)
tree1a6d1e12611c2b3a341f3293af95c8575edc3c4e /packages/python/python-m2crypto/install.patch
parentfe6f8c336429aa31e9b3a74ecd9f1e8a320a8a07 (diff)
parent1e4b78b265763e2b2d0d430f62b86aab5826a48e (diff)
merge of 'a694034ad4f05ead506bab01c8f41ffa116d5f5d'
and 'e1563879f370dd02713e036ee932bb571cce4bc4'
Diffstat (limited to 'packages/python/python-m2crypto/install.patch')
-rw-r--r--packages/python/python-m2crypto/install.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/python/python-m2crypto/install.patch b/packages/python/python-m2crypto/install.patch
new file mode 100644
index 0000000000..6c70ccf516
--- /dev/null
+++ b/packages/python/python-m2crypto/install.patch
@@ -0,0 +1,24 @@
+Index: m2crypto-0.18.2/setup.py
+===================================================================
+--- m2crypto-0.18.2.orig/setup.py
++++ m2crypto-0.18.2/setup.py
+@@ -38,7 +38,7 @@ class _M2CryptoBuildExt(build_ext.build_
+ self.openssl = 'c:\\pkg'
+ else:
+ self.libraries = ['ssl', 'crypto']
+- self.openssl = '/usr'
++ self.openssl = os.environ.get( "STAGING_DIR" )
+
+
+ def finalize_options(self):
+@@ -47,8 +47,8 @@ class _M2CryptoBuildExt(build_ext.build_
+
+ build_ext.build_ext.finalize_options(self)
+
+- opensslIncludeDir = os.path.join(self.openssl, 'include')
+- opensslLibraryDir = os.path.join(self.openssl, 'lib')
++ opensslIncludeDir = os.environ.get( "STAGING_INCDIR" )
++ opensslLibraryDir = os.environ.get( "STAGING_LIBDIR" )
+
+ self.swig_opts = ['-I%s' % i for i in self.include_dirs + \
+ [opensslIncludeDir]]