From 1daca49e5f24b852321690c12e2eceac14e65060 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 21 Nov 2017 22:47:37 +0100 Subject: [PATCH] Add recipe for pywebsocket Needed to run current version of WebKit test suite. --- dev-python/pywebsocket/pywebsocket-0.8.recipe | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 dev-python/pywebsocket/pywebsocket-0.8.recipe diff --git a/dev-python/pywebsocket/pywebsocket-0.8.recipe b/dev-python/pywebsocket/pywebsocket-0.8.recipe new file mode 100644 index 000000000..dab0973bd --- /dev/null +++ b/dev-python/pywebsocket/pywebsocket-0.8.recipe @@ -0,0 +1,59 @@ +SUMMARY="WebSocket server and extension for Apache HTTP Server for testing" +DESCRIPTION="The pywebsocket project aims to provide a WebSocket standalone \ +server and a WebSocket extension for Apache HTTP Server, mod_pywebsocket. + +pywebsocket is intended for testing or experimental purposes. To run with \ +Apache HTTP Server, mod_python is required. For wss, mod_ssl is also required. + +pywebsocket supports RFC 6455 (and some legacy protocols) and the following extension. +* WebSocket Per-message Compression (permessage-deflate)" +HOMEPAGE="https://github.com/google/pywebsocket" +COPYRIGHT="2012-2015 Google Inc." +LICENSE="BSD (3-clause)" +REVISION="1" +SOURCE_URI="https://github.com/google/pywebsocket/archive/pywebsocket-0.8.tar.gz" +CHECKSUM_SHA256="6bba6b0c2caec9094b21cfa34befd4a2f6e0594e5290d9b68b9bf4efb518fc17" +SOURCE_DIR="pywebsocket-pywebsocket-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + $portName = $portVersion + " +REQUIRES=" + haiku + cmd:python2.7 + " + +BUILD_REQUIRES=" + haiku_devel + setuptools_python + " + +BUILD_PREREQUIRES=" + cmd:python2.7 +" + +BUILD() +{ + cd src + + python=python2.7 + installLocation=$prefix/lib/$python/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation + rm -rf build + $python setup.py build +} + +INSTALL() +{ + cd src + + python=python2.7 + installLocation=$prefix/lib/$python/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation + rm -rf build + $python setup.py build install --root=/ --prefix=$prefix +}