From 9bc0acad266a520a052673005df60827c3821fe9 Mon Sep 17 00:00:00 2001 From: Gillu13 Date: Tue, 21 Apr 2015 21:25:01 +0200 Subject: [PATCH] added recipe for bidi (bi-directional layout implementation) --- recipes/bidi/recipe.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 recipes/bidi/recipe.sh diff --git a/recipes/bidi/recipe.sh b/recipes/bidi/recipe.sh new file mode 100644 index 0000000000..84a9033eee --- /dev/null +++ b/recipes/bidi/recipe.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +VERSION_bidi=${VERSION_bidi:-0.3.4} +DEPS_bidi=(python setuptools) +URL_bidi=http://pypi.python.org/packages/source/p/python-bidi/python-bidi-$VERSION_bidi.tar.gz +MD5_bidi=ce64c7d3d97264df1f84e377d145cad5 +BUILD_bidi=$BUILD_PATH/bidi/$(get_directory $URL_bidi) +RECIPE_bidi=$RECIPES_PATH/bidi + +function prebuild_bidi() { + true +} + +function shouldbuild_bidi() { + if [ -d "$SITEPACKAGES_PATH/bidi" ]; then + DO_BUILD=0 + fi +} + +function build_bidi() { + cd $BUILD_bidi + + push_arm + + export LDSHARED="$LIBLINK" + + try find . -iname '*.pyx' -exec $CYTHON {} \; + try $HOSTPYTHON setup.py build_ext -v + + export PYTHONPATH=$BUILD_hostpython/Lib/site-packages + try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages + + unset LDSHARED + pop_arm +} + +function postbuild_bidi() { + true +}