[oe-commits] =?UTF-8?Q?Dominic=20Sacr=C3=A9=20?=: python3-pyserial: Add new recipe

git at git.openembedded.org git at git.openembedded.org
Mon Aug 31 18:20:04 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: e10dd1e57741f8cd226d6080d02ee356eace0538
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=e10dd1e57741f8cd226d6080d02ee356eace0538

Author: Dominic Sacré <dominic.sacre at gmx.de>
Date:   Mon Aug 24 17:27:56 2015 +0200

python3-pyserial: Add new recipe

Use a common .inc file for the python-pyserial and python3-pyserial
recipes.
Remove ${bindir}/miniterm.py from the Python 3 version of the package.

Signed-off-by: Dominic Sacré <dominic.sacre at gmx.de>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../recipes-devtools/python/python-pyserial.inc     | 19 +++++++++++++++++++
 .../recipes-devtools/python/python-pyserial_2.7.bb  | 21 +--------------------
 .../recipes-devtools/python/python3-pyserial_2.7.bb |  7 +++++++
 3 files changed, 27 insertions(+), 20 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-pyserial.inc b/meta-python/recipes-devtools/python/python-pyserial.inc
new file mode 100644
index 0000000..0fd6747
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pyserial.inc
@@ -0,0 +1,19 @@
+SUMMARY = "Serial Port Support for Python"
+SECTION = "devel/python"
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c557c64905dac5b725980b9505bf8d7b"
+SRCNAME = "pyserial"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+# FIXME might stop packaging serialwin32 and serialjava files
+
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-fcntl \
+    ${PYTHON_PN}-io \
+    ${PYTHON_PN}-stringold \
+"
+
+SRC_URI[md5sum] = "794506184df83ef2290de0d18803dd11"
+SRC_URI[sha256sum] = "3542ec0838793e61d6224e27ff05e8ce4ba5a5c5cc4ec5c6a3e8d49247985477"
diff --git a/meta-python/recipes-devtools/python/python-pyserial_2.7.bb b/meta-python/recipes-devtools/python/python-pyserial_2.7.bb
index 276db34..ad2b350 100644
--- a/meta-python/recipes-devtools/python/python-pyserial_2.7.bb
+++ b/meta-python/recipes-devtools/python/python-pyserial_2.7.bb
@@ -1,21 +1,2 @@
-SUMMARY = "Serial Port Support for Python"
-SECTION = "devel/python"
-LICENSE = "PSF"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c557c64905dac5b725980b9505bf8d7b"
-SRCNAME = "pyserial"
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
 inherit setuptools
-
-# FIXME might stop packaging serialwin32 and serialjava files
-
-RDEPENDS_${PN} = "\
-    python-fcntl \
-    python-io \
-    python-stringold \
-"
-
-SRC_URI[md5sum] = "794506184df83ef2290de0d18803dd11"
-SRC_URI[sha256sum] = "3542ec0838793e61d6224e27ff05e8ce4ba5a5c5cc4ec5c6a3e8d49247985477"
+require python-pyserial.inc
diff --git a/meta-python/recipes-devtools/python/python3-pyserial_2.7.bb b/meta-python/recipes-devtools/python/python3-pyserial_2.7.bb
new file mode 100644
index 0000000..17ed3f8
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyserial_2.7.bb
@@ -0,0 +1,7 @@
+inherit setuptools3
+require python-pyserial.inc
+
+do_install_append() {
+    rm -f ${D}${bindir}/miniterm.py
+    rmdir ${D}${bindir}
+}



More information about the Openembedded-commits mailing list