Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pyopenssl recipe #22

Merged
merged 1 commit into from
Mar 15, 2012
Merged
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
39 changes: 39 additions & 0 deletions recipes/pyopenssl/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

VERSION_pyopenssl=0.13
URL_pyopenssl=http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$VERSION_pyopenssl.tar.gz
DEPS_pyopenssl=(openssl hostpython python)
MD5_pyopenssl= 767bca18a71178ca353dff9e10941929
BUILD_pyopenssl=$BUILD_PATH/pyopenssl/$(get_directory $URL_pyopenssl)
RECIPE_pyopenssl=$RECIPES_PATH/pyopenssl

function prebuild_pyopenssl() {
true
}

function build_pyopenssl() {

if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/pyOpenSSL" ]; then
return
fi

cd $BUILD_pyopenssl

push_arm

export CC="$CC -I$BUILD_openssl/include"
export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_openssl"

try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v
try find build/lib.* -name "*.o" -exec $STRIP {} \;

try $BUILD_PATH/python-install/bin/python.host setup.py install -O2

try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/OpenSSL/test

pop_arm
}

function postbuild_pyopenssl() {
true
}