Skip to content

- added pyparsing recipe #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions recipes/pyparsing/recipe.sh
Original file line number Diff line number Diff line change
@@ -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
}