summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python/python-m2crypto_0.22.3.bb
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2015-02-27 16:01:22 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-03-17 09:46:32 -0400
commit33ea7df40bc5aa9a34f4362e976775be1076e876 (patch)
tree50adc4109dfd5661e071986416cb1c261de673fc /recipes-devtools/python/python-m2crypto_0.22.3.bb
parent96c56a08f618c7c2a3d31c9e3bc5b341c1ef1c36 (diff)
downloadmeta-virtualization-33ea7df40bc5aa9a34f4362e976775be1076e876.tar.gz
Add python packages needed for docker-registry
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'recipes-devtools/python/python-m2crypto_0.22.3.bb')
-rw-r--r--recipes-devtools/python/python-m2crypto_0.22.3.bb60
1 files changed, 60 insertions, 0 deletions
diff --git a/recipes-devtools/python/python-m2crypto_0.22.3.bb b/recipes-devtools/python/python-m2crypto_0.22.3.bb
new file mode 100644
index 00000000..33254552
--- /dev/null
+++ b/recipes-devtools/python/python-m2crypto_0.22.3.bb
@@ -0,0 +1,60 @@
1HOMEPAGE = "http://chandlerproject.org/bin/view/Projects/MeTooCrypto"
2SUMMARY = "A Python crypto and SSL toolkit"
3DESCRIPTION = "\
4 M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, \
5 DSA, DH, EC, HMACs, message digests, symmetric ciphers (including \
6 AES); SSL functionality to implement clients and servers; HTTPS \
7 extensions to Python's httplib, urllib, and xmlrpclib; unforgeable \
8 HMAC'ing AuthCookies for web session management; FTP/TLS client and \
9 server; S/MIME; ZServerSSL: A HTTPS server for Zope and ZSmime: An \
10 S/MIME messenger for Zope. M2Crypto can also be used to provide SSL \
11 for Twisted. \
12 "
13LICENSE = "BSD"
14LIC_FILES_CHKSUM = "file://PKG-INFO;md5=0ccca7097c1d29fa42e75e9c15c6ff2e"
15
16SRCNAME = "M2Crypto"
17SRC_URI = "http://pypi.python.org/packages/source/M/M2Crypto/${SRCNAME}-${PV}.tar.gz"
18
19SRC_URI[md5sum] = "573f21aaac7d5c9549798e72ffcefedd"
20SRC_URI[sha256sum] = "6071bfc817d94723e9b458a010d565365104f84aa73f7fe11919871f7562ff72"
21
22S = "${WORKDIR}/${SRCNAME}-${PV}"
23
24inherit setuptools
25
26DEPENDS += "openssl swig-native"
27
28DISTUTILS_BUILD_ARGS += "build_ext -I${STAGING_INCDIR}"
29
30inherit setuptools
31
32SWIG_FEATURES_x86-64 = "-D__x86_64__"
33SWIG_FEATURES ?= ""
34export SWIG_FEATURES
35
36# Get around a problem with swig, but only if the
37# multilib header file exists.
38#
39do_compile_prepend() {
40 sed -i -e 's/self.add_multiarch_paths.*$/# &/;' ${S}/setup.py
41 sed -i -e 's/opensslIncludeDir = .*$/opensslIncludeDir = os.getenv("STAGING_INCDIR")/;' ${S}/setup.py
42 sed -i -e 's/opensslLibraryDir = .*$/opensslLibraryDir = os.getenv("STAGING_LIBDIR")/;' ${S}/setup.py
43
44 if [ "${SITEINFO_BITS}" = "64" ];then
45 bit="64"
46 else
47 bit="32"
48 fi
49
50 if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ]; then
51 for i in SWIG/_ec.i SWIG/_evp.i; do
52 sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i"
53 done
54 elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then
55 for i in SWIG/_ec.i SWIG/_evp.i; do
56 sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i"
57 done
58 fi
59}
60