SUMMARY="A modern CSS selector implementation for BeautifulSoup" DESCRIPTION="Soup Sieve is a CSS selector library designed to be used with \ Beautiful Soup 4. It aims to provide selecting, matching, and filtering \ using modern CSS selectors. Soup Sieve currently provides selectors from \ the CSS level 1 specifications up through the latest CSS level 4 drafts \ and beyond (though some are not yet implemented)." HOMEPAGE="https://github.com/facelessuser/soupsieve" COPYRIGHT="2018 Isaac Muse" LICENSE="MIT" REVISION="6" SOURCE_URI="https://github.com/facelessuser/soupsieve/archive/$portVersion.tar.gz" CHECKSUM_SHA256="ba6a129e3e0e8ea5928684fd720f548eec65bc53947d9ac2b264dd2412d5cf55" SOURCE_FILENAME="$portName-v$portVersion.tar.gz" ARCHITECTURES="any" PROVIDES=" $portName = $portVersion " REQUIRES=" haiku " BUILD_REQUIRES=" haiku_devel " PYTHON_PACKAGES=(python39 python310) PYTHON_VERSIONS=(3.9 3.10) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} 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 i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} 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 }