SUMMARY="A HTTP library for Python" DESCRIPTION="Requests is a HTTP library, written in Python, made for humans." HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests" COPYRIGHT="2014 Kenneth Reitz" LICENSE="Apache v2" REVISION="1" SOURCE_URI="https://pypi.python.org/packages/source/r/requests/requests-$portVersion.tar.gz" CHECKSUM_SHA256="84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b" SOURCE_DIR="requests-$portVersion" ARCHITECTURES="x86 x86_gcc2 x86_64" 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 }