diff --git a/dev-python/requests/python3_requests-2.7.0.recipe b/dev-python/requests/python3_requests-2.7.0.recipe new file mode 100644 index 000000000..2785efd63 --- /dev/null +++ b/dev-python/requests/python3_requests-2.7.0.recipe @@ -0,0 +1,56 @@ +SUMMARY="HTTP library for human beings" +DESCRIPTION=" + Requests is an Apache2 Licensed HTTP library, written in Python, \ + for human beings. +" +HOMEPAGE=" + http://python-requests.org/ + http://pypi.python.org/pypi/requests + " +SRC_URI="https://pypi.python.org/packages/source/r/requests/requests-$portVersion.tar.gz" +CHECKSUM_SHA256="398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d" +LICENSE="Apache v2" +COPYRIGHT="2014 Kenneth Reitz" +REVISION="1" + +ARCHITECTURES="x86 x86_gcc2 x86_64" + +SOURCE_DIR="requests-$portVersion" + +PROVIDES=" + python3_requests = $portVersion + " + +REQUIRES=" + haiku + cmd:python3 + # actually has its own copy... + #ca_root_certificates + " + +BUILD_REQUIRES=" + haiku_devel + " + +BUILD_PREREQUIRES=" + cmd:python3 + cmd:gcc + " + +BUILD() +{ + $portPackageLinksDir/cmd~python3/bin/python3 setup.py build +} + +INSTALL() +{ + # GENERIC: all python_setuptools-based installs need this + python=$portPackageLinksDir/cmd~python3/bin/python3 + 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 +}