Skip to contentSkip to conversation

python-evdev: add python3 version of the recipe

PATCH New Maxin B. John 1 participant 1 message Feb 20, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-evdev: add python3 version of the recipe

---
 meta-python/recipes-devtools/python/python-evdev.inc    | 15 +++++++++++++++
 .../recipes-devtools/python/python-evdev_0.7.0.bb       | 17 +----------------
 .../recipes-devtools/python/python3-evdev_0.7.0.bb      |  2 ++
 3 files changed, 18 insertions(+), 16 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-evdev.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-evdev_0.7.0.bb
meta-python/recipes-devtools/python/python-evdev.inc new file +15 -0
new file mode 100644
index 0000000..ccd5077
@@ -0,0 +1,15 @@
+SUMMARY = "Python evdev lib"
+HOMEPAGE = "https://github.com/gvalkov/python-evdev"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=18debddbb3f52c661a129724a883a8e2"
+
+SRC_URI[md5sum] = "c7e855ae9f97f869a59e75b29f05ce74"
+SRC_URI[sha256sum] = "57edafc469a414f58b51af1bfb9ee2babb9f626dd2df530d71c1176871850aa1"
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-ctypes \
+    ${PYTHON_PN}-fcntl \
+    ${PYTHON_PN}-io \
+    ${PYTHON_PN}-shell \
+    ${PYTHON_PN}-stringold \
+    "
meta-python/recipes-devtools/python/python-evdev_0.7.0.bb +1 -16
index 0875da4..6354136 100644
@@ -1,17 +1,2 @@
-SUMMARY = "Python evdev lib"
-HOMEPAGE = "https://github.com/gvalkov/python-evdev"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=18debddbb3f52c661a129724a883a8e2"
-
-SRC_URI[md5sum] = "c7e855ae9f97f869a59e75b29f05ce74"
-SRC_URI[sha256sum] = "57edafc469a414f58b51af1bfb9ee2babb9f626dd2df530d71c1176871850aa1"
-
 inherit pypi setuptools
-
-RDEPENDS_${PN} += "\
-    ${PYTHON_PN}-ctypes \
-    ${PYTHON_PN}-fcntl \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-shell \
-    ${PYTHON_PN}-stringold \
-    "
+require python-evdev.inc
meta-python/recipes-devtools/python/python3-evdev_0.7.0.bb new file +2 -0
new file mode 100644
index 0000000..3a92b6e
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-evdev.inc
Signature · 1 line
2.4.0