Skip to content

Commit 8ce0787

Browse files
committed
adding m2crypto recipe
1 parent 531e35d commit 8ce0787

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

recipes/m2crypto/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_m2crypto=0.21.1
4+
DEPS_m2crypto=(openssl hostpython python)
5+
URL_m2crypto=http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-$VERSION_m2crypto.tar.gz
6+
MD5_m2crypto=f93d8462ff7646397a9f77a2fe602d17
7+
BUILD_m2crypto=$BUILD_PATH/m2crypto/$(get_directory $URL_m2crypto)
8+
RECIPE_m2crypto=$RECIPES_PATH/m2crypto
9+
10+
function prebuild_m2crypto() {
11+
true
12+
}
13+
14+
function build_m2crypto() {
15+
cd $BUILD_m2crypto
16+
17+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/m2crypto" ]; then
18+
#return
19+
true
20+
fi
21+
22+
push_arm
23+
24+
# build python extension
25+
26+
export CFLAGS="-I/$BUILD_path/python-install/include/python2.7"
27+
28+
try $BUILD_hostpython/hostpython setup.py build_ext -v
29+
try find build/lib.* -name "*.o" -exec $STRIP {} \;
30+
31+
try $BUILD_hostpython/hostpython setup.py install -O2
32+
33+
pop_arm
34+
}
35+
36+
function postbuild_m2crypto() {
37+
true
38+
}

0 commit comments

Comments
 (0)