From dab173f71827a7c3ac2381f08c016bd38ef0665e Mon Sep 17 00:00:00 2001 From: Alejandro del Castillo Date: Mon, 27 Aug 2018 15:12:26 +0300 Subject: python3-avahi: add recipe Signed-off-by: Alejandro del Castillo Signed-off-by: Ioan-Adrian Ratiu Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-avahi.inc | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-avahi.inc (limited to 'meta-openstack/recipes-devtools/python/python-avahi.inc') diff --git a/meta-openstack/recipes-devtools/python/python-avahi.inc b/meta-openstack/recipes-devtools/python/python-avahi.inc new file mode 100644 index 0000000..86cafe5 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-avahi.inc @@ -0,0 +1,32 @@ +SUMMARY = "Python bindings for the avahi zeroconf client" +HOMEPAGE = "https://github.com/lathiat/avahi" +SECTION = "devel/python" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" + +SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz" + +SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013" +SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454" + +S = "${WORKDIR}/avahi-${PV}" + +inherit pythonnative + +# we only need the python bindings +do_install () { + install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi + + sed -i'' -e "s,@PYTHON\@,${bindir}/${PYTHON_PN},g" \ + ${S}/avahi-python/avahi/__init__.py \ + ${S}/avahi-python/avahi-bookmarks.in + + install -m 0775 ${S}/avahi-python/avahi/__init__.py \ + ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/__init__.py + + install -m 0775 ${S}/avahi-python/avahi-bookmarks.in \ + ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/avahi-bookmarks +} + +FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi" -- cgit v1.2.3-54-g00ecf