Skip to content

Commit 6d53ec1

Browse files
committed
Merge pull request kivy#146 from Roger/add_gevent_recipe
Add gevent recipe
2 parents c05bfbe + aaa06a8 commit 6d53ec1

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

recipes/gevent/recipe.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
VERSION_gevent=0.13.8
4+
URL_gevent=https://pypi.python.org/packages/source/g/gevent/gevent-$VERSION_gevent.tar.gz
5+
DEPS_gevent=(libevent greenlet)
6+
MD5_gevent=ca9dcaa7880762d8ebbc266b11252960
7+
BUILD_gevent=$BUILD_PATH/gevent/$(get_directory $URL_gevent)
8+
RECIPE_gevent=$RECIPES_PATH/gevent
9+
10+
function prebuild_gevent() {
11+
true
12+
}
13+
14+
function build_gevent() {
15+
cd $BUILD_gevent
16+
17+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/gevent" ]; then
18+
return
19+
fi
20+
21+
push_arm
22+
export CFLAGS="$CFLAGS -I$BUILD_libevent/build/include"
23+
export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_libevent/build/lib/"
24+
25+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
26+
pop_arm
27+
}
28+
29+
function postbuild_gevent() {
30+
true
31+
}

recipes/greenlet/recipe.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
VERSION_greenlet=0.4.1
4+
URL_greenlet=https://pypi.python.org/packages/source/g/greenlet/greenlet-$VERSION_greenlet.zip
5+
https://github.com/downloads/greenlet/greenlet/greenlet-$VERSION_greenlet.tar.gz
6+
DEPS_greenlet=(python)
7+
MD5_greenlet=c2deda75bdda59c38cae12a77cc53adc
8+
BUILD_greenlet=$BUILD_PATH/greenlet/$(get_directory $URL_greenlet)
9+
RECIPE_greenlet=$RECIPES_PATH/greenlet
10+
11+
function prebuild_greenlet() {
12+
true
13+
}
14+
15+
function build_greenlet() {
16+
cd $BUILD_greenlet
17+
18+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/greenlet.so" ]; then
19+
return
20+
fi
21+
22+
push_arm
23+
24+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
25+
pop_arm
26+
}
27+
28+
function postbuild_greenlet() {
29+
true
30+
}

recipes/libevent/recipe.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
VERSION_libevent=2.0.21-stable
4+
URL_libevent=https://github.com/downloads/libevent/libevent/libevent-$VERSION_libevent.tar.gz
5+
DEPS_libevent=(python)
6+
MD5_libevent=b2405cc9ebf264aa47ff615d9de527a2
7+
BUILD_libevent=$BUILD_PATH/libevent/$(get_directory $URL_libevent)
8+
RECIPE_libevent=$RECIPES_PATH/libevent
9+
10+
function prebuild_libevent() {
11+
true
12+
}
13+
14+
function build_libevent() {
15+
cd $BUILD_libevent
16+
17+
if [ -f $BUILD_libevent/build/lib/libevent.la ]; then
18+
return
19+
fi
20+
21+
push_arm
22+
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_libevent/build/
23+
try make install
24+
pop_arm
25+
}
26+
27+
function postbuild_libevent() {
28+
true
29+
}

0 commit comments

Comments
 (0)