diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb new file mode 100644 index 0000000000..d5ffdbc40c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | SUMMARY = "A Python crypto and SSL toolkit" | ||
| 2 | HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" | ||
| 3 | |||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e" | ||
| 6 | |||
| 7 | FILESEXTRAPATHS:prepend := "${THISDIR}/python-m2crypto:" | ||
| 8 | |||
| 9 | SRC_URI[sha256sum] = "42b62df2caf623161b1d643a7235464c2fe2a3105049ebc498a6d47dc08f64b4" | ||
| 10 | |||
| 11 | inherit pypi siteinfo python_setuptools_build_meta | ||
| 12 | |||
| 13 | DEPENDS += "openssl swig-native" | ||
| 14 | RDEPENDS:${PN} += "\ | ||
| 15 | python3-datetime \ | ||
| 16 | python3-setuptools \ | ||
| 17 | python3-logging \ | ||
| 18 | python3-netclient \ | ||
| 19 | python3-netserver \ | ||
| 20 | python3-numbers \ | ||
| 21 | python3-xmlrpc \ | ||
| 22 | " | ||
| 23 | |||
| 24 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}" | ||
| 25 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}" | ||
| 26 | |||
| 27 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_NO_FILENAMES" | ||
| 28 | |||
| 29 | SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | ||
| 30 | SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | ||
| 31 | SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}" | ||
| 32 | SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__" | ||
| 33 | SWIG_FEATURES:append:x86 = " -D__i386__" | ||
| 34 | SWIG_FEATURES:append:x32 = " -D__ILP32__" | ||
| 35 | |||
| 36 | export SWIG_FEATURES | ||
| 37 | |||
| 38 | export STAGING_DIR | ||
| 39 | |||
| 40 | do_install:append() { | ||
| 41 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc | ||
| 42 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc | ||
| 43 | } | ||
| 44 | |||
| 45 | BBCLASSEXTEND = "native" | ||
