mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
66 lines
1.3 KiB
Bash
66 lines
1.3 KiB
Bash
SUMMARY="A comprehensive HTTP library for the Python platform"
|
|
DESCRIPTION="httplib2 supports many features left out of other HTTP \
|
|
libraries."
|
|
HOMEPAGE="https://github.com/httplib2/httplib2/"
|
|
COPYRIGHT="2006-2022 Joe Gregorio"
|
|
LICENSE="MIT"
|
|
REVISION="5"
|
|
SOURCE_URI="https://github.com/httplib2/httplib2/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a6d079ae974ae408ac57d61aa2eee1d3be2cb250ae31d60507f1ecd2c6ca3002"
|
|
SOURCE_FILENAME="httplib2-v$portVersion.tar.gz"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_VERSIONS=(3.10)
|
|
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
eval "PROVIDES_$pythonPackage=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
\""
|
|
|
|
BUILD_REQUIRES+="
|
|
setuptools_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
python=python$pythonVersion
|
|
installLocation=$prefix/lib/$python/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
|
|
mkdir -p $installLocation
|
|
rm -rf build
|
|
|
|
$python setup.py build install \
|
|
--root=/ --prefix=$prefix
|
|
|
|
packageEntries $pythonPackage \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|