File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments