Skip to contentSkip to conversation

libgpiod: update to 1.1

PATCH In review Martin Hundebøll 2 participants 3 messages May 23, 2018 – Jun 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libgpiod: update to 1.1

Add native dependency on autoconf-archive as it is now used by the libgpiod autotools.

---
 meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb | 4 ----
 meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb   | 6 ++++++
 2 files changed, 6 insertions(+), 4 deletions(-)
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb
meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb deleted +0 -4
deleted file mode 100644
index 51499fd72..000000000
@@ -1,4 +0,0 @@
-require libgpiod.inc
-
-SRC_URI[md5sum] = "2ca0c3eb17d69e367b6f6a109ca86e41"
-SRC_URI[sha256sum] = "972924195367f5fb045c023d65340c4b7dfc8764499516be446553865208dedc"
meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb new file +6 -0
new file mode 100644
index 000000000..c2e11ad38
@@ -0,0 +1,6 @@
+require libgpiod.inc
+
+DEPENDS += "autoconf-archive-native"
+
+SRC_URI[md5sum] = "80237a047a9d653a14c5d71e5ce9d641"
+SRC_URI[sha256sum] = "9758466468a7ef3f5e30c182c1303abef6241e665cda4d82a64328a7474838c1"
Signature · 1 line
2.17.0
#1 lore raw

PATCH 2/2 libgpiod: add packageconfig for python bindings

---
 meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb +8 -0
index c2e11ad38..1bda8bc3a 100644
@@ -4,3 +4,11 @@ DEPENDS += "autoconf-archive-native"
 
 SRC_URI[md5sum] = "80237a047a9d653a14c5d71e5ce9d641"
 SRC_URI[sha256sum] = "9758466468a7ef3f5e30c182c1303abef6241e665cda4d82a64328a7474838c1"
+
+PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3,python3-core"
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}
+
+PACKAGES =+ "${PN}-python"
+FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
+RRECOMMENDS_PYTHON = "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '',d)}"
+RRECOMMENDS_${PN} += "${RRECOMMENDS_PYTHON}"
Signature · 1 line
2.17.0
#2 lore raw

Re: [meta-oe][PATCH 2/2] libgpiod: add packageconfig for python bindings

2018-05-23 20:23 GMT+02:00 Martin Hundebøll <[email protected]>:

Quoted 22 lines
---
 meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb +8 -1
index c2e11ad38..1bda8bc3a 100644
@@ -4,3 +4,11 @@ DEPENDS += "autoconf-archive-native"
 
 SRC_URI[md5sum] = "80237a047a9d653a14c5d71e5ce9d641"
 SRC_URI[sha256sum] = "9758466468a7ef3f5e30c182c1303abef6241e665cda4d82a64328a7474838c1"
+
+PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3,python3-core"
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}
+
+PACKAGES =+ "${PN}-python"
+FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
+RRECOMMENDS_PYTHON = "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '',d)}"
+RRECOMMENDS_${PN} += "${RRECOMMENDS_PYTHON}"
--
Quoted 2 lines

2.17.0

Thanks! Could you maybe do the same for C++ bindings?

Bart