Skip to content

Commit 4ebd3b9

Browse files
committed
Merge pull request kivy#160 from aliceinwire/master
- added pyparsing recipe
2 parents 438580f + ef7d24e commit 4ebd3b9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

recipes/pyparsing/recipe.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
VERSION_pyparsing=${VERSION_pyparsing:-2.0.1}
4+
DEPS_pyparsing=(python)
5+
URL_pyparsing=http://pypi.python.org/packages/source/p/pyparsing/pyparsing-$VERSION_pyparsing.tar.gz
6+
MD5_pyparsing=37adec94104b98591507218bc82e7c31
7+
BUILD_pyparsing=$BUILD_PATH/pyparsing/$(get_directory $URL_pyparsing)
8+
RECIPE_pyparsing=$RECIPES_PATH/pyparsing
9+
10+
# function called for preparing source code if needed
11+
# (you can apply patch etc here.)
12+
function prebuild_pyparsing() {
13+
true
14+
}
15+
16+
# function called to build the source code
17+
function build_pyparsing() {
18+
19+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/pyparsing" ]; then
20+
return
21+
fi
22+
23+
cd $BUILD_pyparsing
24+
push_arm
25+
export EXTRA_CFLAGS="--host linux-armv"
26+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
27+
pop_arm
28+
}
29+
30+
# function called after all the compile have been done
31+
function postbuild_pyparsing() {
32+
true
33+
}
34+

0 commit comments

Comments
 (0)