SUMMARY="A library to manipulate" DESCRIPTION="polib is a library to manipulate, create, modify gettext files \ (pot, po and mo files). You can load existing files, iterate through it's \ entries, add, modify entries, comments or metadata, etc... or create new po \ files from scratch." HOMEPAGE="https://pypi.org/project/polib/" COPYRIGHT="2006-2015 David Jean Louis." LICENSE="MIT" REVISION="5" SOURCE_URI="https://pypi.python.org/packages/source/p/polib/polib-$portVersion.tar.gz" CHECKSUM_SHA256="fad87d13696127ffb27ea0882d6182f1a9cf8a5e2b37a587751166c51e5a332a" 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\n\ \"; \ REQUIRES_$pythonPackage=\"\ haiku\n\ cmd:python$pythonVersion\n\ setuptools_$pythonPackage\n\ \"" 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 packageEntries $pythonPackage \ $prefix/lib/python* done } TEST() { python3 tests/tests.py }