diff options
author | Tim Orling <timothy.t.orling@linux.intel.com> | 2017-11-18 18:11:59 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-13 14:00:52 +0000 |
commit | a357f8b6249b47a273deebe56eb18206d3299a23 (patch) | |
tree | 5e834bc6d885162e77d2a07bbab493ad9e287200 | |
parent | 23626bd9025aad8a10d7cb13796a493e9db816e1 (diff) | |
download | poky-a357f8b6249b47a273deebe56eb18206d3299a23.tar.gz |
python-smmap: use pypi.bbclass
* Simpify python3-smmap using pypi.bbclass
* Consolidate common content in .inc
(From OE-Core rev: f976a76116bb69ca3603de36b7327615e3e947c2)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/python/python-smmap.inc | 12 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-smmap_0.9.0.bb | 5 |
2 files changed, 7 insertions, 10 deletions
diff --git a/meta/recipes-devtools/python/python-smmap.inc b/meta/recipes-devtools/python/python-smmap.inc index d67e6b5412..32438350c1 100644 --- a/meta/recipes-devtools/python/python-smmap.inc +++ b/meta/recipes-devtools/python/python-smmap.inc | |||
@@ -7,13 +7,13 @@ SECTION = "devel/python" | |||
7 | LICENSE = "BSD" | 7 | LICENSE = "BSD" |
8 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709" | 8 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709" |
9 | 9 | ||
10 | SRC_URI = "https://files.pythonhosted.org/packages/source/s/smmap/smmap-${PV}.tar.gz" | 10 | inherit pypi |
11 | |||
11 | SRC_URI[md5sum] = "d7932d5ace206bf4ae15198cf36fb6ab" | 12 | SRC_URI[md5sum] = "d7932d5ace206bf4ae15198cf36fb6ab" |
12 | SRC_URI[sha256sum] = "0e2b62b497bd5f0afebc002eda4d90df9d209c30ef257e8673c90a6b5c119d62" | 13 | SRC_URI[sha256sum] = "0e2b62b497bd5f0afebc002eda4d90df9d209c30ef257e8673c90a6b5c119d62" |
13 | 14 | ||
14 | UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/smmap/" | 15 | RDEPENDS_${PN} += "${PYTHON_PN}-codecs \ |
15 | UPSTREAM_CHECK_REGEX = "/smmap/(?P<pver>(\d+[\.\-_]*)+)" | 16 | ${PYTHON_PN}-lang \ |
16 | 17 | ${PYTHON_PN}-mmap \ | |
17 | S = "${WORKDIR}/smmap-${PV}" | 18 | " |
18 | |||
19 | BBCLASSEXTEND = "nativesdk" | 19 | BBCLASSEXTEND = "nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-smmap_0.9.0.bb b/meta/recipes-devtools/python/python3-smmap_0.9.0.bb index 9f8a26d79e..e87b8df8c5 100644 --- a/meta/recipes-devtools/python/python3-smmap_0.9.0.bb +++ b/meta/recipes-devtools/python/python3-smmap_0.9.0.bb | |||
@@ -1,5 +1,2 @@ | |||
1 | require python-smmap.inc | ||
2 | |||
3 | inherit setuptools3 | 1 | inherit setuptools3 |
4 | 2 | require python-smmap.inc | |
5 | RDEPENDS_${PN} += "python3-codecs python3-mmap python3-lang" | ||