SUMMARY="A library that provides symbolic constant support" DESCRIPTION="constantly, a library that provides symbolic constant support. It includes collections and constants with text, numeric, and bit flag values. Originally twisted.python.constants from the Twisted project." HOMEPAGE="https://github.com/twisted/constantly" COPYRIGHT="2011-2015 Twisted Matrix Laboratories et all" LICENSE="MIT" REVISION="2" srcGitRev="39887b6e131a72b04a338919519e972de668c586" SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="0cfe2235cd6fcd677ffb0710891ffb839a1d748b98acb32e5df683e6f4a1ea71" SOURCE_FILENAME="constantly-$portVersion-$srcGitRev.tar.gz" SOURCE_DIR="constantly-$srcGitRev" ARCHITECTURES="any" PROVIDES=" $portName = $portVersion " REQUIRES=" haiku " BUILD_REQUIRES=" haiku_devel " PYTHON_PACKAGES=(python38 python39 python310) PYTHON_VERSIONS=(3.8 3.9 3.10) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} eval "PROVIDES_${pythonPackage}=\"\ ${portName}_$pythonPackage = $portVersion\ \"; \ REQUIRES_$pythonPackage=\"\ haiku\n\ cmd:python$pythonVersion\ \"" BUILD_REQUIRES="$BUILD_REQUIRES setuptools_$pythonPackage" BUILD_PREREQUIRES="$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" install -m 755 -d "$docDir" install -m 644 -t "$docDir" README.rst packageEntries $pythonPackage \ "$prefix"/lib/$python \ "$docDir" done }