mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
* Referring the current haiku version explicitly is not needed, since the RequiresUpdater takes care of setting the version of Haiku used for building a package.
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
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-2.3.0.tar.gz"
|
|
CHECKSUM_SHA256="1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc"
|
|
LICENSE="Apache v2"
|
|
COPYRIGHT="2014 Kenneth Reitz"
|
|
REVISION="2"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
|
|
SOURCE_DIR="requests-$portVersion"
|
|
|
|
PROVIDES="
|
|
python_requests = $portVersion
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python
|
|
# actually has its own copy...
|
|
#ca_root_certificates
|
|
"
|
|
|
|
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
|
|
}
|