forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.sh
More file actions
33 lines (26 loc) · 746 Bytes
/
recipe.sh
File metadata and controls
33 lines (26 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
VERSION_gevent=${VERSION_gevent:-0.13.8}
URL_gevent=https://pypi.python.org/packages/source/g/gevent/gevent-$VERSION_gevent.tar.gz
DEPS_gevent=(libevent greenlet)
MD5_gevent=ca9dcaa7880762d8ebbc266b11252960
BUILD_gevent=$BUILD_PATH/gevent/$(get_directory $URL_gevent)
RECIPE_gevent=$RECIPES_PATH/gevent
function prebuild_gevent() {
true
}
function shouldbuild_gevent() {
if [ -d "$SITEPACKAGES_PATH/gevent" ]; then
DO_BUILD=0
fi
}
function build_gevent() {
cd $BUILD_gevent
push_arm
export CFLAGS="$CFLAGS -I$BUILD_libevent/build/include"
export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_libevent/build/lib/"
try $HOSTPYTHON setup.py install -O2
pop_arm
}
function postbuild_gevent() {
true
}