summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python-pycurl.inc31
-rw-r--r--meta/recipes-devtools/python/python-pycurl_7.21.5.bb32
-rw-r--r--meta/recipes-devtools/python/python3-pycurl_7.21.5.bb5
3 files changed, 37 insertions, 31 deletions
diff --git a/meta/recipes-devtools/python/python-pycurl.inc b/meta/recipes-devtools/python/python-pycurl.inc
new file mode 100644
index 0000000000..d26318b6d2
--- /dev/null
+++ b/meta/recipes-devtools/python/python-pycurl.inc
@@ -0,0 +1,31 @@
1SUMMARY = "Python bindings for libcurl"
2HOMEPAGE = "http://pycurl.sourceforge.net/"
3SECTION = "devel/python"
4LICENSE = "LGPLv2.1+ | MIT"
5LIC_FILES_CHKSUM = "file://README.rst;beginline=166;endline=182;md5=a84a1caa65b89d4584b693d3680062fb \
6 file://COPYING-LGPL;md5=3579a9fd0221d49a237aaa33492f988c \
7 file://COPYING-MIT;md5=b7e434aeb228ed731c00bcf177e79b19"
8
9DEPENDS = "curl ${PYTHON_PN}"
10RDEPENDS_${PN} = "${PYTHON_PN}-core curl"
11SRCNAME = "pycurl"
12
13SRC_URI = "\
14 http://${SRCNAME}.sourceforge.net/download/${SRCNAME}-${PV}.tar.gz;name=archive \
15 file://no-static-link.patch \
16"
17
18SRC_URI[archive.md5sum] = "bca7bf47320082588db544ced2ba8717"
19SRC_URI[archive.sha256sum] = "8a1e0eb55573388275a1d6c2534ca4cfca5d7fa772b99b505c08fa149b27aed0"
20S = "${WORKDIR}/${SRCNAME}-${PV}"
21
22BBCLASSEXTEND = "native"
23
24# Ensure the docstrings are generated as make clean will remove them
25do_compile_prepend() {
26 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py docstrings
27}
28
29do_install_append() {
30 rm -rf ${D}${datadir}/share
31}
diff --git a/meta/recipes-devtools/python/python-pycurl_7.21.5.bb b/meta/recipes-devtools/python/python-pycurl_7.21.5.bb
index 7b41f6d33d..eb70cea663 100644
--- a/meta/recipes-devtools/python/python-pycurl_7.21.5.bb
+++ b/meta/recipes-devtools/python/python-pycurl_7.21.5.bb
@@ -1,33 +1,3 @@
1SUMMARY = "Python bindings for libcurl" 1require python-pycurl.inc
2HOMEPAGE = "http://pycurl.sourceforge.net/"
3SECTION = "devel/python"
4LICENSE = "LGPLv2.1+ | MIT"
5LIC_FILES_CHKSUM = "file://README.rst;beginline=166;endline=182;md5=a84a1caa65b89d4584b693d3680062fb \
6 file://COPYING-LGPL;md5=3579a9fd0221d49a237aaa33492f988c \
7 file://COPYING-MIT;md5=b7e434aeb228ed731c00bcf177e79b19"
8
9DEPENDS = "curl python"
10RDEPENDS_${PN} = "python-core curl"
11SRCNAME = "pycurl"
12
13SRC_URI = "\
14 http://${SRCNAME}.sourceforge.net/download/${SRCNAME}-${PV}.tar.gz;name=archive \
15 file://no-static-link.patch \
16"
17
18SRC_URI[archive.md5sum] = "bca7bf47320082588db544ced2ba8717"
19SRC_URI[archive.sha256sum] = "8a1e0eb55573388275a1d6c2534ca4cfca5d7fa772b99b505c08fa149b27aed0"
20S = "${WORKDIR}/${SRCNAME}-${PV}"
21 2
22inherit distutils 3inherit distutils
23
24BBCLASSEXTEND = "native"
25
26# Ensure the docstrings are generated as make clean will remove them
27do_compile_prepend() {
28 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py docstrings
29}
30
31do_install_append() {
32 rm -rf ${D}${datadir}/share
33}
diff --git a/meta/recipes-devtools/python/python3-pycurl_7.21.5.bb b/meta/recipes-devtools/python/python3-pycurl_7.21.5.bb
new file mode 100644
index 0000000000..5d11192ab6
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pycurl_7.21.5.bb
@@ -0,0 +1,5 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/python-pycurl:"
2
3require python-pycurl.inc
4
5inherit distutils3