Skip to contentSkip to conversation

python-rpi-gpio: new package

PATCH New Ian Haylock 3 participants 3 messages Jan 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-rpi-gpio: new package

---
 package/Config.in                            |  1 +
 package/python-rpi-gpio/Config.in            |  7 +++++++
 package/python-rpi-gpio/python-rpi-gpio.hash |  3 +++
 package/python-rpi-gpio/python-rpi-gpio.mk   | 14 ++++++++++++++
 4 files changed, 25 insertions(+)
 create mode 100755 package/python-rpi-gpio/Config.in
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.hash
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.mk
package/Config.in +1 -0
index 442021f..a1cf595 100644
@@ -690,6 +690,7 @@ menu "External python modules"
 	source "package/python-pyyaml/Config.in"
 	source "package/python-pyzmq/Config.in"
 	source "package/python-requests/Config.in"
+	source "package/python-rpi-gpio/Config.in"
 	source "package/python-rtslib-fb/Config.in"
 	source "package/python-serial/Config.in"
 	source "package/python-setuptools/Config.in"
package/python-rpi-gpio/Config.in new file +7 -0
new file mode 100755
index 0000000..908ab45
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_RPI_GPIO
+	bool "python-rpi-gpio"
+	depends on BR2_arm
+	  help
+	  A Python module to control the GPIO on a Raspberry Pi.
+
+	  http://sourceforge.net/p/raspberry-gpio-python
\ No newline at end of file
package/python-rpi-gpio/python-rpi-gpio.hash new file +3 -0
new file mode 100755
index 0000000..46c4e5b
@@ -0,0 +1,3 @@
+# md5sum from http://sourceforge.net/projects/raspberry-gpio-python/files/, sha256 calculated locally
+md5	254d0443a436eb241367c487274e7197	RPi.GPIO-0.6.1.tar.gz
+sha256	54e5fb06d9ea1a1389a497fb5a06dfa950c86303b0f4ba89b68c55999d1df064	RPi.GPIO-0.6.1.tar.gz
\ No newline at end of file
package/python-rpi-gpio/python-rpi-gpio.mk new file +14 -0
new file mode 100755
index 0000000..aa086dc
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-rpi-gpio
+#
+################################################################################
+
+PYTHON_RPI_GPIO_VERSION = 0.6.1
+PYTHON_RPI_GPIO_SOURCE = RPi.GPIO-$(PYTHON_RPI_GPIO_VERSION).tar.gz
+PYTHON_RPI_GPIO_SITE = http://sourceforge.net/projects/raspberry-gpio-python/files
+PYTHON_RPI_GPIO_LICENSE = MIT
+PYTHON_RPI_GPIO_LICENSE_FILES = LICENSE.txt
+PYTHON_RPI_GPIO_SETUP_TYPE = distutils
+
+$(eval $(python-package))
\ No newline at end of file
Signature · 1 line
2.6.4
#1 lore raw

PATCH 1/1 python-rpi-gpio: new package

Quoted 1 line · Ian Haylock
Quoted 74 lines
---
 package/Config.in                            |  1 +
 package/python-rpi-gpio/Config.in            |  7 +++++++
 package/python-rpi-gpio/python-rpi-gpio.hash |  3 +++
 package/python-rpi-gpio/python-rpi-gpio.mk   | 14 ++++++++++++++
 4 files changed, 25 insertions(+)
 create mode 100755 package/python-rpi-gpio/Config.in
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.hash
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.mk
package/Config.in +1 -0
index 442021f..a1cf595 100644
@@ -690,6 +690,7 @@ menu "External python modules"
        source "package/python-pyyaml/Config.in"
        source "package/python-pyzmq/Config.in"
        source "package/python-requests/Config.in"
+       source "package/python-rpi-gpio/Config.in"
        source "package/python-rtslib-fb/Config.in"
        source "package/python-serial/Config.in"
        source "package/python-setuptools/Config.in"
package/python-rpi-gpio/Config.in new file +7 -0
new file mode 100755
index 0000000..908ab45
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_RPI_GPIO
+       bool "python-rpi-gpio"
+       depends on BR2_arm
+         help
+         A Python module to control the GPIO on a Raspberry Pi.
+
+         http://sourceforge.net/p/raspberry-gpio-python
\ No newline at end of file
package/python-rpi-gpio/python-rpi-gpio.hash new file +3 -0
new file mode 100755
index 0000000..46c4e5b
@@ -0,0 +1,3 @@
+# md5sum from http://sourceforge.net/projects/raspberry-gpio-python/files/, sha256 calculated locally
+md5    254d0443a436eb241367c487274e7197        RPi.GPIO-0.6.1.tar.gz
+sha256 54e5fb06d9ea1a1389a497fb5a06dfa950c86303b0f4ba89b68c55999d1df064        RPi.GPIO-0.6.1.tar.gz
\ No newline at end of file
package/python-rpi-gpio/python-rpi-gpio.mk new file +14 -1
new file mode 100755
index 0000000..aa086dc
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-rpi-gpio
+#
+################################################################################
+
+PYTHON_RPI_GPIO_VERSION = 0.6.1
+PYTHON_RPI_GPIO_SOURCE = RPi.GPIO-$(PYTHON_RPI_GPIO_VERSION).tar.gz
+PYTHON_RPI_GPIO_SITE = http://sourceforge.net/projects/raspberry-gpio-python/files
+PYTHON_RPI_GPIO_LICENSE = MIT
+PYTHON_RPI_GPIO_LICENSE_FILES = LICENSE.txt
+PYTHON_RPI_GPIO_SETUP_TYPE = distutils
+
+$(eval $(python-package))
\ No newline at end of file
--

2.6.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw

PATCH 1/1 python-rpi-gpio: new package

In reply to Ian Haylock

Ian,

Thanks for your patch!

package/python-rpi-gpio/Config.in line 4

Quoted 10 lines · Ian Haylock
package/python-rpi-gpio/Config.in new file +4 -0
new file mode 100755
index 0000000..908ab45
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_RPI_GPIO
+	bool "python-rpi-gpio"
+	depends on BR2_arm
+	  help

Indentation of "help" should be one tab, like "bool" and "depends on".

package/python-rpi-gpio/Config.in line 7

Quoted 4 lines
package/python-rpi-gpio/Config.in new file +3 -0
+	  A Python module to control the GPIO on a Raspberry Pi.
+
+	  http://sourceforge.net/p/raspberry-gpio-python
\ No newline at end of file

You should end the file with a newline.

package/python-rpi-gpio/python-rpi-gpio.hash line 3

Quoted 10 lines
package/python-rpi-gpio/python-rpi-gpio.hash new file +3 -0
new file mode 100755
index 0000000..46c4e5b
@@ -0,0 +1,3 @@
+# md5sum from http://sourceforge.net/projects/raspberry-gpio-python/files/, sha256 calculated locally
+md5	254d0443a436eb241367c487274e7197	RPi.GPIO-0.6.1.tar.gz
+sha256	54e5fb06d9ea1a1389a497fb5a06dfa950c86303b0f4ba89b68c55999d1df064	RPi.GPIO-0.6.1.tar.gz
\ No newline at end of file

Ditto.

Quoted 11 lines
package/python-rpi-gpio/python-rpi-gpio.mk new file +5 -0
new file mode 100755
index 0000000..aa086dc
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-rpi-gpio
+#
+################################################################################

package/python-rpi-gpio/python-rpi-gpio.mk line 14

Quoted 10 lines
package/python-rpi-gpio/python-rpi-gpio.mk new file +9 -0
+
+PYTHON_RPI_GPIO_VERSION = 0.6.1
+PYTHON_RPI_GPIO_SOURCE = RPi.GPIO-$(PYTHON_RPI_GPIO_VERSION).tar.gz
+PYTHON_RPI_GPIO_SITE = http://sourceforge.net/projects/raspberry-gpio-python/files
+PYTHON_RPI_GPIO_LICENSE = MIT
+PYTHON_RPI_GPIO_LICENSE_FILES = LICENSE.txt
+PYTHON_RPI_GPIO_SETUP_TYPE = distutils
+
+$(eval $(python-package))
\ No newline at end of file

Ditto.

Other than that, looks good to me.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com