Skip to contentSkip to conversation

python3-avahi: add recipe

PATCH In review Ioan-Adrian Ratiu 2 participants 4 messages Aug 27, 2018 – Aug 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-avahi: add recipe

From: Alejandro del Castillo <[email protected]>

---
 .../recipes-devtools/python/python-avahi.inc  | 32 ++++++++++++++++++
 .../python/python-avahi_0.6.32.bb             | 33 ++-----------------
 .../python/python3-avahi_0.6.32.bb            |  5 +++
 3 files changed, 39 insertions(+), 31 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-avahi.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb
meta-openstack/recipes-devtools/python/python-avahi.inc new file +32 -0
new file mode 100644
index 0000000..86cafe5
@@ -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"
meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb +2 -31
index c129337..7a54211 100644
@@ -1,34 +1,5 @@
-SUMMARY = "Python bindings for the avahi zeroconf client"
-HOMEPAGE = "https://github.com/lathiat/avahi"
-SECTION = "devel/python"
+require python-avahi.inc
 
-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 python-dir pythonnative
-
-# we only need the python bindings
-do_install () {
-	install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi
-
-	sed -i'' -e "s,@PYTHON\@,${bindir}/python,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
-}
+inherit python-dir
 
 RDEPENDS_${PN} += "python-core python-dbus"
-
-FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi"
meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb new file +5 -0
new file mode 100644
index 0000000..4b85cd5
@@ -0,0 +1,5 @@
+require python-avahi.inc
+
+inherit python3-dir
+
+RDEPENDS_${PN} += "python3-core python3-dbus"
Signature · 1 line
2.18.0
#1 lore raw

PATCH 2/2 python3-pika: add recipe

From: Alejandro del Castillo <[email protected]>

---
 .../recipes-devtools/python/python-pika.inc        | 13 +++++++++++++
 .../recipes-devtools/python/python-pika_git.bb     | 14 +-------------
 .../recipes-devtools/python/python3-pika_git.bb    |  3 +++
 3 files changed, 17 insertions(+), 13 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-pika.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-pika_git.bb
meta-openstack/recipes-devtools/python/python-pika.inc new file +13 -0
new file mode 100644
index 0000000..d33979d
@@ -0,0 +1,13 @@
+SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library"
+HOMEPAGE = "https://github.com/pika/pika"
+SECTION = "devel/python"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c"
+
+PV = "0.10.0+git${SRCPV}"
+SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6"
+
+SRC_URI = "git://github.com/pika/pika"
+
+S = "${WORKDIR}/git"
meta-openstack/recipes-devtools/python/python-pika_git.bb +1 -13
index 6d2e55a..9d58184 100644
@@ -1,15 +1,3 @@
-SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library"
-HOMEPAGE = "https://github.com/pika/pika"
-SECTION = "devel/python"
-
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c"
-
-PV = "0.10.0+git${SRCPV}"
-SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6"
-
-SRC_URI = "git://github.com/pika/pika"
-
-S = "${WORKDIR}/git"
+require python-pika.inc
 
 inherit setuptools
meta-openstack/recipes-devtools/python/python3-pika_git.bb new file +3 -0
new file mode 100644
index 0000000..93f50b4
@@ -0,0 +1,3 @@
+require python-pika.inc
+
+inherit setuptools3
Signature · 1 line
2.18.0
#2 lore raw

Re: [meta-openstack][PATCH 2/2] python3-pika: add recipe

merged.

Bruce

Quoted 64 lines · Ioan-Adrian Ratiu

From: Alejandro del Castillo <[email protected]>

---
 .../recipes-devtools/python/python-pika.inc        | 13 +++++++++++++
 .../recipes-devtools/python/python-pika_git.bb     | 14 +-------------
 .../recipes-devtools/python/python3-pika_git.bb    |  3 +++
 3 files changed, 17 insertions(+), 13 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-pika.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-pika_git.bb
meta-openstack/recipes-devtools/python/python-pika.inc new file +13 -0
new file mode 100644
index 0000000..d33979d
@@ -0,0 +1,13 @@
+SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library"
+HOMEPAGE = "https://github.com/pika/pika"
+SECTION = "devel/python"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c"
+
+PV = "0.10.0+git${SRCPV}"
+SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6"
+
+SRC_URI = "git://github.com/pika/pika"
+
+S = "${WORKDIR}/git"
meta-openstack/recipes-devtools/python/python-pika_git.bb +1 -13
index 6d2e55a..9d58184 100644
@@ -1,15 +1,3 @@
-SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library"
-HOMEPAGE = "https://github.com/pika/pika"
-SECTION = "devel/python"
-
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c"
-
-PV = "0.10.0+git${SRCPV}"
-SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6"
-
-SRC_URI = "git://github.com/pika/pika"
-
-S = "${WORKDIR}/git"
+require python-pika.inc
 
 inherit setuptools
meta-openstack/recipes-devtools/python/python3-pika_git.bb new file +3 -1
new file mode 100644
index 0000000..93f50b4
@@ -0,0 +1,3 @@
+require python-pika.inc
+
+inherit setuptools3
--

2.18.0

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#3 lore raw
In reply to Ioan-Adrian Ratiu

merged

Bruce

Quoted 105 lines · Ioan-Adrian Ratiu

From: Alejandro del Castillo <[email protected]>

---
 .../recipes-devtools/python/python-avahi.inc  | 32 ++++++++++++++++++
 .../python/python-avahi_0.6.32.bb             | 33 ++-----------------
 .../python/python3-avahi_0.6.32.bb            |  5 +++
 3 files changed, 39 insertions(+), 31 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-avahi.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb
meta-openstack/recipes-devtools/python/python-avahi.inc new file +32 -0
new file mode 100644
index 0000000..86cafe5
@@ -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"
meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb +2 -31
index c129337..7a54211 100644
@@ -1,34 +1,5 @@
-SUMMARY = "Python bindings for the avahi zeroconf client"
-HOMEPAGE = "https://github.com/lathiat/avahi"
-SECTION = "devel/python"
+require python-avahi.inc
 
-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 python-dir pythonnative
-
-# we only need the python bindings
-do_install () {
-       install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi
-
-       sed -i'' -e "s,@PYTHON\@,${bindir}/python,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
-}
+inherit python-dir
 
 RDEPENDS_${PN} += "python-core python-dbus"
-
-FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi"
meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb new file +5 -1
new file mode 100644
index 0000000..4b85cd5
@@ -0,0 +1,5 @@
+require python-avahi.inc
+
+inherit python3-dir
+
+RDEPENDS_${PN} += "python3-core python3-dbus"
--

2.18.0

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"