summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb
diff options
context:
space:
mode:
authorJens Rehsack <sno@netbsd.org>2018-08-27 13:07:35 +0200
committerKhem Raj <raj.khem@gmail.com>2018-08-28 09:36:28 -0700
commit15bd5f4ebb70f3cfc36534a759ce2dbd6515d6e6 (patch)
tree267f9b3093ce0d3d7b6b8af4aa13338f7418627d /meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb
parentb3b34496758768d06a18621754492dde730c9423 (diff)
downloadmeta-openembedded-15bd5f4ebb70f3cfc36534a759ce2dbd6515d6e6.tar.gz
python{, 3}-m2crypto: update from 0.26.4 -> 0.30.1
Updating recipe for crypto and SSL toolkit for python and support python3 infrastructure of Yocto as well as the already supported python2 line. Refresh patches to fix devtool warnings Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb')
-rw-r--r--meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb54
1 files changed, 0 insertions, 54 deletions
diff --git a/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb b/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb
deleted file mode 100644
index 0da4274d96..0000000000
--- a/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb
+++ /dev/null
@@ -1,54 +0,0 @@
1SUMMARY = "A Python crypto and SSL toolkit"
2HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto"
3
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e"
6
7SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \
8 file://cross-compile-platform.patch \
9 file://m2crypto-0.26.4-gcc_macros.patch \
10 "
11SRC_URI[md5sum] = "5c74c25ba8b45122318a165a3a2059ad"
12SRC_URI[sha256sum] = "5cae7acc0b34821f8c0ddf6665e482893fe1f198ad6379e61ffa9d8e65f5c199"
13
14PYPI_PACKAGE = "M2Crypto"
15inherit pypi setuptools siteinfo
16
17DEPENDS += "openssl swig-native"
18RDEPENDS_${PN} += "python-typing"
19
20DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}"
21DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}"
22
23SWIG_FEATURES_x86 = "-D__i386__"
24SWIG_FEATURES ?= "-D__${HOST_ARCH}__"
25export SWIG_FEATURES
26
27# Get around a problem with swig, but only if the
28# multilib header file exists.
29#
30do_configure_prepend() {
31 ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v __REGISTER_PREFIX__ | grep -v __GNUC__ \
32 | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > SWIG/gcc_macros.h
33 if [ "${SITEINFO_BITS}" = "64" ];then
34 bit="64"
35 else
36 bit="32"
37 fi
38
39 if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ] ;then
40 for i in SWIG/_ec.i SWIG/_evp.i; do
41 sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i"
42 done
43 elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then
44 for i in SWIG/_ec.i SWIG/_evp.i; do
45 sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i"
46 done
47 fi
48}
49
50BBCLASSEXTEND = "native"
51
52# http://errors.yoctoproject.org/Errors/Details/184714/
53# SWIG/_m2crypto.i:10: Error: Unable to find 'gcc_macros.h'
54CLEANBROKEN = "1"