Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions recipes/enum34/recipe.sh
Original file line number Diff line number Diff line change
@@ -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
}
38 changes: 38 additions & 0 deletions recipes/six/recipe.sh
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 12 additions & 0 deletions recipes/zeroconf/patches/no_ctypes_fix.patch
Original file line number Diff line number Diff line change
@@ -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:
44 changes: 44 additions & 0 deletions recipes/zeroconf/recipe.sh
Original file line number Diff line number Diff line change
@@ -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
}