From 060d566ae64f108f0b5efd0092f27e72350ad88a Mon Sep 17 00:00:00 2001 From: Torfinn Berset Date: Mon, 15 Jun 2015 20:18:54 +0530 Subject: [PATCH 1/3] Bumped Twisted to version 15.2.1 --- recipes/twisted/recipe.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/twisted/recipe.sh b/recipes/twisted/recipe.sh index 1e4de5c2e2..11480764b0 100644 --- a/recipes/twisted/recipe.sh +++ b/recipes/twisted/recipe.sh @@ -1,10 +1,10 @@ #!/bin/bash -VERSION_twisted=${VERSION_twisted:-14.0} -URL_twisted=http://twistedmatrix.com/Releases/Twisted/$VERSION_twisted/Twisted-$VERSION_twisted.0.tar.bz2 +VERSION_twisted=${VERSION_twisted:-15.2} +URL_twisted=http://twistedmatrix.com/Releases/Twisted/$VERSION_twisted/Twisted-$VERSION_twisted.1.tar.bz2 DEPS_twisted=(zope) -MD5_twisted=9625c094e0a18da77faa4627b98c9815 +MD5_twisted=4be066a899c714e18af1ecfcb01cfef7 BUILD_twisted=$BUILD_PATH/twisted/$(get_directory $URL_twisted) RECIPE_twisted=$RECIPES_PATH/twisted From d687053237bbe07a496614eae0d7695a51022e0c Mon Sep 17 00:00:00 2001 From: Torfinn Berset Date: Mon, 15 Jun 2015 20:20:09 +0530 Subject: [PATCH 2/3] Bumped Zope to version 4.2.1 --- recipes/zope/recipe.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/zope/recipe.sh b/recipes/zope/recipe.sh index 8232edbd68..45df38bc64 100644 --- a/recipes/zope/recipe.sh +++ b/recipes/zope/recipe.sh @@ -1,9 +1,9 @@ #!/bin/bash -VERSION_zope=${VERSION_zope:-3.8.0} +VERSION_zope=${VERSION_zope:-4.1.2} URL_zope=http://pypi.python.org/packages/source/z/zope.interface/zope.interface-$VERSION_zope.tar.gz DEPS_zope=(python) -MD5_zope=8ab837320b4532774c9c89f030d2a389 +MD5_zope=04298faeaa70b4f3b23fa2ae8987262c BUILD_zope=$BUILD_PATH/zope/$(get_directory $URL_zope) RECIPE_zope=$RECIPES_PATH/zope From 27cbbe8bd586ebafdb48c8ff5385da2ac994e60d Mon Sep 17 00:00:00 2001 From: Torfinn Berset Date: Tue, 23 Jun 2015 18:19:11 +0530 Subject: [PATCH 3/3] Added Apache Thrift recipe --- recipes/thrift/recipe.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 recipes/thrift/recipe.sh diff --git a/recipes/thrift/recipe.sh b/recipes/thrift/recipe.sh new file mode 100644 index 0000000000..765f9799c8 --- /dev/null +++ b/recipes/thrift/recipe.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +VERSION_thrift=${VERSION_thrift:-0.9.2} +URL_thrift=https://pypi.python.org/packages/source/t/thrift/thrift-$VERSION_thrift.tar.gz +DEPS_thrift=(python setuptools) +MD5_thrift=91f1c224c46a257bb428431943387dfd +BUILD_thrift=$BUILD_PATH/thrift/$(get_directory $URL_thrift) +RECIPE_thrift=$RECIPES_PATH/thrift + +function prebuild_thrift() { + true +} + +function shouldbuild_thrift() { + if [ -d "$SITEPACKAGES_PATH/thrift" ]; then + DO_BUILD=0 + fi +} + +function build_thrift() { + cd $BUILD_thrift + + push_arm + + # fake try to be able to cythonize generated files + $HOSTPYTHON setup.py build_ext + try find . -iname '*.pyx' -exec $CYTHON {} \; + try $HOSTPYTHON setup.py build_ext -v + + try find build/lib.* -name "*.o" -exec $STRIP {} \; + + export PYTHONPATH=$BUILD_PATH/hostpython/Python-2.7.2/Lib/site-packages + try $BUILD_PATH/hostpython/Python-2.7.2/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages + + pop_arm +} + +function postbuild_thrift() { + true +}