From 2176dc0bbf7e5ce63f8a25d9cab873a1c651ec3a Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Tue, 21 Aug 2012 00:25:26 +0300 Subject: RPI.GPIO: Integrate v0.2.0 Patch was added to use setuptools that we already have integrated in yocto and not the one provided in package. In his way we can use setuptools bbclass. [GITHUB #36] Signed-off-by: Andrei Gherzan --- .../python/RPi-GPIO/don-t-install-setuptools.patch | 16 ++++++++++++++++ recipes-devtools/python/RPi-GPIO_0.2.0.bb | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 recipes-devtools/python/RPi-GPIO/don-t-install-setuptools.patch create mode 100644 recipes-devtools/python/RPi-GPIO_0.2.0.bb (limited to 'recipes-devtools') diff --git a/recipes-devtools/python/RPi-GPIO/don-t-install-setuptools.patch b/recipes-devtools/python/RPi-GPIO/don-t-install-setuptools.patch new file mode 100644 index 0000000..bc71443 --- /dev/null +++ b/recipes-devtools/python/RPi-GPIO/don-t-install-setuptools.patch @@ -0,0 +1,16 @@ +We already have setuptools python module so we will use that and not the +one provided in this package. + +Upstream-Status: Inappropriate [embedded specific] +Signed-off-by: Andrei Gherzan + +Index: RPi.GPIO-0.2.0/setup.py +=================================================================== +--- RPi.GPIO-0.2.0.orig/setup.py 2012-05-24 13:17:31.000000000 +0300 ++++ RPi.GPIO-0.2.0/setup.py 2012-08-22 00:56:59.049001018 +0300 +@@ -1,6 +1,4 @@ + #!/usr/bin/env python +-import distribute_setup +-distribute_setup.use_setuptools() + from setuptools import setup, find_packages + import platform diff --git a/recipes-devtools/python/RPi-GPIO_0.2.0.bb b/recipes-devtools/python/RPi-GPIO_0.2.0.bb new file mode 100644 index 0000000..73122cd --- /dev/null +++ b/recipes-devtools/python/RPi-GPIO_0.2.0.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "A module to control Raspberry Pi GPIO channels" +HOMEPAGE = "http://code.google.com/p/raspberry-gpio-python/" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=ee5754ae9d5f8061d6d4ccd9c9fe0061" + +SRCNAME = "RPi.GPIO" +PR = "r0" + +SRC_URI = "\ + http://pypi.python.org/packages/source/R/RPi.GPIO/${SRCNAME}-${PV}.tar.gz \ + file://don-t-install-setuptools.patch \ + " +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +COMPATIBLE_MACHINE = "raspberrypi" + +SRC_URI[md5sum] = "0fc4bfa6aabc856b0b75252a40ac75cc" +SRC_URI[sha256sum] = "fcfd97dc9687dde76b13b9d12c122e71b13e2ba09a62913d7b8d9ddbb3e8cabf" -- cgit v1.2.3-54-g00ecf