[meta-virtualization] [RFC][PATCH 09/16] Added python-pycrypto recipe
David Nyström
david.c.nystrom at gmail.com
Tue Dec 18 06:31:51 PST 2012
Signed-off-by: David Nyström <david.nystrom at enea.com>
---
.../pycrypto/files/001-remove-includes.patch | 11 +++++
recipes-python/pycrypto/python-pycrypto_2.6.bb | 46 ++++++++++++++++++++
2 files changed, 57 insertions(+)
create mode 100644 recipes-python/pycrypto/files/001-remove-includes.patch
create mode 100644 recipes-python/pycrypto/python-pycrypto_2.6.bb
diff --git a/recipes-python/pycrypto/files/001-remove-includes.patch b/recipes-python/pycrypto/files/001-remove-includes.patch
new file mode 100644
index 0000000..5b6c0dc
--- /dev/null
+++ b/recipes-python/pycrypto/files/001-remove-includes.patch
@@ -0,0 +1,11 @@
+--- pycrypto-2.6/setup.py.old 2012-12-11 11:30:55.754674630 +0100
++++ pycrypto-2.6/setup.py 2012-12-11 11:37:53.802685825 +0100
+@@ -370,7 +370,7 @@
+ 'ext_modules': plat_ext + [
+ # _fastmath (uses GNU mp library)
+ Extension("Crypto.PublicKey._fastmath",
+- include_dirs=['src/','/usr/include/'],
++ include_dirs=['src/'],
+ libraries=['gmp'],
+ sources=["src/_fastmath.c"]),
+
diff --git a/recipes-python/pycrypto/python-pycrypto_2.6.bb b/recipes-python/pycrypto/python-pycrypto_2.6.bb
new file mode 100644
index 0000000..00b9174
--- /dev/null
+++ b/recipes-python/pycrypto/python-pycrypto_2.6.bb
@@ -0,0 +1,46 @@
+DESCRIPTION = "A collection of cryptographic algorithms and protocols"
+SECTION = "devel/python"
+DEPENDS += "gmp"
+LICENSE = "PSFv2"
+PR = "0"
+
+LIC_FILES_CHKSUM = "file://LEGAL/copy/LICENSE.python-2.2;md5=e752a62554a26df16a2fe44501f5e898"
+SRC_URI = "http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.tar.gz \
+ file://001-remove-includes.patch"
+
+SRC_URI[md5sum] = "88dad0a270d1fe83a39e0467a66a22bb"
+SRC_URI[sha256sum] = "7293c9d7e8af2e44a82f86eb9c3b058880f4bcc884bf3ad6c8a34b64986edde8"
+
+S = "${WORKDIR}/pycrypto-${PV}"
+
+export STAGING_INCDIR
+export STAGING_LIBDIR
+export BUILD_SYS
+export HOST_SYS
+
+inherit distutils
+
+CONFIGUREOPTS = " --build=${BUILD_SYS} \
+ --host=${HOST_SYS} \
+ --target=${TARGET_SYS} \
+ --prefix=${prefix} \
+ --exec_prefix=${exec_prefix} \
+ --bindir=${bindir} \
+ --sbindir=${sbindir} \
+ --libexecdir=${libexecdir} \
+ --datadir=${datadir} \
+ --sysconfdir=${sysconfdir} \
+ --sharedstatedir=${sharedstatedir} \
+ --localstatedir=${localstatedir} \
+ --libdir=${libdir} \
+ --includedir=${includedir} \
+ --oldincludedir=${oldincludedir} \
+ --infodir=${infodir} \
+ --mandir=${mandir} \
+ --disable-silent-rules \
+ --with-libtool-sysroot=${STAGING_DIR_HOST}"
+
+
+do_configure () {
+ ./configure ${CONFIGUREOPTS}
+}
--
1.7.9.5
More information about the meta-virtualization
mailing list