1192348SdelphijSUMMARY="Parses CSS3 Selectors and translates them to XPath 1.0" 2192348SdelphijDESCRIPTION="cssselect parses CSS3 Selectors and translate them to XPath 1.0 \ 3192348Sdelphijexpressions. Such expressions can be used in lxml or another XPath \ 4192348Sdelphijengine to find the matching elements in an XML or HTML document." 5192348SdelphijHOMEPAGE="https://pythonhosted.org/cssselect/ 6192348Sdelphij https://pypi.python.org/pypi/cssselect" 7192348SdelphijCOPYRIGHT="2007-2019 Ian Bicking and contributors" 8192348SdelphijLICENSE="BSD (3-clause)" 9192348SdelphijREVISION="2" 10192348SdelphijSOURCE_URI="https://github.com/scrapy/cssselect/archive/v$portVersion.tar.gz" 11192348SdelphijCHECKSUM_SHA256="dde8c1d4a2c82de6889a3af1c1adbce1a6f3ec08b07a854d873f3f3da92960af" 12192348Sdelphij 13192348SdelphijARCHITECTURES="any" 14192348Sdelphij 15192348SdelphijPROVIDES=" 16192348Sdelphij $portName = $portVersion 17192348Sdelphij " 18192348SdelphijREQUIRES=" 19192348Sdelphij haiku 20192348Sdelphij " 21192348Sdelphij 22192348SdelphijBUILD_REQUIRES=" 23192348Sdelphij haiku_devel 24192348Sdelphij " 25192348Sdelphij 26192348SdelphijPYTHON_PACKAGES=(python39 python310) 27192348SdelphijPYTHON_VERSIONS=(3.9 3.10) 28192348Sdelphijfor i in "${!PYTHON_PACKAGES[@]}"; do 29192348SdelphijpythonPackage=${PYTHON_PACKAGES[i]} 30192348SdelphijpythonVersion=${PYTHON_VERSIONS[$i]} 31192348Sdelphijeval "PROVIDES_${pythonPackage}=\"\ 32192348Sdelphij ${portName}_$pythonPackage = $portVersion\ 33192348Sdelphij \"; \ 34192348SdelphijREQUIRES_$pythonPackage=\"\ 35192348Sdelphij haiku\n\ 36192348Sdelphij cmd:python$pythonVersion\ 37192348Sdelphij \"" 38192348SdelphijBUILD_REQUIRES="$BUILD_REQUIRES 39192348Sdelphij setuptools_$pythonPackage" 40192348SdelphijBUILD_PREREQUIRES="$BUILD_PREREQUIRES 41192348Sdelphij cmd:python$pythonVersion" 42192348Sdelphijdone 43192348Sdelphij 44192348SdelphijINSTALL() 45192348Sdelphij{ 46192348Sdelphij for i in "${!PYTHON_PACKAGES[@]}"; do 47192348Sdelphij pythonPackage=${PYTHON_PACKAGES[i]} 48192348Sdelphij pythonVersion=${PYTHON_VERSIONS[$i]} 49192348Sdelphij 50192348Sdelphij python=python$pythonVersion 51192348Sdelphij installLocation=$prefix/lib/$python/vendor-packages/ 52192348Sdelphij export PYTHONPATH=$installLocation:$PYTHONPATH 53192348Sdelphij mkdir -p $installLocation 54192348Sdelphij rm -rf build 55192348Sdelphij $python setup.py build install \ 56192348Sdelphij --root=/ --prefix=$prefix 57192348Sdelphij 58192348Sdelphij packageEntries $pythonPackage \ 59 $prefix/lib/python* 60 done 61} 62