diff --git a/recipes/pyparsing/recipe.sh b/recipes/pyparsing/recipe.sh new file mode 100644 index 0000000000..148e1657fb --- /dev/null +++ b/recipes/pyparsing/recipe.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +VERSION_pyparsing=${VERSION_pyparsing:-2.0.1} +DEPS_pyparsing=(python) +URL_pyparsing=http://pypi.python.org/packages/source/p/pyparsing/pyparsing-$VERSION_pyparsing.tar.gz +MD5_pyparsing=37adec94104b98591507218bc82e7c31 +BUILD_pyparsing=$BUILD_PATH/pyparsing/$(get_directory $URL_pyparsing) +RECIPE_pyparsing=$RECIPES_PATH/pyparsing + +# function called for preparing source code if needed +# (you can apply patch etc here.) +function prebuild_pyparsing() { + true +} + +# function called to build the source code +function build_pyparsing() { + + if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/pyparsing" ]; then + return + fi + + cd $BUILD_pyparsing + push_arm + export EXTRA_CFLAGS="--host linux-armv" + try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 + pop_arm +} + +# function called after all the compile have been done +function postbuild_pyparsing() { + true +} +