Files
haikuports/dev-python/urllib3/urllib3-1.9.1.recipe
Humdinger effe88db3f De-Lint recipes.
*	tar
	Remove "." from SUMMARY.
	Re-ordered blocks.

*	testdisk
	Shortened SUMMARY.
	Re-ordered blocks.

*	the_silver_searcher
	Remove "." from SUMMARY.
	Re-ordered blocks.

*	torrentor
	Remove "." from SUMMARY.
	Re-ordered blocks.

*	trackergrep
	Remove "." from SUMMARY.
	Re-ordered blocks.

*	transmission
	Fixed COPYRIGHT.
	Re-ordered blocks.

*	tree
	Remove "." from SUMMARY.
	Re-ordered blocks.

*	unzip
	Remove "." from SUMMARY.
	Re-ordered blocks.

*	uqm
	Shortened SUMMARY.
	Re-ordered blocks.

*	urllib
	Remove "." from SUMMARY.
	Re-ordered blocks.
2015-07-23 10:23:42 +02:00

60 lines
1.7 KiB
Bash

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 <http://python-requests.org/> which is also powered by urllib3"
HOMEPAGE="http://urllib3.readthedocs.org/
https://pypi.python.org/pypi/urllib3"
COPYRIGHT="2008-2014 Andrey Petrov and contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/shazow/urllib3/archive/1.9.1.tar.gz"
CHECKSUM_SHA256="baf4dbc6d78f4a7bb28a44d3772cd8f3b24df5282f5cb72f3d85106aa06cf2a3"
SOURCE_DIR="urllib3-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
urllib3 = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_REQUIRES="
haiku_devel
"
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
}