mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

Cleanup the various python-* recipes which download from pypi. The biggest change is to "inherit pypi" which should result in us always using current pypi best practices. This will for example ensure we are using https and not http which is apparently going to be disabled soon. Where the default behavior in the pypi class wasn't sufficient we make use of the PYPI_* variables to overwrite the defaults. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
62 lines
2.0 KiB
BlitzBasic
62 lines
2.0 KiB
BlitzBasic
HOMEPAGE = "http://chandlerproject.org/bin/view/Projects/MeTooCrypto"
|
|
SUMMARY = "A Python crypto and SSL toolkit"
|
|
DESCRIPTION = "\
|
|
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, \
|
|
DSA, DH, EC, HMACs, message digests, symmetric ciphers (including \
|
|
AES); SSL functionality to implement clients and servers; HTTPS \
|
|
extensions to Python's httplib, urllib, and xmlrpclib; unforgeable \
|
|
HMAC'ing AuthCookies for web session management; FTP/TLS client and \
|
|
server; S/MIME; ZServerSSL: A HTTPS server for Zope and ZSmime: An \
|
|
S/MIME messenger for Zope. M2Crypto can also be used to provide SSL \
|
|
for Twisted. \
|
|
"
|
|
LICENSE = "BSD"
|
|
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=0ccca7097c1d29fa42e75e9c15c6ff2e"
|
|
|
|
PYPI_PACKAGE = "M2Crypto"
|
|
|
|
SRC_URI += " \
|
|
file://m2crypto-Fix-build-with-SWIG-3.0.5.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "573f21aaac7d5c9549798e72ffcefedd"
|
|
SRC_URI[sha256sum] = "6071bfc817d94723e9b458a010d565365104f84aa73f7fe11919871f7562ff72"
|
|
|
|
inherit setuptools pypi
|
|
|
|
DEPENDS += "openssl swig-native"
|
|
|
|
DISTUTILS_BUILD_ARGS += "build_ext -I${STAGING_INCDIR}"
|
|
|
|
inherit setuptools pypi
|
|
|
|
SWIG_FEATURES_x86-64 = "-D__x86_64__"
|
|
SWIG_FEATURES ?= ""
|
|
export SWIG_FEATURES
|
|
|
|
# Get around a problem with swig, but only if the
|
|
# multilib header file exists.
|
|
#
|
|
do_compile_prepend() {
|
|
sed -i -e 's/self.add_multiarch_paths.*$/# &/;' ${S}/setup.py
|
|
sed -i -e 's/opensslIncludeDir = .*$/opensslIncludeDir = os.getenv("STAGING_INCDIR")/;' ${S}/setup.py
|
|
sed -i -e 's/opensslLibraryDir = .*$/opensslLibraryDir = os.getenv("STAGING_LIBDIR")/;' ${S}/setup.py
|
|
|
|
if [ "${SITEINFO_BITS}" = "64" ];then
|
|
bit="64"
|
|
else
|
|
bit="32"
|
|
fi
|
|
|
|
if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ]; then
|
|
for i in SWIG/_ec.i SWIG/_evp.i; do
|
|
sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i"
|
|
done
|
|
elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then
|
|
for i in SWIG/_ec.i SWIG/_evp.i; do
|
|
sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i"
|
|
done
|
|
fi
|
|
}
|
|
|