From 10b43b0e6949f97f97ac7981b143513a96ba77eb Mon Sep 17 00:00:00 2001 From: Davide Corio Date: Wed, 17 Jul 2013 22:32:04 +0200 Subject: [PATCH 1/2] [ADD] erppeek recipe --- recipes/erppeek/recipe.sh | 32 ++++++++++++++++++++++++++++++++ recipes/mock/recipe.sh | 32 ++++++++++++++++++++++++++++++++ recipes/unittest2/recipe.sh | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 recipes/erppeek/recipe.sh create mode 100644 recipes/mock/recipe.sh create mode 100644 recipes/unittest2/recipe.sh diff --git a/recipes/erppeek/recipe.sh b/recipes/erppeek/recipe.sh new file mode 100644 index 0000000000..1f8c98bc45 --- /dev/null +++ b/recipes/erppeek/recipe.sh @@ -0,0 +1,32 @@ +#!/bin/bash +VERSION_erppeek=1.4.5 +DEPS_erppeek=(python erppeek unittest2) +URL_erppeek=http://pypi.python.org/packages/source/E/ERPpeek/ERPpeek-1.4.5.tar.gz +MD5_erppeek=bec4da87f1de66c2621b00e2f760cb74 +BUILD_erppeek=$BUILD_PATH/erppeek/$(get_directory $URL_erppeek) +RECIPE_erppeek=$RECIPES_PATH/erppeek + +function prebuild_erppeek() { + true +} + +function build_erppeek() { + + cd $BUILD_erppeek + + push_arm + + export LDFLAGS="$LDFLAGS -L$LIBS_PATH" + export LDSHARED="$LIBLINK" + export PYTHONPATH=$BUILD_hostpython/Lib/site-packages + + try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages + + unset LDSHARED + + pop_arm +} + +function postbuild_erppeek() { + true +} diff --git a/recipes/mock/recipe.sh b/recipes/mock/recipe.sh new file mode 100644 index 0000000000..9c5ba9ab67 --- /dev/null +++ b/recipes/mock/recipe.sh @@ -0,0 +1,32 @@ +#!/bin/bash +VERSION_mock=1.0.1 +DEPS_mock=(pycrypto hostpython python) +URL_mock=http://pypi.python.org/packages/source/m/mock/mock-$VERSION_mock.tar.gz +MD5_mock=c3971991738caa55ec7c356bbc154ee2 +BUILD_mock=$BUILD_PATH/mock/$(get_directory $URL_mock) +RECIPE_mock=$RECIPES_PATH/mock + +function prebuild_mock() { + true +} + +function build_mock() { + + cd $BUILD_mock + + push_arm + + export LDFLAGS="$LDFLAGS -L$LIBS_PATH" + export LDSHARED="$LIBLINK" + export PYTHONPATH=$BUILD_hostpython/Lib/site-packages + + try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages + + unset LDSHARED + + pop_arm +} + +function postbuild_mock() { + true +} diff --git a/recipes/unittest2/recipe.sh b/recipes/unittest2/recipe.sh new file mode 100644 index 0000000000..8e9308a4c9 --- /dev/null +++ b/recipes/unittest2/recipe.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +VERSION_unittest2=0.5.1 +URL_unittest2=https://pypi.python.org/packages/source/u/unittest2/unittest2-$VERSION_unittest2.tar.gz +DEPS_unittest2=(python) +MD5_unittest2=a0af5cac92bbbfa0c3b0e99571390e0f +BUILD_unittest2=$BUILD_PATH/unittest2/$(get_directory $URL_unittest2) +RECIPE_unittest2=$RECIPES_PATH/unittest2 + +function prebuild_unittest2() { + true +} + +function build_unittest2() { + + cd $BUILD_unittest2 + + push_arm + + export LDFLAGS="$LDFLAGS -L$LIBS_PATH" + export LDSHARED="$LIBLINK" + export PYTHONPATH=$BUILD_hostpython/Lib/site-packages + + try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages + + unset LDSHARED + + pop_arm +} + +function postbuild_unittest2() { + true +} + + From 2c235fbbc6b3cc0aadbf3e6768734adef9d27644 Mon Sep 17 00:00:00 2001 From: Davide Corio Date: Wed, 17 Jul 2013 22:41:20 +0200 Subject: [PATCH 2/2] [IMP] removed mock and unittest2 deps --- recipes/erppeek/recipe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/erppeek/recipe.sh b/recipes/erppeek/recipe.sh index 1f8c98bc45..e27f82abbc 100644 --- a/recipes/erppeek/recipe.sh +++ b/recipes/erppeek/recipe.sh @@ -1,6 +1,6 @@ #!/bin/bash VERSION_erppeek=1.4.5 -DEPS_erppeek=(python erppeek unittest2) +DEPS_erppeek=(python) URL_erppeek=http://pypi.python.org/packages/source/E/ERPpeek/ERPpeek-1.4.5.tar.gz MD5_erppeek=bec4da87f1de66c2621b00e2f760cb74 BUILD_erppeek=$BUILD_PATH/erppeek/$(get_directory $URL_erppeek)