SUMMARY="Utility library for gitignore style pattern matching of file paths" DESCRIPTION="*pathspec* is a utility library for pattern matching of file paths. So far this only \ includes Git's wildmatch pattern matching which itself is derived from Rsync's wildmatch. Git \ uses wildmatch for its \`gitignore\` files." HOMEPAGE="https://github.com/cpburnz/python-pathspec" COPYRIGHT="2013-2023 Caleb P. Burns" LICENSE="MPL v2.0" REVISION="2" SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz" CHECKSUM_SHA256="d1e055af653947e8c6637320d3d753df662685a79ffd5ef5c8628ae330bb18ee" SOURCE_FILENAME="patspec-v$portVersion.tar.gz" SOURCE_DIR="python-pathspec-$portVersion" ARCHITECTURES="any" PROVIDES=" $portName = $portVersion " REQUIRES=" haiku " BUILD_REQUIRES=" haiku_devel " PYTHON_VERSIONS=(3.10) for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} 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 pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} 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 }