diff options
author | Vinicius Tinti <viniciustinti@gmail.com> | 2013-03-20 23:59:20 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-07 00:33:14 +0200 |
commit | eecf7795c1440afdaf4d3a75e9dcd144db45db8d (patch) | |
tree | 0937fc275260930f8cd876ba38de98341291a69e /package | |
parent | c260b94dd70c6a10938a7e8ad35b41631aad234a (diff) | |
download | buildroot-novena-eecf7795c1440afdaf4d3a75e9dcd144db45db8d.tar.gz buildroot-novena-eecf7795c1440afdaf4d3a75e9dcd144db45db8d.zip |
python-thrift: new package
Add Python bindings for the Apache Thrift RPC.
Thrift is an interface definition language that is used to define and create
services for numerous languages using remote procedure calls (RPC).
This patch does not include the Thrift code generator. It only includes the
Thrift libraries used at runtime.
Signed-off-by: Tiago Maluta <tiagomaluta@gmail.com>
Signed-off-by: Vinicius Tinti <viniciustinti@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/python-thrift/Config.in | 7 | ||||
-rw-r--r-- | package/python-thrift/python-thrift.mk | 30 |
3 files changed, 38 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index 6b3824213..81a3f76e1 100644 --- a/package/Config.in +++ b/package/Config.in @@ -341,6 +341,7 @@ source "package/python-pygame/Config.in" source "package/python-pyparsing/Config.in" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in" +source "package/python-thrift/Config.in" endmenu endif source "package/ruby/Config.in" diff --git a/package/python-thrift/Config.in b/package/python-thrift/Config.in new file mode 100644 index 000000000..94a75900f --- /dev/null +++ b/package/python-thrift/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_THRIFT + bool "python-thrift" + depends on BR2_PACKAGE_PYTHON + help + python-thrift is a Python bindings for the Apache Thrift RPC system. + + http://thrift.apache.org/ diff --git a/package/python-thrift/python-thrift.mk b/package/python-thrift/python-thrift.mk new file mode 100644 index 000000000..c2fc75264 --- /dev/null +++ b/package/python-thrift/python-thrift.mk @@ -0,0 +1,30 @@ +############################################################# +# +# python-thrift +# +############################################################# + +PYTHON_THRIFT_VERSION = 0.9.0 +PYTHON_THRIFT_SOURCE = thrift-$(PYTHON_THRIFT_VERSION).tar.gz +PYTHON_THRIFT_SITE = http://pypi.python.org/packages/source/t/thrift +PYTHON_THRIFT_LICENSE = Apache-2.0 +PYTHON_THRIFT_LICENSE_FILES = README + +PYTHON_THRIFT_DEPENDENCIES = python + +define PYTHON_THRIFT_BUILD_CMDS + (cd $(@D); \ + PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \ + LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \ + $(HOST_DIR)/usr/bin/python setup.py build) +endef + +# host-distutilscross, if it has been installed before, will check that +# the installation directory is in python's load path. For host-python, +# it is not, so add it explicitly while installing to target. +define PYTHON_THRIFT_INSTALL_TARGET_CMDS + (cd $(@D); 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)) |