python-nfc: new package
PATCH 1/1 python-nfc: new package
From: Simon Dawson <[email protected]>
--- package/Config.in | 1 + package/python-nfc/Config.in | 9 +++++++++ package/python-nfc/python-nfc.mk | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 package/python-nfc/Config.in create mode 100644 package/python-nfc/python-nfc.mk
package/Config.in +1 -0
@@ -269,6 +269,7 @@ source "package/python-dpkt/Config.in" source "package/python-id3/Config.in" source "package/python-mad/Config.in" source "package/python-netifaces/Config.in" +source "package/python-nfc/Config.in" source "package/python-pygame/Config.in" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in"
package/python-nfc/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_NFC + bool "python-nfc" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_LIBUSB + select BR2_PACKAGE_LIBUSB_COMPAT + help + Python module for near field communication. + + https://launchpad.net/nfcpy
package/python-nfc/python-nfc.mk new file +20 -0
@@ -0,0 +1,20 @@ +############################################################# +# +# python-nfc +# +############################################################# +PYTHON_NFC_VERSION = 112 +PYTHON_NFC_SITE = https://launchpad.net/nfcpy +PYTHON_NFC_SITE_METHOD = bzr +PYTHON_NFC_DEPENDENCIES = python libusb libusb-compat + +define PYTHON_NFC_INSTALL_TARGET_CMDS + $(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/nfc + cp -a $(@D)/nfc $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR) +endef + +define PYTHON_NFC_UNINSTALL_TARGET_CMDS + $(RM) -r $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/nfc +endef + +$(eval $(generic-package))
Signature · 1 line
1.7.9.5
PATCH 1/1 python-nfc: new package
Le Fri, 20 Jul 2012 09:58:12 +0100,
spdawson at gmail.com a ?crit :
Quoted 3 lines
From: Simon Dawson <[email protected]>
Signed-off-by Simon Dawson <[email protected]>
Thanks, I have merged this, but I created a setup.py file to make the build and installation process more conventional. The thing that decided me to do this is that the package you proposed installed only .py files, and those are removed by default by Buildroot, which only keep .pyc files on the target.
If you have the time, it would be nice to submit the setup.py to the upstream project.
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 python-nfc: new package
Quoted 2 lines · Thomas Petazzoni
If you have the time, it would be nice to submit the
setup.pyto the upstream project.
Thanks for your work on this Thomas. I'll see if I can get the setup script accepted upstream.
Simon.