diff --git a/dev-python/urllib3/python_urllib3-1.9.1.recipe b/dev-python/urllib3/python_urllib3-1.9.1.recipe new file mode 100644 index 000000000..c2542de60 --- /dev/null +++ b/dev-python/urllib3/python_urllib3-1.9.1.recipe @@ -0,0 +1,64 @@ +SUMMARY="HTTP library with thread-safe connection pooling, file post, and more." +DESCRIPTION=" +- Re-use the same socket connection for multiple requests + (HTTPConnectionPool and HTTPSConnectionPool) + (with optional client-side certificate verification). +- File posting (encode_multipart_formdata). +- Built-in redirection and retries (optional). +- Supports gzip and deflate decoding. +- Thread-safe and sanity-safe. +- Works with AppEngine, gevent, and eventlib. +- Tested on Python 2.6+, Python 3.2+, and PyPy, with 100% unit test coverage. +- Small and easy to understand codebase perfect for extending and building upon. + For a more comprehensive solution, have a look at \ + Requests which is also powered by urllib3 +" +HOMEPAGE=" + http://urllib3.readthedocs.org/ + https://pypi.python.org/pypi/urllib3 + " +SRC_URI="https://github.com/shazow/urllib3/archive/1.9.1.tar.gz" +CHECKSUM_SHA256="baf4dbc6d78f4a7bb28a44d3772cd8f3b24df5282f5cb72f3d85106aa06cf2a3" +LICENSE="MIT" +COPYRIGHT="2008-2014 Andrey Petrov and contributors" +REVISION="1" + +ARCHITECTURES="x86 x86_gcc2 x86_64" + +SOURCE_DIR="urllib3-$portVersion" + +PROVIDES=" + python_urllib3 = $portVersion + " + +REQUIRES=" + haiku >= $haikuVersion + cmd:python + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + " + +BUILD_PREREQUIRES=" + cmd:python + cmd:gcc + " + +BUILD() +{ + $portPackageLinksDir/cmd~python/bin/python setup.py build +} + +INSTALL() +{ + # GENERIC: all python_setuptools-based installs need this + python=$portPackageLinksDir/cmd~python/bin/python + pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) + installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation + + $python setup.py install \ + --prefix=$prefix +}