summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb b/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb
new file mode 100644
index 0000000000..5a9594f074
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb
@@ -0,0 +1,48 @@
1SUMMARY = "A Python crypto and SSL toolkit"
2HOMEPAGE = "http://chandlerproject.org/bin/view/Projects/MeTooCrypto"
3
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://PKG-INFO;md5=95295693f047bb8f76928251a6154a60"
6
7SRC_URI[md5sum] = "040234289fbef5bed4029f0f7d1dae35"
8SRC_URI[sha256sum] = "ac303a1881307a51c85ee8b1d87844d9866ee823b4fdbc52f7e79187c2d9acef"
9
10SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch "
11
12PYPI_PACKAGE = "M2Crypto"
13inherit pypi setuptools siteinfo
14
15DEPENDS += "openssl swig-native"
16
17DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}"
18DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}"
19
20inherit setuptools
21
22SWIG_FEATURES_x86-64 = "-D__x86_64__"
23SWIG_FEATURES ?= ""
24export SWIG_FEATURES
25
26# Get around a problem with swig, but only if the
27# multilib header file exists.
28#
29do_compile_prepend() {
30 if [ "${SITEINFO_BITS}" = "64" ];then
31 bit="64"
32 else
33 bit="32"
34 fi
35
36 if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ] ;then
37 for i in SWIG/_ec.i SWIG/_evp.i; do
38 sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i"
39 done
40 elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then
41 for i in SWIG/_ec.i SWIG/_evp.i; do
42 sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i"
43 done
44 fi
45}
46
47
48BBCLASSEXTEND = "native"