diff options
author | zangrc <zangrc.fnst@cn.fujitsu.com> | 2020-09-01 09:57:43 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-09-02 16:33:20 -0400 |
commit | c13d33a4bb7cfc39c9bea7a1085e045d6fea3ff8 (patch) | |
tree | 4d6362c358532acd33a5bd1753448f02bb01c89c | |
parent | 8e51aa87401679ccb425e580b59f02518b98baf8 (diff) | |
download | meta-cloud-services-c13d33a4bb7cfc39c9bea7a1085e045d6fea3ff8.tar.gz |
python3-avahi: Consolidate in a single file
Consolidate inc and bb files into a single bb file.
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-avahi.inc | 32 | ||||
-rw-r--r-- | meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb | 34 |
2 files changed, 31 insertions, 35 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-avahi.inc b/meta-openstack/recipes-devtools/python/python-avahi.inc deleted file mode 100644 index c235959..0000000 --- a/meta-openstack/recipes-devtools/python/python-avahi.inc +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | SUMMARY = "Python bindings for the avahi zeroconf client" | ||
2 | HOMEPAGE = "https://github.com/lathiat/avahi" | ||
3 | SECTION = "devel/python" | ||
4 | |||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
7 | |||
8 | SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz" | ||
9 | |||
10 | SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013" | ||
11 | SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454" | ||
12 | |||
13 | S = "${WORKDIR}/avahi-${PV}" | ||
14 | |||
15 | inherit python3native | ||
16 | |||
17 | # we only need the python bindings | ||
18 | do_install () { | ||
19 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi | ||
20 | |||
21 | sed -i'' -e "s,@PYTHON\@,${bindir}/${PYTHON_PN},g" \ | ||
22 | ${S}/avahi-python/avahi/__init__.py \ | ||
23 | ${S}/avahi-python/avahi-bookmarks.in | ||
24 | |||
25 | install -m 0775 ${S}/avahi-python/avahi/__init__.py \ | ||
26 | ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/__init__.py | ||
27 | |||
28 | install -m 0775 ${S}/avahi-python/avahi-bookmarks.in \ | ||
29 | ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/avahi-bookmarks | ||
30 | } | ||
31 | |||
32 | FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi" | ||
diff --git a/meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb b/meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb index 4b85cd5..b5d3e77 100644 --- a/meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb +++ b/meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb | |||
@@ -1,5 +1,33 @@ | |||
1 | require python-avahi.inc | 1 | RDEPENDS_${PN} += "python3-core python3-dbus" |
2 | SUMMARY = "Python bindings for the avahi zeroconf client" | ||
3 | HOMEPAGE = "https://github.com/lathiat/avahi" | ||
4 | SECTION = "devel/python" | ||
2 | 5 | ||
3 | inherit python3-dir | 6 | LICENSE = "GPLv2+" |
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
4 | 8 | ||
5 | RDEPENDS_${PN} += "python3-core python3-dbus" | 9 | SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz" |
10 | |||
11 | SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013" | ||
12 | SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454" | ||
13 | |||
14 | S = "${WORKDIR}/avahi-${PV}" | ||
15 | |||
16 | inherit python3native python3-dir | ||
17 | |||
18 | # we only need the python bindings | ||
19 | do_install () { | ||
20 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi | ||
21 | |||
22 | sed -i'' -e "s,@PYTHON\@,${bindir}/${PYTHON_PN},g" \ | ||
23 | ${S}/avahi-python/avahi/__init__.py \ | ||
24 | ${S}/avahi-python/avahi-bookmarks.in | ||
25 | |||
26 | install -m 0775 ${S}/avahi-python/avahi/__init__.py \ | ||
27 | ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/__init__.py | ||
28 | |||
29 | install -m 0775 ${S}/avahi-python/avahi-bookmarks.in \ | ||
30 | ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/avahi-bookmarks | ||
31 | } | ||
32 | |||
33 | FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi" | ||