From 2cb4a2c55f76dd356e817b1b6d44e2db2cc25356 Mon Sep 17 00:00:00 2001 From: Mathew Date: Fri, 12 Jun 2015 11:36:36 +0200 Subject: [PATCH] add cherrypy recipe --- recipes/cherrypy/recipe.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes/cherrypy/recipe.sh diff --git a/recipes/cherrypy/recipe.sh b/recipes/cherrypy/recipe.sh new file mode 100644 index 0000000000..2b119bd299 --- /dev/null +++ b/recipes/cherrypy/recipe.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +VERSION_cherrypy=3.7.0 +DEPS_cherrypy=(python) +URL_cherrypy=https://pypi.python.org/packages/source/C/CherryPy/CherryPy-$VERSION_cherrypy.tar.gz +MD5_cherrypy=fbf36f0b393aee2ebcbc71e3ec6f6832 +BUILD_cherrypy=$BUILD_PATH/cherrypy/$(get_directory $URL_cherrypy) +RECIPE_cherrypy=$RECIPES_PATH/cherrypy + +function prebuild_cherrypy() { + true +} + +function shouldbuild_cherrypy() { + if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/cherrypy" ]; then + DO_BUILD=0 + fi +} + +function build_cherrypy() { + cd $BUILD_cherrypy + + push_arm + + try $HOSTPYTHON setup.py install + + pop_arm +} + +function postbuild_cherrypy() { + true +}