Skip to contentSkip to conversation

python-slip-dbus: add recipe

PATCH Superseded [email protected] 2 participants 3 messages Jul 30, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-slip-dbus: add recipe

From: Roy Li <[email protected]>

---
 .../python/python-slip-dbus_0.6.0.bb               |   27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb
meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb new file +27 -0
new file mode 100644
index 0000000..2a7c139
@@ -0,0 +1,27 @@
+SUMMARY = "Convenience functions for dbus services in Python 2.x"
+HOMEPAGE = "http://nphilipp.fedorapeople.org/python-slip/"
+DESCRIPTION = "\
+The Simple Library for Python 2.x packages contain miscellaneous code for \
+convenience, extension and workaround purposes. \
+\
+This package provides slip.dbus.service.Object, which is a dbus.service.Object \
+derivative that ends itself after a certain time without being used and/or if \
+there are no clients anymore on the message bus, as well as convenience \
+functions and decorators for integrating a dbus service with PolicyKit."
+
+SECTION = "devel/python"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
+SRCNAME = "python-slip"
+
+SRC_URI = "https://fedorahosted.org/released/python-slip/python-slip-${PV}.tar.bz2"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+SRC_URI[md5sum] = "fb3299d75af1a67ca6679d96ce839da6"
+SRC_URI[sha256sum] = "f47361ec52b608309b83c71905e692b6b363eaf3b8a7afdeff866cd94463ad5c"
+
+do_compile_prepend() {
+    sed -e 's/@VERSION@/0.6.0/g' setup.py.in > setup.py
+}
Signature · 1 line
1.7.10.4
#1 lore raw

meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb line 17

Quoted 6 lines · On Tue, Jul 29, 2014 at 11:10 PM, <[email protected]> wrote:
meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb new file +6 -0
+SECTION = "devel/python"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
+SRCNAME = "python-slip"
+
+SRC_URI = "https://fedorahosted.org/released/python-slip/python-slip-${PV}.tar.bz2"

You could use SRCNAME in SRC_URI as well instead of hardcoding python-slip

meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb line 26

Quoted 9 lines
meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb new file +9 -0
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+SRC_URI[md5sum] = "fb3299d75af1a67ca6679d96ce839da6"
+SRC_URI[sha256sum] = "f47361ec52b608309b83c71905e692b6b363eaf3b8a7afdeff866cd94463ad5c"
+
+do_compile_prepend() {
+    sed -e 's/@VERSION@/0.6.0/g' setup.py.in > setup.py

could this somehow use PV and not 0.6.0 hardcoded ?

Quoted 1 line

+}

may be also run the recipe thru contrib/oe-stylize.py for formatting and structure.

#2 lore raw
Quoted 22 lines · Khem Raj

meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb line 17

Quoted 6 lines · On Tue, Jul 29, 2014 at 11:10 PM, <[email protected]> wrote:
meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb new file +6 -0
+SECTION = "devel/python"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
+SRCNAME = "python-slip"
+
+SRC_URI = "https://fedorahosted.org/released/python-slip/python-slip-${PV}.tar.bz2"

You could use SRCNAME in SRC_URI as well instead of hardcoding python-slip

meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb line 26

Quoted 9 lines
meta-python/recipes-python/python/python-slip-dbus_0.6.0.bb new file +9 -0
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+SRC_URI[md5sum] = "fb3299d75af1a67ca6679d96ce839da6"
+SRC_URI[sha256sum] = "f47361ec52b608309b83c71905e692b6b363eaf3b8a7afdeff866cd94463ad5c"
+
+do_compile_prepend() {
+    sed -e 's/@VERSION@/0.6.0/g' setup.py.in > setup.py

could this somehow use PV and not 0.6.0 hardcoded ?

Quoted 5 lines
Quoted 1 line

+}

may be also run the recipe thru contrib/oe-stylize.py for formatting and structure.

Thanks, I will change them

Signature · 2 lines
Best Reagrds,
Roy | RongQing Li