diff options
author | Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com> | 2017-04-07 16:14:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-10 23:00:44 +0100 |
commit | 0e138bf56d650a0884911aba893c19a44b4ce600 (patch) | |
tree | f2d93890a84820b5e342a676836f01caad2e64d7 /meta/recipes-devtools | |
parent | dff701ffd4e67fa80f37b16c1d1bc0fdbaac2bd9 (diff) | |
download | poky-0e138bf56d650a0884911aba893c19a44b4ce600.tar.gz |
python-pycurl: create python3-pycurl recipe
The python-pycurl recipe can be used with python2 only even
though python3 is officially supported by upstream.
Create python3-pycurl recipe enabling the pycurl module for
python3.
(From OE-Core rev: 6cb9c0a4e75c647b38c81d2d7217b54b2fdfd972)
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/python/python-pycurl.inc | 31 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python-pycurl_7.21.5.bb | 32 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-pycurl_7.21.5.bb | 5 |
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 @@ | |||
1 | SUMMARY = "Python bindings for libcurl" | ||
2 | HOMEPAGE = "http://pycurl.sourceforge.net/" | ||
3 | SECTION = "devel/python" | ||
4 | LICENSE = "LGPLv2.1+ | MIT" | ||
5 | LIC_FILES_CHKSUM = "file://README.rst;beginline=166;endline=182;md5=a84a1caa65b89d4584b693d3680062fb \ | ||
6 | file://COPYING-LGPL;md5=3579a9fd0221d49a237aaa33492f988c \ | ||
7 | file://COPYING-MIT;md5=b7e434aeb228ed731c00bcf177e79b19" | ||
8 | |||
9 | DEPENDS = "curl ${PYTHON_PN}" | ||
10 | RDEPENDS_${PN} = "${PYTHON_PN}-core curl" | ||
11 | SRCNAME = "pycurl" | ||
12 | |||
13 | SRC_URI = "\ | ||
14 | http://${SRCNAME}.sourceforge.net/download/${SRCNAME}-${PV}.tar.gz;name=archive \ | ||
15 | file://no-static-link.patch \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[archive.md5sum] = "bca7bf47320082588db544ced2ba8717" | ||
19 | SRC_URI[archive.sha256sum] = "8a1e0eb55573388275a1d6c2534ca4cfca5d7fa772b99b505c08fa149b27aed0" | ||
20 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
21 | |||
22 | BBCLASSEXTEND = "native" | ||
23 | |||
24 | # Ensure the docstrings are generated as make clean will remove them | ||
25 | do_compile_prepend() { | ||
26 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py docstrings | ||
27 | } | ||
28 | |||
29 | do_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 @@ | |||
1 | SUMMARY = "Python bindings for libcurl" | 1 | require python-pycurl.inc |
2 | HOMEPAGE = "http://pycurl.sourceforge.net/" | ||
3 | SECTION = "devel/python" | ||
4 | LICENSE = "LGPLv2.1+ | MIT" | ||
5 | LIC_FILES_CHKSUM = "file://README.rst;beginline=166;endline=182;md5=a84a1caa65b89d4584b693d3680062fb \ | ||
6 | file://COPYING-LGPL;md5=3579a9fd0221d49a237aaa33492f988c \ | ||
7 | file://COPYING-MIT;md5=b7e434aeb228ed731c00bcf177e79b19" | ||
8 | |||
9 | DEPENDS = "curl python" | ||
10 | RDEPENDS_${PN} = "python-core curl" | ||
11 | SRCNAME = "pycurl" | ||
12 | |||
13 | SRC_URI = "\ | ||
14 | http://${SRCNAME}.sourceforge.net/download/${SRCNAME}-${PV}.tar.gz;name=archive \ | ||
15 | file://no-static-link.patch \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[archive.md5sum] = "bca7bf47320082588db544ced2ba8717" | ||
19 | SRC_URI[archive.sha256sum] = "8a1e0eb55573388275a1d6c2534ca4cfca5d7fa772b99b505c08fa149b27aed0" | ||
20 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
21 | 2 | ||
22 | inherit distutils | 3 | inherit distutils |
23 | |||
24 | BBCLASSEXTEND = "native" | ||
25 | |||
26 | # Ensure the docstrings are generated as make clean will remove them | ||
27 | do_compile_prepend() { | ||
28 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py docstrings | ||
29 | } | ||
30 | |||
31 | do_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/python-pycurl:" | ||
2 | |||
3 | require python-pycurl.inc | ||
4 | |||
5 | inherit distutils3 | ||