SUMMARY="A Python interface to the cURL library" DESCRIPTION="PycURL is a Python interface to libcurl, the multiprotocol file \ transfer library. Similarly to the urllib Python module, PycURL can be used to \ fetch objects identified by a URL from a Python program. Beyond simple fetches \ however PycURL exposes most of the functionality of libcurl." HOMEPAGE="http://pycurl.io/ https://github.com/pycurl/pycurl" COPYRIGHT="2001-2008 Kjetil Jacobsen 2001-2008 Markus F.X.J. Oberhumer 2013-2018 Oleg Pudeyev" LICENSE="GNU LGPL v2.1 MIT" REVISION="8" SOURCE_URI="https://github.com/pycurl/pycurl/archive/REL_${portVersion//./_}.tar.gz" CHECKSUM_SHA256="1aaaf415a5affe141593b3edf6ce187a79d99fbeb65c0b18490b03edc606394c" SOURCE_DIR="pycurl-REL_${portVersion//./_}" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" pycurl$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libcrypto$secondaryArchSuffix >= 3 devel:libcurl$secondaryArchSuffix devel:libnghttp2$secondaryArchSuffix devel:libssl$secondaryArchSuffix >= 3 devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix cmd:make " PYTHON_VERSIONS=(3.10) for i in "${!PYTHON_VERSIONS[@]}"; do pythonVersion=${PYTHON_VERSIONS[$i]} pythonPackage=python${pythonVersion//.} eval "PROVIDES_${pythonPackage}=\" ${portName}_$pythonPackage = $portVersion \"" if [ "$targetArchitecture" = x86_gcc2 ]; then eval "PROVIDES_$pythonPackage+=\" pycurl_$pythonPackage = $portVersion \"" fi eval "REQUIRES_$pythonPackage=\" haiku$secondaryArchSuffix cmd:python$pythonVersion lib:libcrypto$secondaryArchSuffix lib:libcurl$secondaryArchSuffix lib:libnghttp2$secondaryArchSuffix lib:libssl$secondaryArchSuffix lib:libz$secondaryArchSuffix \"" BUILD_REQUIRES+=" build_$pythonPackage installer_$pythonPackage setuptools_$pythonPackage wheel_$pythonPackage " BUILD_PREREQUIRES+=" cmd:python$pythonVersion " done INSTALL() { for i in "${!PYTHON_VERSIONS[@]}"; do pythonVersion=${PYTHON_VERSIONS[$i]} pythonPackage=python${pythonVersion//.} python=python$pythonVersion $python -m build --wheel --skip-dependency-check --no-isolation $python -m installer --p $prefix dist/*-$portVersion-*.whl # mkdir -p "$docDir" # mv "$prefix"/share/doc/pycurl/* "$docDir" rm -rf "$prefix"/share packageEntries $pythonPackage \ "$prefix"/lib/$python # "$docDir" done }