mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
python_requests: bump version.
This commit is contained in:
48
dev-python/requests/python_requests-2.9.1.recipe
Normal file
48
dev-python/requests/python_requests-2.9.1.recipe
Normal file
@@ -0,0 +1,48 @@
|
||||
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="c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f"
|
||||
SOURCE_DIR="requests-$portVersion"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
python_requests = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python2
|
||||
# actually has its own copy...
|
||||
#ca_root_certificates
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python2
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$portPackageLinksDir/cmd~python2/bin/python2
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user