python-protobuf: Add support for Python implementation of Google's Protocol Buffers
PATCH 1/1 python-protobuf: Add support for Python implementation of Google's Protocol Buffers
python-protobuf: Add support for Python implementation of Google's Protocol Buffers
--- package/python-protobuf/Config.in | 11 +++++++++++ package/python-protobuf/python-protobuf.mk | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 package/python-protobuf/Config.in create mode 100644 package/python-protobuf/python-protobuf.mk
package/python-protobuf/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_PROTOBUF + bool "python-protobuf" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_SETUPTOOLS + help + Python implementation of the Google Protocol Buffers. + + Protocol buffers are Google's language-neutral, platform-neutral, + extensible mechanism for serializing structured data. + + http://code.google.com/p/protobuf/
package/python-protobuf/python-protobuf.mk new file +28 -0
@@ -0,0 +1,28 @@ +############################################################# +# +# python-protobuf +# +############################################################# + +PYTHON_PROTOBUF_VERSION = $(PROTOBUF_VERSION) +PYTHON_PROTOBUF_SOURCE = $(PROTOBUF_SOURCE) +PYTHON_PROTOBUF_SITE = $(PROTOBUF_SITE) +PYTHON_PROTOBUF_LICENSE = BSD-3c +PYTHON_PROTOBUF_LICENSE_FILES = COPYING.txt + +PYTHON_PROTOBUF_DEPENDENCIES = python host-python-setuptools host-python-distutilscross host-protobuf + +define PYTHON_PROTOBUF_BUILD_CMDS + (cd $(@D)/python; \ + PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \ + LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \ + PATH=$(HOST_PATH) \ + $(HOST_DIR)/usr/bin/python setup.py build -x) +endef + +define PYTHON_PROTOBUF_INSTALL_TARGET_CMDS + (cd $(@D)/python; PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \ + $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr) +endef + +$(eval $(generic-package))
Signature · 1 line
1.7.3.4
PATCH 1/1 python-protobuf: Add support for Python implementation of Google's Protocol Buffers
Am 06.09.2012 22:58, schrieb Thiago A. Correa:
Quoted 52 lines
python-protobuf: Add support for Python implementation of Google's Protocol Buffers
Signed-off-by Thiago A. Correa <[email protected]>--- package/python-protobuf/Config.in | 11 +++++++++++ package/python-protobuf/python-protobuf.mk | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 package/python-protobuf/Config.in create mode 100644 package/python-protobuf/python-protobuf.mkpackage/python-protobuf/Config.in new file +11
-0@@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_PROTOBUF + bool "python-protobuf" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_SETUPTOOLS + help + Python implementation of the Google Protocol Buffers. + + Protocol buffers are Google's language-neutral, platform-neutral, + extensible mechanism for serializing structured data. + + http://code.google.com/p/protobuf/package/python-protobuf/python-protobuf.mk new file +18
-0@@ -0,0 +1,28 @@ +############################################################# +# +# python-protobuf +# +############################################################# + +PYTHON_PROTOBUF_VERSION = $(PROTOBUF_VERSION) +PYTHON_PROTOBUF_SOURCE = $(PROTOBUF_SOURCE) +PYTHON_PROTOBUF_SITE = $(PROTOBUF_SITE) +PYTHON_PROTOBUF_LICENSE = BSD-3c +PYTHON_PROTOBUF_LICENSE_FILES = COPYING.txt + +PYTHON_PROTOBUF_DEPENDENCIES = python host-python-setuptools host-python-distutilscross host-protobuf + +define PYTHON_PROTOBUF_BUILD_CMDS + (cd $(@D)/python; \ + PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \ + LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
package/python-protobuf/python-protobuf.mk line 28
Quoted 10 lines
package/python-protobuf/python-protobuf.mk new file +10
-0+ PATH=$(HOST_PATH) \ + $(HOST_DIR)/usr/bin/python setup.py build -x) +endef + +define PYTHON_PROTOBUF_INSTALL_TARGET_CMDS + (cd $(@D)/python; PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \ + $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr) +endef + +$(eval $(generic-package))
I'm missing package/Config.in, where python-protobuf can be activated.
Best regards,
Yegor
PATCH 1/1 python-protobuf: Add support for Python implementation of Google's Protocol Buffers
Ops, will resend. Thanks for pointing out
Quoted 68 lines · Yegor Yefremov
Am 06.09.2012 22:58, schrieb Thiago A. Correa:
Quoted 52 lines
python-protobuf: Add support for Python implementation of Google's Protocol Buffers
Signed-off-by Thiago A. Correa <[email protected]>--- package/python-protobuf/Config.in | 11 +++++++++++ package/python-protobuf/python-protobuf.mk | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 package/python-protobuf/Config.in create mode 100644 package/python-protobuf/python-protobuf.mkpackage/python-protobuf/Config.in new file +11
-0@@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_PROTOBUF + bool "python-protobuf" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_SETUPTOOLS + help + Python implementation of the Google Protocol Buffers. + + Protocol buffers are Google's language-neutral, platform-neutral, + extensible mechanism for serializing structured data. + + http://code.google.com/p/protobuf/package/python-protobuf/python-protobuf.mk new file +18
-0@@ -0,0 +1,28 @@ +############################################################# +# +# python-protobuf +# +############################################################# + +PYTHON_PROTOBUF_VERSION = $(PROTOBUF_VERSION) +PYTHON_PROTOBUF_SOURCE = $(PROTOBUF_SOURCE) +PYTHON_PROTOBUF_SITE = $(PROTOBUF_SITE) +PYTHON_PROTOBUF_LICENSE = BSD-3c +PYTHON_PROTOBUF_LICENSE_FILES = COPYING.txt + +PYTHON_PROTOBUF_DEPENDENCIES = python host-python-setuptools host-python-distutilscross host-protobuf + +define PYTHON_PROTOBUF_BUILD_CMDS + (cd $(@D)/python; \ + PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \ + LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \package/python-protobuf/python-protobuf.mk line 28
Quoted 10 lines
package/python-protobuf/python-protobuf.mk new file +10
-0+ PATH=$(HOST_PATH) \ + $(HOST_DIR)/usr/bin/python setup.py build -x) +endef + +define PYTHON_PROTOBUF_INSTALL_TARGET_CMDS + (cd $(@D)/python; PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \ + $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr) +endef + +$(eval $(generic-package))I'm missing package/Config.in, where python-protobuf can be activated.
Best regards,
Yegor