diff options
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.bb | 48 |
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 @@ | |||
| 1 | SUMMARY = "A Python crypto and SSL toolkit" | ||
| 2 | HOMEPAGE = "http://chandlerproject.org/bin/view/Projects/MeTooCrypto" | ||
| 3 | |||
| 4 | LICENSE = "BSD" | ||
| 5 | LIC_FILES_CHKSUM = "file://PKG-INFO;md5=95295693f047bb8f76928251a6154a60" | ||
| 6 | |||
| 7 | SRC_URI[md5sum] = "040234289fbef5bed4029f0f7d1dae35" | ||
| 8 | SRC_URI[sha256sum] = "ac303a1881307a51c85ee8b1d87844d9866ee823b4fdbc52f7e79187c2d9acef" | ||
| 9 | |||
| 10 | SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch " | ||
| 11 | |||
| 12 | PYPI_PACKAGE = "M2Crypto" | ||
| 13 | inherit pypi setuptools siteinfo | ||
| 14 | |||
| 15 | DEPENDS += "openssl swig-native" | ||
| 16 | |||
| 17 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" | ||
| 18 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}" | ||
| 19 | |||
| 20 | inherit setuptools | ||
| 21 | |||
| 22 | SWIG_FEATURES_x86-64 = "-D__x86_64__" | ||
| 23 | SWIG_FEATURES ?= "" | ||
| 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 | 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 | |||
| 48 | BBCLASSEXTEND = "native" | ||
