Skip to content

Commit d88d6e6

Browse files
committed
Recipes for zeroconf and six
1 parent 7c8d4ce commit d88d6e6

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed

recipes/six/recipe.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
# version of your package
4+
VERSION_six=${VERSION_six:-1.9.0}
5+
6+
# dependencies of this recipe
7+
DEPS_six=(python)
8+
9+
# url of the package
10+
URL_six=https://pypi.python.org/packages/source/s/six/six-$VERSION_six.tar.gz
11+
12+
# md5 of the package
13+
MD5_six=476881ef4012262dfc8adc645ee786c4
14+
15+
# default build path
16+
BUILD_six=$BUILD_PATH/six/$(get_directory $URL_six)
17+
18+
# default recipe path
19+
RECIPE_six=$RECIPES_PATH/six
20+
21+
# function called for preparing source code if needed
22+
# (you can apply patch etc here.)
23+
function prebuild_six() {
24+
true
25+
}
26+
27+
# function called to build the source code
28+
function build_six() {
29+
cd $BUILD_six
30+
push_arm
31+
try $HOSTPYTHON setup.py install
32+
pop_arm
33+
}
34+
35+
# function called after all the compile have been done
36+
function postbuild_six() {
37+
true
38+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Nur zeroconf-0.17.1.orig/setup.py zeroconf-0.17.1/setup.py
2+
--- zeroconf-0.17.1.orig/setup.py 2015-04-30 22:21:46.000000000 +0600
3+
+++ zeroconf-0.17.1/setup.py 2015-04-30 22:21:58.215207238 +0600
4+
@@ -3,7 +3,7 @@
5+
6+
from os.path import abspath, dirname, join
7+
8+
-from setuptools import setup
9+
+from distutils.core import setup
10+
11+
PROJECT_ROOT = abspath(dirname(__file__))
12+
with open(join(PROJECT_ROOT, 'README.rst')) as f:

recipes/zeroconf/recipe.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
# version of your package
4+
VERSION_zeroconf=${VERSION_zeroconf:-0.17.1}
5+
6+
# dependencies of this recipe
7+
DEPS_zeroconf=(python six netifaces)
8+
9+
# url of the package
10+
URL_zeroconf=https://pypi.python.org/packages/source/z/zeroconf/zeroconf-$VERSION_zeroconf.tar.gz
11+
12+
# md5 of the package
13+
MD5_zeroconf=ec8a97fc803a49c96079f36a29e6133c
14+
15+
# default build path
16+
BUILD_zeroconf=$BUILD_PATH/zeroconf/$(get_directory $URL_zeroconf)
17+
18+
# default recipe path
19+
RECIPE_zeroconf=$RECIPES_PATH/zeroconf
20+
21+
# function called for preparing source code if needed
22+
# (you can apply patch etc here.)
23+
function prebuild_zeroconf() {
24+
cd $BUILD_zeroconf
25+
if [ -f .patched ]; then
26+
return
27+
fi
28+
try patch -p1 < $RECIPE_zeroconf/patches/no_ctypes_fix.patch
29+
touch .patched
30+
}
31+
32+
# function called to build the source code
33+
function build_zeroconf() {
34+
cd $BUILD_zeroconf
35+
36+
push_arm
37+
try $HOSTPYTHON setup.py install -O2
38+
pop_arm
39+
}
40+
41+
# function called after all the compile have been done
42+
function postbuild_zeroconf() {
43+
true
44+
}

0 commit comments

Comments
 (0)