python-crc16: new package
PATCH 1/1 python-crc16: new package
A python library that calculates CRC checksums of the CCITT/XModem variant.
---
Initial version v1.
package/Config.in | 1 + package/python-crc16/Config.in | 11 +++++++++++ package/python-crc16/python-crc1.mk | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 package/python-crc16/Config.in create mode 100644 package/python-crc16/python-crc1.mk
package/Config.in +1 -0
@@ -385,6 +385,7 @@ source "package/python/Config.in" if BR2_PACKAGE_PYTHON menu "external python modules" source "package/python-bottle/Config.in" +source "package/python-crc16/Config.in" source "package/python-dpkt/Config.in" source "package/python-id3/Config.in" source "package/python-mad/Config.in"
package/python-crc16/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_CRC16 + bool "python-crc16" + depends on BR2_PACKAGE_PYTHON + help + This library calculates only CRC16 (16-bit codes) and the + only supported variant at the moment is CRC-CCITT (XModem). + CRC is a way of detecting accidental changes in data storage + or transmission. There are many variants of CRC and CRC16, + in particular. + + http://pycrc16.googlecode.com/files/crc16-0.1.1.tar.gz
package/python-crc16/python-crc1.mk new file +34 -0
@@ -0,0 +1,34 @@ +################################################################################ +# +# python-crc16 +# +################################################################################ + +PYTHON_CRC16_VERSION = 0.1.1 +PYTHON_CRC16_SOURCE = crc16-$(PYTHON_CRC16_VERSION).tar.gz +PYTHON_CRC16_SITE = http://pycrc16.googlecode.com/files/ +PYTHON_CRC16_LICENSE = LGPLv3+ +PYTHON_CRC16_LICENSE_FILES = COPYING.txt +PYTHON_CRC16_DEPENDENCIES = python host-python + +PYTHON_CRC16_PARAMS = CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDSHARED="$(TARGET_CC) -shared" \ + CROSS_COMPILING=yes \ + _python_sysroot=$(STAGING_DIR) \ + _python_srcdir=$(PYTHON_DIR) \ + _python_prefix=/usr \ + _python_exec_prefix=/usr + +define PYTHON_CRC16_BUILD_CMDS + (cd $(@D); $(PYTHON_CRC16_PARAMS) \ + $(HOST_DIR)/usr/bin/python setup.py build) +endef + +define PYTHON_CRC16_INSTALL_TARGET_CMDS + (cd $(@D); $(PYTHON_CRC16_PARAMS) \ + $(HOST_DIR)/usr/bin/python setup.py install \ + --prefix=$(TARGET_DIR)/usr) +endef + +$(eval $(generic-package))
Signature · 1 line
1.7.9.5
PATCH v4 1/1 python-pyzmq: new package
The python language bindings for ZeroMQ.
---
Changes v3 -> v4
* removed leftover comment from testing phase
* removed unneccessary selection of python-hashlib
Changes v2 -> v3
* removed the description of the minimum version of ZeroMQ
* factored out the common parameters to the setup.py script
* fixed patch-hook naming and consistent naming of package, bool and filenames
* combined comments for toolchain dependencies
* added host-python dependency
Changes v1 -> v2
* cleaned up patch comments, formatting, dependencies
* removed the version of ZeroMQ in buildroot to ease version bumping
* improved license descriptions
package/Config.in | 1 + package/python-pyzmq/Config.in | 27 ++++++++++++ ...e-buildroot-zmq-version-instead-of-detect.patch | 43 ++++++++++++++++++++ package/python-pyzmq/python-pyzmq.mk | 43 ++++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 package/python-pyzmq/Config.in create mode 100644 package/python-pyzmq/python-pyzmq-0001-use-buildroot-zmq-version-instead-of-detect.patch create mode 100644 package/python-pyzmq/python-pyzmq.mk
package/Config.in +1 -0
@@ -395,6 +395,7 @@ source "package/python-protobuf/Config.in" source "package/python-pygame/Config.in" source "package/python-pyparsing/Config.in" source "package/python-pyro/Config.in" +source "package/python-pyzmq/Config.in" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in" source "package/python-thrift/Config.in"
package/python-pyzmq/Config.in new file +27 -0
@@ -0,0 +1,27 @@ +config BR2_PACKAGE_PYTHON_PYZMQ + bool "python-pyzmq" + depends on BR2_LARGEFILE # zeromq + depends on BR2_INET_IPV6 # zeromq + depends on BR2_USE_WCHAR # zeromq + depends on BR2_INSTALL_LIBSTDCPP # zeromq + depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_ZEROMQ + help + This package contains the python language binding for zeromq. + Due to issues with cross-compiling this package is hardcoded + to the ZeroMQ version of this buildroot. + + http://zeromq.org/bindings:python + +comment "python-pyzmq requires a toolchain with LARGEFILE support" + depends on !BR2_LARGEFILE + +comment "python-pyzmq requires a toolchain with IPv6 and WCHAR support" + depends on !(BR2_INET_IPV6 && BR2_USE_WCHAR) + +comment "python-pyzmq requires a toolchain with C++ support" + depends on !BR2_INSTALL_LIBSTDCPP + +comment "python-pyzmq requires a toolchain with thread support" + depends on !BR2_TOOLCHAIN_HAS_THREADS
package/python-pyzmq/python-pyzmq-0001-use-buildroot-zmq-version-instead-of-detect.patch new file +43 -0
43 lines not on this page · raw message
package/python-pyzmq/python-pyzmq.mk new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v4 1/1 python-pyzmq: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Michael" == Michael Rommel <[email protected]> writes:
Michael> The python language bindings for ZeroMQ.
Committed with minor changes (see below) - Thanks.
Michael> +config BR2_PACKAGE_PYTHON_PYZMQ
Michael> + bool "python-pyzmq"
Michael> + depends on BR2_LARGEFILE # zeromq
Michael> + depends on BR2_INET_IPV6 # zeromq
Michael> + depends on BR2_USE_WCHAR # zeromq
Michael> + depends on BR2_INSTALL_LIBSTDCPP # zeromq
Michael> + depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq
Michael> + depends on BR2_PACKAGE_PYTHON
Michael> + select BR2_PACKAGE_ZEROMQ
Michael> + help
Michael> + This package contains the python language binding for zeromq. Michael> + Due to issues with cross-compiling this package is hardcoded Michael> + to the ZeroMQ version of this buildroot.
This comment rather belongs in the .mk file where we do this, so I moved it just above the PATCH step.
Michael> +
Michael> + http://zeromq.org/bindings:python
Michael> +
Michael> +comment "python-pyzmq requires a toolchain with LARGEFILE support"
Michael> + depends on !BR2_LARGEFILE
Michael> +
Michael> +comment "python-pyzmq requires a toolchain with IPv6 and WCHAR support"
Michael> + depends on !(BR2_INET_IPV6 && BR2_USE_WCHAR)
Michael> +
Michael> +comment "python-pyzmq requires a toolchain with C++ support"
Michael> + depends on !BR2_INSTALL_LIBSTDCPP
Michael> +
Michael> +comment "python-pyzmq requires a toolchain with thread support"
Michael> + depends on !BR2_TOOLCHAIN_HAS_THREADS
We normally have a single line comment (E.G. like zeromq does it), so I changed that.
Signature · 1 line
Bye, Peter Korsgaard