diff --git a/recipes/gevent/recipe.sh b/recipes/gevent/recipe.sh new file mode 100644 index 0000000000..df2529891f --- /dev/null +++ b/recipes/gevent/recipe.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +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 build_gevent() { + cd $BUILD_gevent + + if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/gevent" ]; then + return + fi + + push_arm + export CFLAGS="$CFLAGS -I$BUILD_libevent/build/include" + export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_libevent/build/lib/" + + try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 + pop_arm +} + +function postbuild_gevent() { + true +} diff --git a/recipes/greenlet/recipe.sh b/recipes/greenlet/recipe.sh new file mode 100644 index 0000000000..b10f932f26 --- /dev/null +++ b/recipes/greenlet/recipe.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +VERSION_greenlet=0.4.1 +URL_greenlet=https://pypi.python.org/packages/source/g/greenlet/greenlet-$VERSION_greenlet.zip +https://github.com/downloads/greenlet/greenlet/greenlet-$VERSION_greenlet.tar.gz +DEPS_greenlet=(python) +MD5_greenlet=c2deda75bdda59c38cae12a77cc53adc +BUILD_greenlet=$BUILD_PATH/greenlet/$(get_directory $URL_greenlet) +RECIPE_greenlet=$RECIPES_PATH/greenlet + +function prebuild_greenlet() { + true +} + +function build_greenlet() { + cd $BUILD_greenlet + + if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/greenlet.so" ]; then + return + fi + + push_arm + + try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 + pop_arm +} + +function postbuild_greenlet() { + true +} diff --git a/recipes/libevent/recipe.sh b/recipes/libevent/recipe.sh new file mode 100644 index 0000000000..52bcf24965 --- /dev/null +++ b/recipes/libevent/recipe.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +VERSION_libevent=2.0.21-stable +URL_libevent=https://github.com/downloads/libevent/libevent/libevent-$VERSION_libevent.tar.gz +DEPS_libevent=(python) +MD5_libevent=b2405cc9ebf264aa47ff615d9de527a2 +BUILD_libevent=$BUILD_PATH/libevent/$(get_directory $URL_libevent) +RECIPE_libevent=$RECIPES_PATH/libevent + +function prebuild_libevent() { + true +} + +function build_libevent() { + cd $BUILD_libevent + + if [ -f $BUILD_libevent/build/lib/libevent.la ]; then + return + fi + + push_arm + try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_libevent/build/ + try make install + pop_arm +} + +function postbuild_libevent() { + true +}