diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-08-28 19:46:06 -0700 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-31 10:18:33 +0200 |
| commit | f50e344cffbf0e1513308f0a2c845e21b272f1b5 (patch) | |
| tree | bf04bd06ee0df92545b2aedd21477b76746691ca /meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb | |
| parent | 346d12ef942ef748821b04ab61df89c1ab506866 (diff) | |
| download | meta-openembedded-f50e344cffbf0e1513308f0a2c845e21b272f1b5.tar.gz | |
python-m2crypto: Upgrade to 0.26.0
Use proper LICENCE file for LIC_FILES_CHKSUM
Update homepage to point to gitlab
Fix cross-build arch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb b/meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb new file mode 100644 index 0000000000..4b4fbbb7c2 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | SUMMARY = "A Python crypto and SSL toolkit" | ||
| 2 | HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" | ||
| 3 | |||
| 4 | LICENSE = "BSD" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e" | ||
| 6 | |||
| 7 | SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \ | ||
| 8 | file://cross-compile-platform.patch \ | ||
| 9 | " | ||
| 10 | SRC_URI[md5sum] = "9f02f0b88fbe225cc6ea8680945cafa0" | ||
| 11 | SRC_URI[sha256sum] = "05d94fd9b2dae2fb8e072819a795f0e05d3611b09ea185f68e1630530ec09ae8" | ||
| 12 | |||
| 13 | PYPI_PACKAGE = "M2Crypto" | ||
| 14 | inherit pypi setuptools siteinfo | ||
| 15 | |||
| 16 | DEPENDS += "openssl swig-native" | ||
| 17 | RDEPENDS_${PN} += "python-typing" | ||
| 18 | |||
| 19 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" | ||
| 20 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}" | ||
| 21 | |||
| 22 | SWIG_FEATURES_x86 = "-D__i386__" | ||
| 23 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__" | ||
| 24 | export SWIG_FEATURES | ||
| 25 | |||
| 26 | # Get around a problem with swig, but only if the | ||
| 27 | # multilib header file exists. | ||
| 28 | # | ||
| 29 | do_compile_prepend() { | ||
| 30 | ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v __REGISTER_PREFIX__ | grep -v __GNUC__ \ | ||
| 31 | | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > SWIG/gcc_macros.h | ||
| 32 | if [ "${SITEINFO_BITS}" = "64" ];then | ||
| 33 | bit="64" | ||
| 34 | else | ||
| 35 | bit="32" | ||
| 36 | fi | ||
| 37 | |||
| 38 | if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ] ;then | ||
| 39 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
| 40 | sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i" | ||
| 41 | done | ||
| 42 | elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then | ||
| 43 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
| 44 | sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i" | ||
| 45 | done | ||
| 46 | fi | ||
| 47 | } | ||
| 48 | |||
| 49 | |||
| 50 | BBCLASSEXTEND = "native" | ||
