diff options
Diffstat (limited to 'recipes-devtools/python/python-m2crypto_0.22.3.bb')
| -rw-r--r-- | recipes-devtools/python/python-m2crypto_0.22.3.bb | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/recipes-devtools/python/python-m2crypto_0.22.3.bb b/recipes-devtools/python/python-m2crypto_0.22.3.bb deleted file mode 100644 index e151dcc4..00000000 --- a/recipes-devtools/python/python-m2crypto_0.22.3.bb +++ /dev/null | |||
| @@ -1,63 +0,0 @@ | |||
| 1 | HOMEPAGE = "http://chandlerproject.org/bin/view/Projects/MeTooCrypto" | ||
| 2 | SUMMARY = "A Python crypto and SSL toolkit" | ||
| 3 | DESCRIPTION = "\ | ||
| 4 | M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, \ | ||
| 5 | DSA, DH, EC, HMACs, message digests, symmetric ciphers (including \ | ||
| 6 | AES); SSL functionality to implement clients and servers; HTTPS \ | ||
| 7 | extensions to Python's httplib, urllib, and xmlrpclib; unforgeable \ | ||
| 8 | HMAC'ing AuthCookies for web session management; FTP/TLS client and \ | ||
| 9 | server; S/MIME; ZServerSSL: A HTTPS server for Zope and ZSmime: An \ | ||
| 10 | S/MIME messenger for Zope. M2Crypto can also be used to provide SSL \ | ||
| 11 | for Twisted. \ | ||
| 12 | " | ||
| 13 | LICENSE = "BSD" | ||
| 14 | LIC_FILES_CHKSUM = "file://PKG-INFO;md5=0ccca7097c1d29fa42e75e9c15c6ff2e" | ||
| 15 | |||
| 16 | PYPI_PACKAGE = "M2Crypto" | ||
| 17 | |||
| 18 | SRC_URI += " \ | ||
| 19 | file://m2crypto-Fix-build-with-SWIG-3.0.5.patch \ | ||
| 20 | " | ||
| 21 | |||
| 22 | SRC_URI[md5sum] = "573f21aaac7d5c9549798e72ffcefedd" | ||
| 23 | SRC_URI[sha256sum] = "6071bfc817d94723e9b458a010d565365104f84aa73f7fe11919871f7562ff72" | ||
| 24 | |||
| 25 | DEFAULT_PREFERENCE = "-1" | ||
| 26 | |||
| 27 | inherit setuptools pypi | ||
| 28 | |||
| 29 | DEPENDS += "openssl swig-native" | ||
| 30 | |||
| 31 | DISTUTILS_BUILD_ARGS += "build_ext -I${STAGING_INCDIR}" | ||
| 32 | |||
| 33 | inherit setuptools pypi | ||
| 34 | |||
| 35 | SWIG_FEATURES_x86-64 = "-D__x86_64__" | ||
| 36 | SWIG_FEATURES ?= "" | ||
| 37 | export SWIG_FEATURES | ||
| 38 | |||
| 39 | # Get around a problem with swig, but only if the | ||
| 40 | # multilib header file exists. | ||
| 41 | # | ||
| 42 | do_compile_prepend() { | ||
| 43 | sed -i -e 's/self.add_multiarch_paths.*$/# &/;' ${S}/setup.py | ||
| 44 | sed -i -e 's/opensslIncludeDir = .*$/opensslIncludeDir = os.getenv("STAGING_INCDIR")/;' ${S}/setup.py | ||
| 45 | sed -i -e 's/opensslLibraryDir = .*$/opensslLibraryDir = os.getenv("STAGING_LIBDIR")/;' ${S}/setup.py | ||
| 46 | |||
| 47 | if [ "${SITEINFO_BITS}" = "64" ];then | ||
| 48 | bit="64" | ||
| 49 | else | ||
| 50 | bit="32" | ||
| 51 | fi | ||
| 52 | |||
| 53 | if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ]; then | ||
| 54 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
| 55 | sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i" | ||
| 56 | done | ||
| 57 | elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then | ||
| 58 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
| 59 | sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i" | ||
| 60 | done | ||
| 61 | fi | ||
| 62 | } | ||
| 63 | |||
