diff --git a/recipes/enum34/recipe.sh b/recipes/enum34/recipe.sh new file mode 100644 index 0000000000..05a4cca0a9 --- /dev/null +++ b/recipes/enum34/recipe.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# version of your package +VERSION_enum34=${VERSION_enum34:-1.0.4} + +# dependencies of this recipe +DEPS_enum34=(python) + +# url of the package +URL_enum34=https://pypi.python.org/packages/source/e/enum34/enum34-$VERSION_enum34.tar.gz + +# md5 of the package +MD5_enum34=ac80f432ac9373e7d162834b264034b6 + +# default build path +BUILD_enum34=$BUILD_PATH/enum34/$(get_directory $URL_enum34) + +# default recipe path +RECIPE_enum34=$RECIPES_PATH/enum34 + +# function called for preparing source code if needed +# (you can apply patch etc here.) +function prebuild_enum34() { + true +} + +# function called to build the source code +function build_enum34() { + cd $BUILD_enum34 + push_arm + try $HOSTPYTHON setup.py install + pop_arm +} + +# function called after all the compile have been done +function postbuild_enum34() { + true +} diff --git a/recipes/six/recipe.sh b/recipes/six/recipe.sh new file mode 100644 index 0000000000..cceaf95337 --- /dev/null +++ b/recipes/six/recipe.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# version of your package +VERSION_six=${VERSION_six:-1.9.0} + +# dependencies of this recipe +DEPS_six=(python) + +# url of the package +URL_six=https://pypi.python.org/packages/source/s/six/six-$VERSION_six.tar.gz + +# md5 of the package +MD5_six=476881ef4012262dfc8adc645ee786c4 + +# default build path +BUILD_six=$BUILD_PATH/six/$(get_directory $URL_six) + +# default recipe path +RECIPE_six=$RECIPES_PATH/six + +# function called for preparing source code if needed +# (you can apply patch etc here.) +function prebuild_six() { + true +} + +# function called to build the source code +function build_six() { + cd $BUILD_six + push_arm + try $HOSTPYTHON setup.py install + pop_arm +} + +# function called after all the compile have been done +function postbuild_six() { + true +} diff --git a/recipes/zeroconf/patches/no_ctypes_fix.patch b/recipes/zeroconf/patches/no_ctypes_fix.patch new file mode 100644 index 0000000000..12e06ca4a4 --- /dev/null +++ b/recipes/zeroconf/patches/no_ctypes_fix.patch @@ -0,0 +1,12 @@ +diff -Nur zeroconf-0.17.1.orig/setup.py zeroconf-0.17.1/setup.py +--- zeroconf-0.17.1.orig/setup.py 2015-04-30 22:21:46.000000000 +0600 ++++ zeroconf-0.17.1/setup.py 2015-04-30 22:21:58.215207238 +0600 +@@ -3,7 +3,7 @@ + + from os.path import abspath, dirname, join + +-from setuptools import setup ++from distutils.core import setup + + PROJECT_ROOT = abspath(dirname(__file__)) + with open(join(PROJECT_ROOT, 'README.rst')) as f: diff --git a/recipes/zeroconf/recipe.sh b/recipes/zeroconf/recipe.sh new file mode 100644 index 0000000000..5275d8e463 --- /dev/null +++ b/recipes/zeroconf/recipe.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +# version of your package +VERSION_zeroconf=${VERSION_zeroconf:-0.17.1} + +# dependencies of this recipe +DEPS_zeroconf=(python six enum34 netifaces) + +# url of the package +URL_zeroconf=https://pypi.python.org/packages/source/z/zeroconf/zeroconf-$VERSION_zeroconf.tar.gz + +# md5 of the package +MD5_zeroconf=ec8a97fc803a49c96079f36a29e6133c + +# default build path +BUILD_zeroconf=$BUILD_PATH/zeroconf/$(get_directory $URL_zeroconf) + +# default recipe path +RECIPE_zeroconf=$RECIPES_PATH/zeroconf + +# function called for preparing source code if needed +# (you can apply patch etc here.) +function prebuild_zeroconf() { + cd $BUILD_zeroconf + if [ -f .patched ]; then + return + fi + try patch -p1 < $RECIPE_zeroconf/patches/no_ctypes_fix.patch + touch .patched +} + +# function called to build the source code +function build_zeroconf() { + cd $BUILD_zeroconf + + push_arm + try $HOSTPYTHON setup.py install -O2 + pop_arm +} + +# function called after all the compile have been done +function postbuild_zeroconf() { + true +}