1SUMMARY="Core utilities for Python packages" 2DESCRIPTION="The 'packaging' project includes the following: \ 3version handling, specifiers, markers, requirements, tags, utilities." 4HOMEPAGE="https://pypi.python.org/pypi/packaging" 5COPYRIGHT="Donald Stufft and individual contributors" 6LICENSE="BSD (2-clause)" 7REVISION="1" 8SOURCE_URI="https://pypi.io/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz" 9CHECKSUM_SHA256="026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002" 10 11ARCHITECTURES="any" 12 13PROVIDES=" 14 $portName = $portVersion 15 " 16REQUIRES=" 17 haiku 18 " 19 20BUILD_REQUIRES=" 21 haiku_devel 22 " 23 24PYTHON_VERSIONS=(3.9 3.10) 25 26for i in "${!PYTHON_VERSIONS[@]}"; do 27 pythonVersion=${PYTHON_VERSIONS[$i]} 28 pythonPackage=python${pythonVersion//.} 29 30 eval "PROVIDES_$pythonPackage=\" 31 ${portName}_$pythonPackage = $portVersion 32 \"" 33 eval "REQUIRES_$pythonPackage=\" 34 haiku 35 cmd:python$pythonVersion 36 \"" 37 38 BUILD_REQUIRES+=" 39 flit_core_$pythonPackage 40 installer_$pythonPackage 41 " 42 BUILD_PREREQUIRES+=" 43 cmd:python$pythonVersion 44 " 45done 46 47 48INSTALL() 49{ 50 for i in "${!PYTHON_VERSIONS[@]}"; do 51 pythonVersion=${PYTHON_VERSIONS[$i]} 52 pythonPackage=python${pythonVersion//.} 53 54 python=python$pythonVersion 55 56 $python -m flit_core.wheel 57 $python -m installer --prefix=$prefix dist/*.whl 58 59 packageEntries $pythonPackage \ 60 $prefix/lib/python* 61 done 62} 63